Hello Martin, Wow, is all i can say. Thank you very much. That was above and beyond what i good have expected.
If you are ever in zeeland (Netherlands) there will be a beer waiting. I am sure this will be interesting to others to. For others: this wil be put in http://www.zeelandwijzer.nl/kaart/minicamping.html thanks again, Erwin On 8 mrt, 06:16, Martin <warwo...@gmail.com> wrote: > Take a look here: > > http://code.martinpearman.co.uk/www.zeelandwijzer.nl/testkaart.html > > I've commented the changes i made in the code - don't forget to change > the API key and path to the XML back to your original values. > > Martin. > > On 7 Mar, 19:22, fenacol <fena...@hotmail.com> wrote: > > > Thanks Martin, > > > See what you mean, and understand the principle, but am not good at > > making code from scradge. > > Do you or somebody else know of a excample somewhere. > > If i see the code or snippits of it i know where to go from there. > > > As i undertand it: Need to collect every marker click and store that > > id, do i have to update the cookie every time they click or all of > > them at exit. > > or > > Is it simpler to collect all the marker > > images at exit, or wil that give a bloated cookie (300 markers), my > > markers won't change much so > > if they return i can load them all from the > > cookie. > > > Wander why there there are no maps with that function around, > > if a map has a lot of markers it is likely that visitors don't have > > clickt on every marker when they return. > > > Thanks in advance > > > Erwin > > > On 7 mrt, 07:46, Martin <warwo...@gmail.com> wrote: > > > > If your markers each have and will always have a unique id then save > > > the id of visited markers in the cookie as a delimited string. > > > > Use the comma character for example: > > > > 260,314,621 > > > > Get that string, split it and use parseInt() to convert each bit to an > > > integer. > > > Create an array to store those ids of markers that have been visited. > > > > Use that array to determine what icon image to use for a marker when > > > the marker is created. > > > > Martin. > > > > On 6 Mar, 18:43, fenacol <fena...@hotmail.com> wrote: > > > > > Hello all, > > > > > I have put a cookie function on my map at > > > > http://www.zeelandwijzer.nl/kaart/testkaart.html > > > > The cookie stores lat,lng,zoom and maptype. > > > > Also put setimage on my map so visitors can see witch markers they > > > > have clicked. > > > > > Found the information in the group, thanks for that. > > > > > But now i would like to store the marker.setimage data in the same > > > > cookie, so when they > > > > revisit the map they not only return to the same point on the map but > > > > also see the (grey) > > > > markers the have previously clickt on. > > > > > Cannot find anything about storing setimage data in a cookie. > > > > > Thanks for your time in advance, > > > > > Erwin -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.