Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector Tile "visibility" property not being honoured #58943

Open
1 of 2 tasks
MattMauser opened this issue Oct 2, 2024 · 0 comments
Open
1 of 2 tasks

Vector Tile "visibility" property not being honoured #58943

MattMauser opened this issue Oct 2, 2024 · 0 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@MattMauser
Copy link

What is the bug or the crash?

When importing a Vector Tile Layer, the resulting sub layer style visibility / enabled parameters do not match the visibility from the style.

Steps to reproduce the issue

Below is an example of an ArcGIS Vector Tile Service Connection to a vector tile with a style URL to a JSON that has been re-styled as a Text Only version. When it's pulled into QGIS, everything is still visible, including Geometries which are turned off in the style.

-- Example --
Service URL: https://tiles.arcgis.com/tiles/HsjBaDykC1mjhXz9/arcgis/rest/services/CBMT_CBCT_3857_V_OSM/VectorTileServer
Min and Max zoom unchecked
Style URL: https://arcgis.com/sharing/rest/content/items/50cb5f2dfaaf4ccb88f37be2d8e5661e/resources/styles/root.json

Versions

QGIS version
3.34.4-Prizren
QGIS code revision
decd43d
Qt version
5.15.3
Python version
3.9.18
GDAL/OGR version
3.8.4
PROJ version
9.3.1
EPSG Registry database version
v10.098 (2023-11-24)
GEOS version
3.12.1-CAPI-1.18.1
SQLite version
3.41.1
PDAL version
2.6.0
PostgreSQL client version
16.1
SpatiaLite version
5.1.0
QWT version
6.1.6
QScintilla2 version
2.13.4
OS version
Windows 10 Version 2009

Active Python plugins
qlyrx
0.3.3
db_manager
0.1.20
MetaSearch
0.3.6
processing
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

For every layer in the vector tile style, there may or may not be a "layout" key in the layer, the visibility parameter would be found there. If it's not there, then the default is that it is visible. Allowed values are "none" and "visible", where none is not shown and visible is shown. Example from here:

{
"id": "World/Land/(1-7)/Polygon",
"type": "fill",
"source": "esri",
"source-layer": "Land/(1-7)/Polygon",
"maxzoom": 7,
"layout": {
"visibility": "none"
},
"paint": {
"fill-color": "#EDEDED",
"fill-outline-color": "#BFE9FF"
}
}

@MattMauser MattMauser added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant