0

I am trying to use an SVG (several paths) as a marker for a Google static map. This answer seemed to suggest that an SVG path is possible but I cannot see any example in the documentation.

Is it possible to use an SVG (either via a URL or with the SVG path), or shall I just stick to a transparent PNG?

Alexander Holsgrove
  • 1,795
  • 3
  • 25
  • 54
  • If you intend to place a bunch of svg symbols/shapes in the Google Map you can create an svg overlay and call the symbols/shapes from an .svg or .xml file. I have an example online at : http://svgDiscovery.com/UUgleMap/svgOverlay.htm – Francis Hemsher Nov 02 '17 at 22:22
  • I do just want to use one marker, but actually, adding a SVG over the top of the map is a pretty good solution. Thank you – Alexander Holsgrove Nov 02 '17 at 22:24
  • 1
    Why the downvote? Just because it's not documented, doesn't mean it's not possible. – Alexander Holsgrove Nov 03 '17 at 00:24

1 Answers1

1

From the documentation you link to:

Icon format:

  • Icon images may be in PNG, JPEG or GIF formats, though PNG is recommended.
  • Icons may be up to 4096 pixels maximum size (64x64 for square images).

SVG icons are not documented as being an available format.

geocodezip
  • 158,664
  • 13
  • 220
  • 245