
META-INF.resources.js.geojsf.coordinate.js Maven / Gradle / Ivy
var GeoJsfCoordinate = {
myFormat : function(dgts)
{
return (
function(coord1) {
var coord2 = [coord1[1], coord1[0]];
return ol.coordinate.toStringXY(coord2,dgts);
});
},
addCoordinatesControl : function(position, precision)
{
// Please use CSS to configure appearance
var mousePosition = new ol.control.MousePosition({
coordinateFormat: GeoJsfCoordinate.myFormat(2),
projection : 'EPSG:4326'
});
GeoJSF.map.addControl(mousePosition);
},
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy