You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been able to load custom vector layers via TileJson successfully but an issue I'm finding is that there are constant loads in the background despite my turning the layer off. I think it'd be great to have an option to stop loading in the background, especially when dealing with feature dense layers.
Please let me know if:
This is even a reasonable issue to raise
There is some kind of a workaround via a QGIS setting.
If I could make a PR for this feature.
Thanks for the great plugin!
The text was updated successfully, but these errors were encountered:
In my opinion it's reasonable and could even be considered a bug. However, I don't know if there is a QGIS api to check whether a layer is enabled or not.
From there you can check for existence of the layer in the list.
Alternatively, from the docs I see this signal from MapCanvas: void QgsMapCanvas::selectionChanged but I haven't been able to validate that it works as expected just yet. (EDIT: This only works for feature selection, not layer selection)
I looked into it and if you wanted to register a function to be called every time the visibility changes for a layer you could either:
i. QgsProject.instance().layerTreeRoot().visibilityChanged.connect(function_name)
ii. Take the LayerTreeNode associated with the layers written by Vector Tile Reader and use the visibilityChanged signal directly on it and keep track of whether the layer is visible or not. (more preferable as you are listening to fewer events).
I've been able to load custom vector layers via TileJson successfully but an issue I'm finding is that there are constant loads in the background despite my turning the layer off. I think it'd be great to have an option to stop loading in the background, especially when dealing with feature dense layers.
Please let me know if:
Thanks for the great plugin!
The text was updated successfully, but these errors were encountered: