I'm not sure I imprelented this for Regione Toscana many years ago... in 2.x code before legend refractory. There a combination of getLegendGraphic + BBOX supported by server side serving the correct legend image. But probably code is radically changed in that part, mainly due to legend refractory. I would look for getLegendGraphic keyword.
The expected behaviour was to retrieve the legend image if BBOX changed modifing it in the legend panel. cheers Luigi Pirelli ************************************************************************************************** * LinkedIn: https://www.linkedin.com/in/luigipirelli * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli * GitHub: https://github.com/luipir * Book: Mastering QGIS3 - 3rd Edition <https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition> * Hire a team: http://www.qcooperative.net ************************************************************************************************** On Wed, 18 Sep 2019 at 08:02, Alessandro Pasotti <[email protected]> wrote: > Hi, > > I'm testing the WMS contextual legend feature in QGIS client and - > supposing that the expected behavior is that when zooming and panning the > canvas the legend should be reloaded to only show items related to what's > in the canvas (that I'm not 100% sure it is) - I cannot make it work, I > didn't find anything in the source code that perform this action. > > Does anyone knows what's the expected beavior is and how it is supposed to > work? > > Thanks. > > -- > Alessandro Pasotti > w3: www.itopen.it > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
