Leaflet.fullscreen
A HTML5 fullscreen plugin for Leaflet.
Usage
var map = 'map'fullscreenControl: true// ORfullscreenControl:pseudoFullscreen: false // if true, fullscreen to page width and height;
API
map // Is the map fullscreen?map // Either go fullscreen, or cancel the existing fullscreen.// `fullscreenchange` Event that's fired when entering or exiting fullscreen.map;LControlFullscreen // A fullscreen button. Or use the `{fullscreenControl: true}` option when creating L.Map.
Including via CDN
Leaflet.fullscreen is available through the Mapbox Plugin CDN - just copy this include:
Building
npm install && make
ProTip You may want to install watch
so you can run watch make
without needing to execute make on every change.