How can I enable the unique location and zoom level of a user on a web-map to be shared?
For example, if a user zooms to
lat: 75, lon: 35, zoom: 8, I would like to be able for the user to share that location through a link (for example,
www.mymap.com/75/35/8). As I'm using OpenLayers, I understand how to record where the lat/lon/zoom of what the user is viewing, and also how to store this in a database if necessary, but I do not have a clear idea how (or if) this argument can be shared via the browser.
OpenLayers code is usually something of this form:
var mapCenter = new OpenLayers.LonLat(-35, 75); map.setCenter(mapCenter, 3);
For example, I would like
www.mymap.com/23/15/10 to work, and all other permutations of