Hi
First of all, this module is just amazing.
Google Maps V3 has animation properties and I would like to use those for my website. I would like to drop markers on the map instead of just appearing it on map. Reference for this functionality is http://www.ksturnpike.com/travel_information/kta_map_weather#service_areas
I tried to find where marker is intialized and apparently the only file with code new google.maps.Marker is overlay_edit.js.
I added the line animation: google.maps.Animation.DROP, so that marker initialization looks like
var p = new google.maps.Marker({
position: point,
animation: google.maps.Animation.DROP,
map: obj.map,
icon: Drupal.gmap.getIcon(m, obj._oe.markerseq[m]).ra
});However code is still not making markers drop. Is there anything I am missing? OR Am I doing anything wrong?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | gmap_1930424_4_animation.patch | 1.57 KB | johnv |
Comments
Comment #1
podarokproper version
Comment #2
johnvComment #3
louis8789 commentedIf you're using the default gmap marker manager a simple line in "gmap/js/maker.js" should do the trick
line 22
Comment #4
johnv@louis8789, thanks for the tip.
Attached patch adds this functionality to the settings of the Gmap style plugin. The value is copied automatically to "gmap/js/marker.js", so there is no need anymore to patch that file.
Some delay per marker (using setTimeout) might be a nice extra feature.
Comment #5
podarok#4 commited pushed to dev
this one needs reroll against gmapextended style
Comment #6
mustanggb commentedHas anyone worked out how to delay the markers until after the map has loaded?