Skip to content

Pass layer options through in Realtime - #2382

Open
VolodymyrLinuxovich wants to merge 1 commit into
python-visualization:mainfrom
VolodymyrLinuxovich:realtime-layer-options
Open

VolodymyrLinuxovich wants to merge 1 commit into
python-visualization:mainfrom
VolodymyrLinuxovich:realtime-layer-options

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown

Realtime called the FeatureGroup constructor without arguments. So name, overlay, control and show ended up in the JavaScript options of L.realtime instead. The layer control showed an internal id as the label. A layer created with show=False was still added to the map.

The template also added the inner container to the map directly. That put the features on the map even when the layer was hidden. Leaflet Realtime already adds its container in onAdd, so the extra call is removed.

This is the same problem as in Timeline, fixed in #2375. A test covers name, show and control.

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