Replies: 1 comment
-
You can go though code of 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 developing a store chain detail page. The idea is to show a map, with all store locations in the city. Store locations are stored in our DB and delivered through our api as an array of objects, like
[{lat: xx, lon: yy}, ...]
. To communicate via our backend, we usereact-query
.What I would like to do is to fetch the store details, and once the loading is done, append the markers to the map.
However, it's not working. It just shows initial coordinates.
The code is as follows:
Store detail fetching
Map rendering:
Beta Was this translation helpful? Give feedback.
All reactions