Markers not displaying when mapped from an array #3075
-
Hi, Love this package- I just have a quick question. I can't understand or work out why when I try to map icons from an array they don't display. Rendering a single Marker works fine (see the commented out Marker). The thing is, sometimes the mapped icons do display, I think due to a hot-reload, but if I reload the page to confirm, the icons are again not visible. Here's the code:
Any help would be very much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I had the same issue. |
Beta Was this translation helpful? Give feedback.
I had the same issue.
If you are using react 18+ try replacing the import (and HTML tags) "Marker" with "MarkerF".
It is a functional implementation of Marker.
Also see:
https://stackoverflow.com/questions/72112491/marker-not-showing-react-google-maps-api-on-localhost-next-js
or
#3048 (comment)