You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For purposes of the Path Viewer for Ground Beneath our Feet (and probably other future use cases), it would be useful to be able to specify to the PlaceMarker component that you would like to use the map.flyTo method rather than the map.jumpTo method (or whatever is currently being used) when the place data passed to the component updates.
Just as a possibly useful/related similar example, I had previously accomplished this in a similar-ish place marker component with the following useEffect hook:
The relevant thing here being that when the uri prop updates, the map either jumps or flies to the new location based on the value of the fly prop. Something similar for the PlaceMarker component would be useful.
The text was updated successfully, but these errors were encountered:
@dleadbetter Not sure I completely follow; what would be an example of a value for the animation prop you're envisioning? And what do you mean by letting the component implement the animation?
Playing around with this further, my feeling is that it can be de-prioritized; it seems that the difference between the flyTo animation and the default animation that happens when the new box is drawn is not major enough to be urgent. Possibly an option as an enhancement in the future to allow more truly custom configured animation options, but for GBoF purposes I now think the default behavior should be fine.
For purposes of the Path Viewer for Ground Beneath our Feet (and probably other future use cases), it would be useful to be able to specify to the
PlaceMarker
component that you would like to use themap.flyTo
method rather than themap.jumpTo
method (or whatever is currently being used) when the place data passed to the component updates.Just as a possibly useful/related similar example, I had previously accomplished this in a similar-ish place marker component with the following
useEffect
hook:The relevant thing here being that when the
uri
prop updates, the map either jumps or flies to the new location based on the value of thefly
prop. Something similar for thePlaceMarker
component would be useful.The text was updated successfully, but these errors were encountered: