Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
only a small patch which explains the basic usage of js handlers to extend gmap
Comment | File | Size | Author |
---|---|---|---|
#13 | gmap_docu_348804_13.patch | 754 bytes | HOG |
Comments
Comment #1
dawehnerneeds review
Comment #2
topwaters CreditAttribution: topwaters commentedCould you PLEASE show a working example of this as it would be written in the context of a js include. I tried this and it didn't work. I really need to access the map from some custom javascript to make my project work as I am using JSON to automatically update the map with waypoints and track data based on where the user zooms or pans.
Please please please release some more documentation on GMaps custom event handling system!
Thanks for your work.
Comment #3
dawehnerThis is just a short example, you can figure out more how it works to write documentation here.
Comment #4
topwaters CreditAttribution: topwaters commentedThanks very much.
It looks like I was having trouble because I assumed that I could put an id other than 'gmap' in the " ...addHandler('gmap', "... portion, so the handler would be specific to a particular map. With the above, it doesn't seem to matter what id you have for your map, the event will apply to it...
How would I assign specific handlers to different maps on the same page? If I have a map with the id of map2 for example, how would I assign functions specific to it?
Thanks for your time.
Cheers
Comment #5
topwaters CreditAttribution: topwaters commentedCould someone please show me how you use the marker.js or gmap_marker.js to add markers, polylines or polygons from an external javascript file? I'm not sure if these files define the functions/classes/objects to be used in javascript includes or whether they are examples of code... I have tried to figure it out but simply need help. I need to load markers and polylines on the fly with AJAX (JSON) from a database. I have accomplished this with the regular Google code but am wanting to integrate it with Drupal and GMap.
If there's a better place for me to post these questions, please let me know.
Thanks in advance for any help :)
Comment #6
podarokall feature requests can be imported in 6.x version after committing em in major versions with backport afterwards
Can You make this ?
Comment #7
kevinquillen CreditAttribution: kevinquillen commentedAll you get from this example is 'addHandler' is undefined.
Comment #8
HOG CreditAttribution: HOG commentedComment #9
HOG CreditAttribution: HOG commentedFix example in documentation.
In patch also fix this isue: #463356
Comment #11
HOG CreditAttribution: HOG commentedFix patch file.
Comment #13
HOG CreditAttribution: HOG commentedFix patch file syntax.
Comment #15
podarok#13 commited
Thanks!