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
There is currently no easy way to display additional features other than just the map in FullscreenControl. We display buttons below our map that allow users to toggle between different maps (ex: street, satellite) and add additional layers to maps that display/filter pins. We would like these to appear in Fullscreen view also.
Design Alternatives
Add a source property to FullscreenControl to specify which DOM element you would like to display in FullscreenControl. This would allow you to display an element that includes other functionality in FullscreenControl (similar to what OpenLayers.js currently supports).
Motivation
There is currently no easy way to display additional features other than just the map in FullscreenControl. We display buttons below our map that allow users to toggle between different maps (ex: street, satellite) and add additional layers to maps that display/filter pins. We would like these to appear in Fullscreen view also.
Design Alternatives
Add a source property to FullscreenControl to specify which DOM element you would like to display in FullscreenControl. This would allow you to display an element that includes other functionality in FullscreenControl (similar to what OpenLayers.js currently supports).
Design
map.addControl(new mapboxgl.FullscreenControl({source: 'map-container'}));
Implementation
map.addControl(new mapboxgl.FullscreenControl({source: 'map-container'}));
The text was updated successfully, but these errors were encountered: