Dear Friends, I want to have the lonlat from the mouseover event. For this I have written the following code for trapping the event,
map.events.register("mouseover", map, function(e) { var lonlat1 = map.getLonLatFromViewPortPx(e.xy); //alert(lonlat1); var txt1 = document.getElementById('Hidden1'); txt1.value = lonlat1; }); But I find that the lonlat value that comes,does come in a jerky fashion i.e lonlat value doesn't come in a continuous manner with every movement of the mouse. In order to tackle the problem it would be better to get the value from the MousePosition Control. Does anyone know how to get the value from this control? Similarly how to get the layer names from the LayerSwitcher control? How to manipulate the LayerSwitcher so that it shows only the layers at a particular zoom level and not all the layer groups at the same time? Thanks for ur reply. -- View this message in context: http://n2.nabble.com/get-the-values-from-controls-tp3617395p3617395.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users