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

DeckGLMap takes the full viewport #684

Open
HansKallekleiv opened this issue Dec 3, 2021 · 0 comments
Open

DeckGLMap takes the full viewport #684

HansKallekleiv opened this issue Dec 3, 2021 · 0 comments
Labels
bug Something isn't working map-component Issues related to the map component.

Comments

@HansKallekleiv
Copy link
Collaborator

The component does not honor its parent size.
E.g. in the python example if the height is reduced:

wcc.Frame(
    style={"flex": 10, "height": "40vh"},
    children=[map_obj],
),

The resulting render is truncated:
image

This seems to be a well known issue with DeckGL and is solvable by setting the nearest parent position to relative.
https://stackoverflow.com/questions/60881824/how-to-prevent-deck-gl-layers-from-occupying-entire-viewport

@HansKallekleiv HansKallekleiv added bug Something isn't working map-component Issues related to the map component. labels Dec 3, 2021
@anders-kiaer anders-kiaer moved this to Backlog 📝 in Webviz Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working map-component Issues related to the map component.
Projects
Status: Backlog 📝
Development

No branches or pull requests

1 participant