Viewing 7 posts - 1 through 7 (of 7 total)
  • Google Maps API Question – how to let users add markers by clicking on the map
  • geoffj
    Full Member

    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

    geoffj
    Full Member

    Anyone?

    llama
    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.

    geoffj
    Full Member

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

    llama
    Full Member

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

    Dobbo
    Full Member

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

    Plug-In

    geoffj
    Full Member

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

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Google Maps API Question – how to let users add markers by clicking on the map’ is closed to new replies.