A stab in the dark but maybe enclose the value in quotation marks like cql_filter:"city='London'"?
All the best, Tõnis Saatja Cliff Patterson <[email protected] kirjutas kuupäeval L, 9. veebruar 2019 21:41 järgmist: > 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 >
_______________________________________________ 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
