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
sometimes it is wished to not publish a layer (for example when one uses a basemap layer just orientation during project setup)
it would be great to have an endpoint to chose which layers shall not be published via WMS
some hopefully useful Python snippets:
hidden_wms_layers, ok=QgsProject.instance().readListEntry('WMSRestrictedLayers', '/')
print('hidden_wms_layers', hidden_wms_layers)
# do not show any WMS layersQgsProject.instance().writeEntry( "WMSRestrictedLayers" , "/", [])
QgsProject.instance().write()
# publish only one WMS layer# NOTE: the provided layer is the human readable name not the long autogenerated nameQgsProject.instance().writeEntry( "WMSRestrictedLayers" , "/", ['layer-name'])
QgsProject.instance().write()
The text was updated successfully, but these errors were encountered:
some hopefully useful Python snippets:
The text was updated successfully, but these errors were encountered: