leaflet-fullscreen
Version:
A fullscreen control for Leaflet
41 lines (37 loc) • 994 B
CSS
.leaflet-control-fullscreen a {
background:#fff url(fullscreen.png) no-repeat 0 0;
background-size:26px 52px;
}
.leaflet-touch .leaflet-control-fullscreen a {
background-position: 2px 2px;
}
.leaflet-fullscreen-on .leaflet-control-fullscreen a {
background-position:0 -26px;
}
.leaflet-touch.leaflet-fullscreen-on .leaflet-control-fullscreen a {
background-position: 2px -24px;
}
/* Do not combine these two rules; IE will break. */
.leaflet-container:-webkit-full-screen {
width:100% ;
height:100% ;
}
.leaflet-container.leaflet-fullscreen-on {
width:100% ;
height:100% ;
}
.leaflet-pseudo-fullscreen {
position:fixed ;
width:100% ;
height:100% ;
top:0 ;
left:0 ;
z-index:99999;
}
@media
(-webkit-min-device-pixel-ratio:2),
(min-resolution:192dpi) {
.leaflet-control-fullscreen a {
background-image:url(fullscreen@2x.png);
}
}