map.events.register("moveend", map, updateLocation);
map.events.register("changelayer", map, updateLocation);
- map.events.register("click", map, mapClick);
updateLocation();
handleResize();
}
- // Map click results in feature lookup
- function mapClick(e) {
- var pos = lonLatToNonSphericalMercator
- (mercatorToLonLat
- (map.getLonLatFromViewPortPx
- ( map.events.getMousePosition(e))));
- }
-
function getPosition() {
return mercatorToLonLat(map.getCenter());
}