On Nov 8, 2:29 am, Mike Williams <[EMAIL PROTECTED]> wrote: > Wasn't it Peter who wrote: > > > > >On Nov 8, 12:02 am, Mike Williams <[EMAIL PROTECTED]> wrote: > >> The API doesn't store information about where your were looking the > >> previous time that you used the page. When you open the page it simply > >> follows the instructions in your map.setCenter() command again. > > >> If you want the map state to be remembered, then you've got to store > >> that information somewhere. Like this: > > >>http://econym.org.uk/gmap/cookies.htm > > >> --http://econym.org.uk/gmap > >> The Blackpool Community Church Javascript Team > > >So every click of a thumbnail will update the cookie, > > I don't know what you mean by "thumbnail", but if clicking on one exits > your map page, then you need to set the cookie. > > > and following > >the history.go(-n) I need to read the cookie and map.setcenter(). > >I suppose it is time to make cookies then :) > >and if cookies are turned off, does it get more complicated? > > If cookies are turned off, then it's probably impossible. > > You could store the map state information on your server, but then you > need to have some way to recognise when the same user re-opens your page > in order to pull back the information that belongs to that user. The > only way I know to accurately recognise a user is to set a cookie. > Guessing user identity from their IP address won't distinguish between > people on ISPs that have shared IP addresses. > > --http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team
The 'thumbnail' is the image displayed in the infowindow with the link that changes the map page into the image viewing page. If that then effectively closely the map... as far as the map is concerned, or the <body> gets unloaded, hmm I'm not sure really, but writing the cookie when the thumbnail is clicked will solve the issue anyway I think :) I have one more question i'm afraid. How to get the 'href' that is attached to the thumbnail, write the cookie AND call the image_display page? Can there be two href's in an <a>? If I have to make a function called by the link, how can I get the link information already stored with the thumbnail into the function so the function can call up the image_display page. The image_display page cannot get the cookie written because the map page is gone already... Pass all the link information as a string argument to the function... How do i call a php page from a Javascript function I guess is the question? Sorry to be so undefined ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
