More search improvements - a "Where am I?" link that does a reverse

search, and various cleanups to the previous changes.
This commit is contained in:
Tom Hughes 2007-08-24 18:53:30 +00:00
parent 215958fa0f
commit d2bd78627e
6 changed files with 73 additions and 4 deletions

View file

@ -102,6 +102,10 @@
handleResize();
}
function getPosition() {
return mercatorToLonLat(map.getCenter());
}
function setPosition(lat, lon, zoom) {
var centre = lonLatToMercator(new OpenLayers.LonLat(lon, lat));