Hi,
please have a look at
http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Control/MousePosition-js.html.
You can use
new OpenLayers.Control.MousePosition({emptyString:'?,?'}) without
displayProjection, then displayProjection of map is used.
However you can also set the own displayProjection for Mouse.Position
new OpenLayers.Control.MousePosition({displayProjection: new
OpenLayers.Projection('EPSG:yxz'), emptyString:'?,?'})
Harek
----- Original Message -----
From: Mihai Visan
To: OpenLayers User list
Sent: Thursday, December 09, 2010 9:06 AM
Subject: [OpenLayers-Users] display custom lon and lat on map
Hi everybody
I come back with a question that I didn't received an aswer.
The situation is like this: I have a map with a Image as basic layer and I
want to display mouse position as custom lan and lat. I have custom min and max
lon and lat and I know image size. It probably have something to do with "new
OpenLayers.Control.MousePosition()" control, but I can't figure it out.
Right now I receive only pixel position reported at image bounds (ex:
231.0000, 456.0000) and I want something like this: 67548, 75324 lat lon
thanks for help
------------------------------------------------------------------------------
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users