mapbox.js has such an example
ref https://github.com/mapbox/mapbox-gl-js/issues/1821#issuecomment-163470008
cc @jingsam
+1
Is the team working on implementing Fullscreen plugin for MapboxGL? Missing this feature big time.
@dshakya While there is no pre-built plugin, you should be able to implement this feature downstream:
map.getCanvas().webkitRequestFullScreen(); // there are a few other vendor prefixes to try
map.resize();
@lucaswoj I was thinking of working on this example. Do you think we should build a control or just show users how to implement what you suggested above?
Would be lovely if you could build a control like the one for Leaflet
Hi @colleenmcginnis, would you know if anyone is working on this feature? Or any directions on how would I go about implementing it?
@lucaswoj I created that fullscreen control. Would you be interested in a PR?
@karlguillotte Not sure if you saw this one by @colleenmcginnis to compare?
Thanks @andrewharvey ! I have not seen that one yet.
I tried this, but my controls disappear in fullscreen mode.
Doesn't work on JsFiddle, so here's a gist: https://gist.github.com/shotor/316d2dc8b07fb69b6b73e4589b07b6ce
Has anyone been able to get the controls to display in full screen?
Any chance the fullscreen stuff from this commit can make it into the master? Is there a PR or something?
Pinging @colleenmcginnis on this too
this has shipped in #3977 !! will be available in the next release!
Most helpful comment
Any chance the fullscreen stuff from this commit can make it into the master? Is there a PR or something?
Pinging @colleenmcginnis on this too