Skip to content
This repository was archived by the owner on Jun 10, 2023. It is now read-only.
This repository was archived by the owner on Jun 10, 2023. It is now read-only.

Fullscreen button #58

@amerador20

Description

@amerador20

Hi, I have a problem with fullscreen button. When I put a custom navbar and push the fullscreen button, the navbar component disappears. I think that the fullscreen mode button takes a class from the map and everything that is outside of that div with that class does not include it in the fullscreeen view. ¿How can i add this custom control?

map.addControl(new mapboxgl.FullscreenControl({container: document.querySelector('body')}));

source: https://docs.mapbox.com/mapbox-gl-js/api/markers/#fullscreencontrol-parameters

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions