Hi
I solved the problem of no filter on vector tiles layer. I have created
a function that generate WMS Tile layer with Vector tile source. This
new function can be applied on setTileUrlFunction.
These new function is something like that;
const tileToWmsUrl = (tileCoord, projection) => {
let tileGrid = olLayer.getSource().getTileGrid()
let extent = tileGrid.getTileCoordExtent(tileCoord)
let size = tileGrid.getTileSize(tileCoord[0])
let bbox = extent.join(",")
let url = baseUrl
+
"?SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&FORMAT=application%2Fvnd.mapbox-vector-tile&tiled=true&LAYERS="
+ layer
+ "&WIDTH="
+ size
+ "&HEIGHT="
+ size
+ "&CRS="
+ encodeURIComponent(projection.code_)
+ "&STYLES=&BBOX="
+ bbox
+ "&CQL_FILTER="
+ "id=0" //filter expression
return url
}
Regards
José
_______________________________________________
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users