map.updateSize();
});
+ $("#" + divName).trigger("initialised");
+
return map;
}
function closeMapPopup() {
if (popup) {
map.removePopup(popup);
- delete popup;
}
}
}
function getEventPosition(event) {
- return map.getLonLatFromViewPortPx(event.xy).clone().transform(map.getProjectionObject(), epsg4326);
+ return unproj(map.getLonLatFromViewPortPx(event.xy));
}
function getMapLayers() {