Move map to dynamic location of the marker after search response. #1957
Unanswered
emekaokoli
asked this question in
Q&A
Replies: 1 comment
-
What is I am using it like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am using react-map-gl to render a map, the issue I am having is.
I am using redux to dispatch actions when a user searches a record, it returns a response from the redux store which contains the XY coordinate but the map remains in one place after there's a response.
I have tried this with useEffect but it did not work
this is what my marker looks like
I am looking for a way, to navigate/animate the map to flyTo/moveTo the location of the marker supplied dynamically and not remain in one place. I will greatly appreciate the help.
Tools
Thanks
Beta Was this translation helpful? Give feedback.
All reactions