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