Closed nccmike closed 7 years ago
I'm unsure what the problem is and its tricky to solve without a plunkr or alike. But at first glance you pass url in picture but no dimensions which is prone to fail :)
That was exactly the issue... Thank you @apneadiving
I am trying to add some markers after initial map creation. I first create the map with a custom marker and that is displayed as expected.
I then try to add markers and the custom marker (a different icon from the first) is not displayed. The source on the page seems to show that it is finding the image to use as you can see in the code the lat/lng and image src are present.
I do see an error in the console:
Uncaught TypeError: Cannot read property 'addMarker' of undefined
However, if I remove the custom picture from the second marker, it displays a standard marker even with the error seen above.