Closed (fixed)
Project:
GMap Module
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
18 Dec 2008 at 20:23 UTC
Updated:
16 Nov 2014 at 19:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerneeds review
Comment #2
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 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 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 commentedAll you get from this example is 'addHandler' is undefined.
Comment #8
hog commentedComment #9
hog commentedFix example in documentation.
In patch also fix this isue: #463356
Comment #11
hog commentedFix patch file.
Comment #13
hog commentedFix patch file syntax.
Comment #15
podarok#13 commited
Thanks!