Tag Info

Hot answers tagged


You need to write a custom control that does that thing. Ive written a tutorial on the topic, so check it out :) http://codentonic.net/2015/04/02/custom-openlayer-control/ if you have any questions feel free to ask me


Just use the OpenLayers.Control.GetFeature: var your_control = new OpenLayers.Control.GetFeature({ protocol: OpenLayers.Protocol.WFS.fromWMSLayer(your_wms_layer), box: true, hover: true, multipleKey: "shiftKey", toggleKey: "ctrlKey" }); ...


Did you enabled geoserver JSONP settings in web.xml /geoserver/WEB-INF/web.xml contains settings like this: <context-param> <param-name>ENABLE_JSONP</param-name> <param-value>true</param-value> </context-param> You should change ENABLE_JSONP as true

Only top voted, non community-wiki answers of a minimum length are eligible