V
unread,Nov 2, 2010, 12:10:57 PM11/2/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
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.