Does anyone know if we can use CQL filters with Leaflet with a WMS from
Geoserver (2.14.1)? If so, what is wrong with my Leraflet code below?
var cities = L.tileLayer.wms('http://localhost:8080/geoserver/ows?', {
layers: 'workspace:cities',
format: 'image/png',
transparent: true,
cql_filter:'city=London',
}).addTo(map);
Note that the layer loads fine without the "cql_filter..." line.
Thanks!
Cliff
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users