Google Maps API Que...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Google Maps API Question - how to let users add markers by clicking on the map

6 Posts
3 Users
0 Reactions
84 Views
Posts: 0
Full Member
Topic starter
 

Can anyone point me at some sample code that allows a user to add a point to a google map embedded within a web page.

I'm not talking about a My Map Google map, but something like this:
http://www.deadcellzones.com/full.html

Ideally, I'd want to put it in a Wordpress page, but one step at a time.

Ta

Geoff


 
Posted : 17/09/2009 1:45 pm
Posts: 0
Full Member
Topic starter
 

Anyone?


 
Posted : 17/09/2009 5:04 pm
Posts: 3292
Full Member
 

Would have thought you need to intercept a mouse event and then add the appropriate symbol. Then post back if you want it persisted. All in client side javascript.


 
Posted : 17/09/2009 5:13 pm
Posts: 0
Full Member
Topic starter
 

That sounds about right Llama, but I'd like to see some example code to [s]steal[/s] help me with it.


 
Posted : 17/09/2009 5:17 pm
Posts: 3292
Full Member
 

fraid not. Surely its on google, seems a pretty standard thing to do.


 
Posted : 17/09/2009 5:19 pm
Posts: 2
Free Member
 

I've done it witth Drupal, surely you would do it with a plug-in for Wordpress rather than writing your own module?

[url= http://wordpress.org/extend/plugins/google-maps-for-wordpress/ ]Plug-In[/url]


 
Posted : 17/09/2009 5:28 pm
Posts: 0
Full Member
Topic starter
 

Dobbo - cheers for that, but all the plugins I've looked at for wordpress, don't let you dynamically add your own pins.


 
Posted : 17/09/2009 5:47 pm