[OpenLayers-Users] Browser back and forward button

Matthew Doyle mtd at bom.gov.au
Wed Jul 30 01:19:29 EDT 2008


Hi OpenLayers Users,

My client has a need to place control on the users browser back and forward
buttons. Simply put, when he does any sort of action like zoom, pan, switch
a layer on, etc. he always assumes that the back button will take him to the
last state he was in within the mapping tool.  As such, he has now requested
that this become a feature.

a) is it possible to control this? The only way i can think of is each time
a user initiates an action, that it is stored in the hashmap in the URL ...
index.html?zoom=1&layers=xxx similar to a permalink that is updated after
every action.

b) is there any code that anybody has already written to do this?

I have searched the lists and faq to no avail.

Any help / comments on this greatly appreciated,

Best Regards,
Matt

-- 
View this message in context: http://www.nabble.com/Browser-back-and-forward-button-tp18726260p18726260.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list