[OpenLayers-Users] Re: Search functionality in Openlayers/Geoserver

Sukuchha sukuchha at yahoo.de
Fri Jun 17 11:12:27 EDT 2011


You can use changebaselayer event of map to get which layer has been
selected. Something like this.aseLayer.name .

even if it lines or polygon, you wil have  many pairs of lat lon. calculate
the min/max  lat lon of the list and caluculate  extent that fits all of
them  with getZoomForExtent () and center your map with any lat lon.

use jquery to send ajax request to a php which will fetch you the lat lon
information.

sukuchha 

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Search-functionality-in-Openlayers-Geoserver-tp6486986p6487474.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list