Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Google Map and a lot of markers. Is there possibility to add feature when user clicks on marker and Info Window shows up, that user has option to add that location to wishlist and associate that to either a user ID/cookie?

share|improve this question
up vote 2 down vote accepted

Absolutely. Simply save the info into an array. whether it be the marker object, the coordinates (so you can later recreate the marker), or a combination of both with extra information in your own object. I would go with a markup like geoJSON and save it into an array.

var mySavedMarkers = [];


You can then send mySavedMarkers[] to the Database via Ajax, save it in session, cookie, file, or whatever you want.

share|improve this answer
Thank you. And what if the site is in WordPress? – againstflow Feb 3 '12 at 17:22
I've never used WordPress, sorry. But if it allows you to do javascript, the same way. – CaptDragon Feb 3 '12 at 18:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.