Hi David, I haven't tried, but believe it's not possible, the vector tile output format does not seem to take care of that parameter (by a quick check in the code). When it was first donated, it did not even account for CQL_FILTER, we had to add it later...
Pull requests welcomed to add support for that parameter :-) Cheers Andrea On Fri, Apr 17, 2020 at 10:00 PM David Haynes <[email protected]> wrote: > Thanks, > > Is it possible to pass parameters to vector tiles? I would like to create > a timeseries vector tile layer. > viewparams=p1:v1;p2:v > > On Thu, Apr 16, 2020 at 2:36 AM Andrea Aime <[email protected]> > wrote: > >> HI David, >> the GWC preview can show vector tiles, and it's based on OpenLayers, so >> you can probably steal some idea there. >> You can find it in the "tile layers" menu entry. >> >> Cheers >> Andrea >> >> >> On Thu, Apr 16, 2020 at 5:11 AM David Haynes <[email protected]> wrote: >> >>> Hello, >>> >>> I'm having an issue calling a Vector Tile layer into my map. I went >>> through the tutorial here and was able to successfully get a layer on my >>> geoserver install to view. >>> >>> https://docs.geoserver.org/latest/en/user/extensions/vectortiles/tutorial.html >>> >>> >>> Yet when I am trying to do the call in openlayers I can't get it to >>> render. >>> My layer is in a workspace 'COVID' >>> >>> new VectorTileLayer({ >>> declutter: true, >>> source: new VectorTileSource({ >>> tilePixelRatio: 1, // oversampling when > 1 >>> tileGrid: createXYZ({ maxZoom: 19 }), >>> format: new MVT(), >>> url: 'http://XXXXXXX:8080/geoserver/gwc/service/tms/1.0.0/' + >>> covidLayer + >>> '@EPSG%3A'+mapProj+'@pbf/{z}/{x}/{-y}.pbf' >>> >>> _______________________________________________ >>> 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 >>> >> >> >> -- >> >> Regards, Andrea Aime >> >> == GeoServer Professional Services from the experts! Visit >> http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf >> Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa >> (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 >> http://www.geo-solutions.it http://twitter.com/geosolutions_it >> ------------------------------------------------------- *Con riferimento >> alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - >> Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni >> circostanza inerente alla presente email (il suo contenuto, gli eventuali >> allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i >> destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per >> errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le >> sarei comunque grato se potesse darmene notizia. This email is intended >> only for the person or entity to which it is addressed and may contain >> information that is privileged, confidential or otherwise protected from >> disclosure. We remind that - as provided by European Regulation 2016/679 >> “GDPR” - copying, dissemination or use of this e-mail or the information >> herein by anyone other than the intended recipient is prohibited. If you >> have received this email by mistake, please notify us immediately by >> telephone or e-mail.* >> > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ 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
