Skip to content

Respect show in TimestampedWmsTileLayers - #2386

Open
VolodymyrLinuxovich wants to merge 1 commit into
python-visualization:mainfrom
VolodymyrLinuxovich:timestamped-wms-show
Open

VolodymyrLinuxovich wants to merge 1 commit into
python-visualization:mainfrom
VolodymyrLinuxovich:timestamped-wms-show

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown

TimestampedWmsTileLayers always added each wrapped WMS layer to the map. It ignored the show option of that layer. So a WmsTileLayer created with show=False was still visible when the map opened. Its box in the LayerControl was ticked too.

The time layer is now only added to the map when the WMS layer has show=True. With show=False it stays in the LayerControl and can be turned on from there.

I added a test for both cases. It fails on main.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant