bbox and cql_filter mutually exclusive

المشرف العام

Administrator
طاقم الإدارة
I made a CQL filter geoserver a WFS layer by running the script but I jump the following:

Both bbox and cql_filter specified but are mutually exclusive

Could someone tell me how to solve the problem.

thank you very much

This is the code:

//Filtro CQL var cqlFilter = 'INE_MUN=46164' ; // by default, reset all filters //Codigo para capas WFS var geojsonFormat = new ol.format.GeoJSON(); var vectorSource = new ol.source.Vector({ loader: function(extent, resolution, projection) { var url = 'http://localhost:8080/geoserver/wfs?service=WFS&' + 'version=1.1.0&request=GetFeature&typename=Botanico:Urbana&' + 'outputFormat=text/javascript&format_options=callback:loadFeatures&' +'CQL_FILTER={{CQLFILTER}}&' + '&srsname=EPSG:3857&bbox=' + extent.join(',') + ',EPSG:3857'; // Usamos jsonp:false para prevenir que JQuery a

أكثر...
 
أعلى