Mapbox-gl-js: Create an example for fullscreen mode

Created on 10 Dec 2015  路  12Comments  路  Source: mapbox/mapbox-gl-js

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

All 12 comments

+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!

Was this page helpful?
0 / 5 - 0 ratings