AdvancedMarker custom icon not appearing #558
Unanswered
Remarketeer
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Can you share a small code-sample of the jsx you use to create the markers? Something like this should work: const CustomMarker = ({position}) => {
return (
<AdvancedMarker position={position}>
<img width={32} height={32} src={imageUrl} />
</AdvancedMarker>
);
}; |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to ask for some help!
So a week ago I left my maps page alone to work on other stuff, but suddenly my markers disappeared. For some context, I have an array that I load information from and use .map to create markers for each entry. After some trial and error, I realized that it just wasn't accepting image inputs, e.g .
I've attempted to load the image on my other pages and that was fine. I've attempted to load Pin objects and that worked too, I've tried loading just a singular marker using an image source but it behaves the same way. Loading the image directly on the maps page also seems to work so the issue shouldn't be that. I'm quite stumped as to where it could have gone wrong.
Currently the data seems to have been loaded into the map as I've printed it to the console, but the marker just isn't appearing.
Beta Was this translation helpful? Give feedback.
All reactions