The marker is an image, so you are setting an html image tag source to
be an SVG file. That's just not going to work.

You'd need a custom marker implementation. Try looking at RichMarker
in the utility library: 
http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries

Chad KIllingsworth

On Nov 2, 11:10 am, V <[email protected]> wrote:
> 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:
>
> var image = new google.maps.MarkerImage('buses/images/marker.svg');
> var marker2 = new google.maps.Marker({
>                 position: coord,
>                 map:map,
>                 icon: image
>                });
>
> also tried:
> var marker2 = new google.maps.Marker({
>                 position: coord,
>                 map:map,
>                 icon: "buses/images/marker.svg"
>                });
>
> am i approaching this the wrong way?
>
> thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to