Can I use my own custom animated gifs as markers on Google Maps API? -
I want to use different animated cartoon images (GIF) as a marker on Google Maps; Can I do this with APIs?
yes you can):
var status = new google.maps.LatLng (59.219521,15.1419873); Var marker; Var map; Function initialize () {var mapOptions = {zoom: 16, map type iid: google.maps.MapTypeId.ROADMAP, center: position}; Map = new google.maps.Map (document.getElementById ("map_canvas"), map options); Marker = New google.maps.Marker ({Map: Map, Dragable: Wrong, Animation: google.maps.Animation.DROP, Status: Status, Icon: "http://heera.it/wp-content/themes / heerait /img/blog/me.png "}); } You need to use the icon: icon-url when creating a marker. Update: Marker = new google.maps.Marker ({map: map, dragable: incorrect, customized: incorrect, // <- Required for animated GI animation: google.maps.Animation.Drop, Status: Status, Icon: "http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs- components-weblogfiles / 00-00-01-01-35 / e8nZC.gif "});
Comments
Post a Comment