Hi Gis Team ,
Move the mouseon the bottom right corner of the map the latitude and longitude ,
and how to get mouse over the map latitude and longitude ?
Can you give some help,please ?
thinks very much!
Li
Move the mouse on the map show the latitude and longitude
Hi Li,
Currently, the event is not supported on the server side. Here is a way to do it with client codes:
<script type=“text/javascript”>
OnMapCreated = function (map) {
map.events.register(“mouseover”, this, function (e) {
var currentlatlon = map.getLonLatFromPixel(new OpenLayers.Pixel(e.clientX, e.clientY));
})
}
</script>
In the codes, the map represent a openlayers map instance.
More info about the openLayers please refer to openlayers.org/
More APIs on client side please refer to thinkgeo.com/forums/MapSuite/tabid/143/aft/5616/Default.aspx
Any questions don’t hesitate to let us know.
Thanks,
Johnny