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. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
