[OpenLayers-Users] How to change the display coordinates
Andreas Hocevar
ahocevar at opengeo.org
Fri Sep 4 04:38:14 EDT 2009
fsalas wrote:
> Hi , I need to change the display coordinates in degree minutes and
> second format example (NE 50 20´ 23´´ )
Just configure your MousePosition control with a custom formatOutput
function:
var mp = new OpenLayers.Control.MousePosition({
formatOutput: function(lonLat) {
var markup = "<your output markup here>";
return markup
}
});
Regards,
Andreas.
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list