(Geoserver + OpenLayers) Search item by coordinates (lat/long) or id
I'm using Geoserver (2.3.0) + OpenLayers(2.12), but with no previous experience on GEO systems :(.
I need to locate in the map the item located in lat/long, or by the primary key. But I have found only the inverse situation, in other words, if the user clicks on item, it is possible to recover the lat/long.
Someone knows how to find this item?
You may send coordinates to GetFeatureInfo WMS query to geoserver (with AJAX) and parse its response.
As of ID, you may write simple page that access database and returns info.
If the items are already added to the map you may use OpenLayers.Filter.Spatial: