I am using lealflet 0.7, I need to query the features based on attribute and spatially.Is there any plugin available to query the features directly from geoserver.
I have already tried this to load geoJson layer to apply filter
var rootUrl = 'http://localhost:8080/geoserver/cite/ows'; var defaultParameters = { service: 'WFS', version: '1.0.0', request: 'GetFeature', typeName: 'cite:final_layer', maxFeatures: 50, outputFormat: 'application/json' }; var parameters = L.Util.extend(defaultParameters); $.ajax({ jsonp: false, url: rootUrl + L.Util.getParamString(parameters), dataType: 'jsonp', jsonpCallback: 'getJson', success: handleJson }); function handleJson(data) { console.log(data); layer = L.geoJson(data).addTo(group); }what is wrong here??
أكثر...
I have already tried this to load geoJson layer to apply filter
var rootUrl = 'http://localhost:8080/geoserver/cite/ows'; var defaultParameters = { service: 'WFS', version: '1.0.0', request: 'GetFeature', typeName: 'cite:final_layer', maxFeatures: 50, outputFormat: 'application/json' }; var parameters = L.Util.extend(defaultParameters); $.ajax({ jsonp: false, url: rootUrl + L.Util.getParamString(parameters), dataType: 'jsonp', jsonpCallback: 'getJson', success: handleJson }); function handleJson(data) { console.log(data); layer = L.geoJson(data).addTo(group); }what is wrong here??
أكثر...