[OpenLayers-Users] Bounding box after every pan

adityakumar529 adityakumar529 at gmail.com
Fri Oct 11 03:01:13 PDT 2013


Hey I got the solution. I am using two events to get the bounding box after
every pan/zoom.

map.events.register('zoomend', null, function() {
	 test =map.getExtent().transform('EPSG:900913','EPSG:4326'); 
 alert (test);

}); 
	 map.events.register("moveend", map, function() {
test=   map.getExtent().transform('EPSG:900913','EPSG:4326'); 
	  alert(test);
        });


Thanks
Aditya Kumar



-----
GIS Developer

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Bounding-box-after-every-pan-tp5082788p5083052.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list