i know it's possible to add svg overlays to google maps. i'm wondering if you can use svg files as markers. i tried setting it just like you would a png or jpg file, but nothing shows up. let me know if i should post my code, but i think i am probably approaching it in the wrong way.
thanks.
On Google Maps API v3 it's working just fine for me with this code (which also handles resizing):
I had a problem with this but I looked at the svg in a code editor and it was missing a defined width and height.
Did not work
Did work
When referencing an external SVG you need to use
scaledSize
instead ofsize
for the icon. See code snippet below...Live example on codepen.