Skip to content

Commit

Permalink
fix(marker): Set the marker correctly when selecting location via popup.
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorgerhardt committed Nov 21, 2016
1 parent 70b327a commit ec2d96d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export function updateOrigin ({browsochrones, destinationLatlng, latlng, label,
)
} else {
actions.push(
setOrigin({latlng}),
addActionLogItem(`Finding start address for ${lonlng(latlng).toString()}`),
reverseGeocode({latlng})
.then(({features}) => {
Expand Down Expand Up @@ -282,6 +283,7 @@ export function updateDestination ({
actions.push(setDestination({label, latlng}))
} else {
actions.push(
setDestination({latlng}),
reverseGeocode({latlng})
.then(({features}) => setDestinationLabel(featureToLabel(features[0])))
)
Expand Down

0 comments on commit ec2d96d

Please sign in to comment.