Use an SVG for a marker in Google Maps?

前端 未结 5 675
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 18:43

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 nothi

5条回答
  •  清酒与你
    2021-02-05 19:01

    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

    
    

提交回复
热议问题