.leaflet-overlay-pane svg,\r
.leaflet-zoom-box,\r
.leaflet-image-layer,\r
-.leaflet-layer { /* TODO optimize classes */\r
+.leaflet-layer {\r
position: absolute;\r
+ left: 0;\r
}\r
.leaflet-container {\r
overflow: hidden;\r
- outline: 0;\r
+ -ms-touch-action: none;\r
}\r
.leaflet-tile,\r
.leaflet-marker-icon,\r
.leaflet-marker-shadow {\r
- -moz-user-select: none;\r
-webkit-user-select: none;\r
- user-select: none;\r
+ -moz-user-select: none;\r
+ user-select: none;\r
}\r
.leaflet-marker-icon,\r
.leaflet-marker-shadow {\r
display: block;\r
}\r
-.leaflet-clickable {\r
- cursor: pointer;\r
- }\r
-.leaflet-dragging, .leaflet-dragging .leaflet-clickable {\r
- cursor: move;\r
- }\r
+/* map is broken in FF if you have max-width: 100% on tiles */\r
.leaflet-container img {\r
- /* map is broken in FF if you have max-width: 100% on tiles */\r
max-width: none !important;\r
}\r
+/* stupid Android 2 doesn't understand "max-width: none" properly */\r
.leaflet-container img.leaflet-image-layer {\r
- /* stupid Android 2 doesn't understand "max-width: none" properly */\r
- max-width: 15000px !important;\r
- }\r
-\r
-.leaflet-tile-pane { z-index: 2; }\r
-.leaflet-objects-pane { z-index: 3; }\r
-.leaflet-overlay-pane { z-index: 4; }\r
-.leaflet-shadow-pane { z-index: 5; }\r
-.leaflet-marker-pane { z-index: 6; }\r
-.leaflet-popup-pane { z-index: 7; }\r
-\r
+ max-width: 15000px !important;\r
+ }\r
.leaflet-tile {\r
- filter: inherit;\r
- visibility: hidden;\r
+ filter: inherit;\r
+ visibility: hidden;\r
}\r
.leaflet-tile-loaded {\r
visibility: inherit;\r
}\r
-\r
.leaflet-zoom-box {\r
- width: 0;\r
- height: 0;\r
- }\r
+ width: 0;\r
+ height: 0;\r
+ }\r
+\r
+.leaflet-tile-pane { z-index: 2; }\r
+.leaflet-objects-pane { z-index: 3; }\r
+.leaflet-overlay-pane { z-index: 4; }\r
+.leaflet-shadow-pane { z-index: 5; }\r
+.leaflet-marker-pane { z-index: 6; }\r
+.leaflet-popup-pane { z-index: 7; }\r
\r
-/* Leaflet controls */\r
+\r
+/* control positioning */\r
\r
.leaflet-control {\r
position: relative;\r
margin-right: 10px;\r
}\r
\r
+\r
+/* zoom and fade animations */\r
+\r
+.leaflet-fade-anim .leaflet-tile,\r
+.leaflet-fade-anim .leaflet-popup {\r
+ opacity: 0;\r
+ -webkit-transition: opacity 0.2s linear;\r
+ -moz-transition: opacity 0.2s linear;\r
+ -o-transition: opacity 0.2s linear;\r
+ transition: opacity 0.2s linear;\r
+ }\r
+.leaflet-fade-anim .leaflet-tile-loaded,\r
+.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r
+ opacity: 1;\r
+ }\r
+\r
+.leaflet-zoom-anim .leaflet-zoom-animated {\r
+ -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r
+ -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r
+ -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);\r
+ transition: transform 0.25s cubic-bezier(0,0,0.25,1);\r
+ }\r
+.leaflet-zoom-anim .leaflet-tile,\r
+.leaflet-pan-anim .leaflet-tile,\r
+.leaflet-touching .leaflet-zoom-animated {\r
+ -webkit-transition: none;\r
+ -moz-transition: none;\r
+ -o-transition: none;\r
+ transition: none;\r
+ }\r
+\r
+.leaflet-zoom-anim .leaflet-zoom-hide {\r
+ visibility: hidden;\r
+ }\r
+\r
+\r
+/* cursors */\r
+\r
+.leaflet-clickable {\r
+ cursor: pointer;\r
+ }\r
+.leaflet-container {\r
+ cursor: -webkit-grab;\r
+ cursor: -moz-grab;\r
+ }\r
+.leaflet-popup-pane,\r
+.leaflet-control {\r
+ cursor: auto;\r
+ }\r
+.leaflet-dragging,\r
+.leaflet-dragging .leaflet-clickable,\r
+.leaflet-dragging .leaflet-container {\r
+ cursor: move;\r
+ cursor: -webkit-grabbing;\r
+ cursor: -moz-grabbing;\r
+ }\r
+\r
+\r
+/* visual tweaks */\r
+\r
+.leaflet-container {\r
+ background: #ddd;\r
+ outline: 0;\r
+ }\r
+.leaflet-container a {\r
+ color: #0078A8;\r
+ }\r
+.leaflet-container a.leaflet-active {\r
+ outline: 2px solid orange;\r
+ }\r
+.leaflet-zoom-box {\r
+ border: 2px dotted #05f;\r
+ background: white;\r
+ opacity: 0.5;\r
+ }\r
+\r
+\r
+/* general typography */\r
+.leaflet-container {\r
+ font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;\r
+}\r
+\r
+\r
+/* zoom control */\r
+\r
.leaflet-control-zoom {\r
- -moz-border-radius: 7px;\r
-webkit-border-radius: 7px;\r
- border-radius: 7px;\r
+ border-radius: 7px;\r
}\r
.leaflet-control-zoom {\r
padding: 5px;\r
background: rgba(0, 0, 0, 0.25);\r
}\r
.leaflet-control-zoom a {\r
+ width: 19px;\r
+ height: 19px;\r
background-color: rgba(255, 255, 255, 0.75);\r
+ -webkit-border-radius: 4px;\r
+ border-radius: 4px;\r
}\r
-.leaflet-control-zoom a, .leaflet-control-layers a {\r
+.leaflet-control-zoom a,\r
+.leaflet-control-layers-toggle {\r
background-position: 50% 50%;\r
background-repeat: no-repeat;\r
display: block;\r
}\r
-.leaflet-control-zoom a {\r
- -moz-border-radius: 4px;\r
- -webkit-border-radius: 4px;\r
- border-radius: 4px;\r
- width: 19px;\r
- height: 19px;\r
- }\r
.leaflet-control-zoom a:hover {\r
background-color: #fff;\r
}\r
background-image: url(images/zoom-out.png);\r
}\r
\r
+\r
+/* layers control */\r
+\r
.leaflet-control-layers {\r
box-shadow: 0 1px 7px #999;\r
background: #f8f8f9;\r
- -moz-border-radius: 8px;\r
-webkit-border-radius: 8px;\r
- border-radius: 8px;\r
+ border-radius: 8px;\r
}\r
-.leaflet-control-layers a {\r
+.leaflet-control-layers-toggle {\r
background-image: url(images/layers.png);\r
width: 36px;\r
height: 36px;\r
}\r
-.leaflet-touch .leaflet-control-layers a {\r
+.leaflet-touch .leaflet-control-layers-toggle {\r
width: 44px;\r
height: 44px;\r
}\r
}\r
.leaflet-control-layers-expanded {\r
padding: 6px 10px 6px 6px;\r
- font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;\r
color: #333;\r
background: #fff;\r
}\r
-.leaflet-control-layers input {\r
+.leaflet-control-layers-selector {\r
margin-top: 2px;\r
position: relative;\r
top: 1px;\r
margin: 5px -10px 5px -6px;\r
}\r
\r
+\r
+/* attribution and scale controls */\r
+\r
.leaflet-container .leaflet-control-attribution {\r
background-color: rgba(255, 255, 255, 0.7);\r
box-shadow: 0 0 5px #bbb;\r
margin: 0;\r
- }\r
-\r
+ }\r
.leaflet-control-attribution,\r
.leaflet-control-scale-line {\r
padding: 0 5px;\r
color: #333;\r
}\r
-\r
.leaflet-container .leaflet-control-attribution,\r
.leaflet-container .leaflet-control-scale {\r
- font: 11px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;\r
+ font-size: 11px;\r
}\r
-\r
.leaflet-left .leaflet-control-scale {\r
margin-left: 5px;\r
}\r
.leaflet-bottom .leaflet-control-scale {\r
margin-bottom: 5px;\r
}\r
-\r
.leaflet-control-scale-line {\r
border: 2px solid #777;\r
border-top: none;\r
}\r
\r
\r
-/* Zoom and fade animations */\r
-\r
-.leaflet-fade-anim .leaflet-tile, .leaflet-fade-anim .leaflet-popup {\r
- opacity: 0;\r
-\r
- -webkit-transition: opacity 0.2s linear;\r
- -moz-transition: opacity 0.2s linear;\r
- -o-transition: opacity 0.2s linear;\r
- transition: opacity 0.2s linear;\r
- }\r
-.leaflet-fade-anim .leaflet-tile-loaded, .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r
- opacity: 1;\r
- }\r
-\r
-.leaflet-zoom-anim .leaflet-zoom-animated {\r
- -webkit-transition: -webkit-transform 0.25s cubic-bezier(0.25,0.1,0.25,0.75);\r
- -moz-transition: -moz-transform 0.25s cubic-bezier(0.25,0.1,0.25,0.75);\r
- -o-transition: -o-transform 0.25s cubic-bezier(0.25,0.1,0.25,0.75);\r
- transition: transform 0.25s cubic-bezier(0.25,0.1,0.25,0.75);\r
- }\r
-\r
-.leaflet-zoom-anim .leaflet-tile,\r
-.leaflet-pan-anim .leaflet-tile,\r
-.leaflet-touching .leaflet-zoom-animated {\r
- -webkit-transition: none;\r
- -moz-transition: none;\r
- -o-transition: none;\r
- transition: none;\r
- }\r
-\r
-.leaflet-zoom-anim .leaflet-zoom-hide {\r
- visibility: hidden;\r
- }\r
-\r
-\r
-/* Popup layout */\r
+/* popup */\r
\r
.leaflet-popup {\r
position: absolute;\r
.leaflet-popup-content-wrapper {\r
padding: 1px;\r
text-align: left;\r
+ -webkit-border-radius: 20px;\r
+ border-radius: 20px;\r
}\r
.leaflet-popup-content {\r
margin: 14px 20px;\r
+ line-height: 1.4;\r
+ }\r
+.leaflet-popup-content p {\r
+ margin: 18px 0;\r
}\r
.leaflet-popup-tip-container {\r
margin: 0 auto;\r
\r
margin: -8px auto 0;\r
\r
- -moz-transform: rotate(45deg);\r
-webkit-transform: rotate(45deg);\r
- -ms-transform: rotate(45deg);\r
- -o-transform: rotate(45deg);\r
- transform: rotate(45deg);\r
+ -moz-transform: rotate(45deg);\r
+ -ms-transform: rotate(45deg);\r
+ -o-transform: rotate(45deg);\r
+ transform: rotate(45deg);\r
+ }\r
+.leaflet-popup-content-wrapper, .leaflet-popup-tip {\r
+ background: white;\r
+\r
+ box-shadow: 0 3px 14px rgba(0,0,0,0.35);\r
+ -webkit-box-shadow: 0 3px 18px rgba(0,0,0,0.33);\r
}\r
.leaflet-container a.leaflet-popup-close-button {\r
position: absolute;\r
.leaflet-container a.leaflet-popup-close-button:hover {\r
color: #999;\r
}\r
-.leaflet-popup-content p {\r
- margin: 18px 0;\r
- }\r
.leaflet-popup-scrolled {\r
overflow: auto;\r
border-bottom: 1px solid #ddd;\r
}\r
\r
\r
-/* Visual appearance */\r
+/* div icon */\r
\r
-.leaflet-container {\r
- background: #ddd;\r
- }\r
-.leaflet-container a {\r
- color: #0078A8;\r
- }\r
-.leaflet-container a.leaflet-active {\r
- outline: 2px solid orange;\r
- }\r
-.leaflet-zoom-box {\r
- border: 2px dotted #05f;\r
- background: white;\r
- opacity: 0.5;\r
- }\r
.leaflet-div-icon {\r
- background: #fff;\r
- border: 1px solid #666;\r
- }\r
-.leaflet-editing-icon {\r
- border-radius: 2px;\r
- }\r
-.leaflet-popup-content-wrapper, .leaflet-popup-tip {\r
- background: white;\r
-\r
- box-shadow: 0 3px 14px rgba(0,0,0,0.35);\r
- -webkit-box-shadow: 0 3px 18px rgba(0,0,0,0.33);\r
- }\r
-.leaflet-popup-content-wrapper {\r
- -moz-border-radius: 20px;\r
- -webkit-border-radius: 20px;\r
- border-radius: 20px;\r
+ background: #fff;\r
+ border: 1px solid #666;\r
}\r
-.leaflet-popup-content {\r
- font: 12px/1.4 "Helvetica Neue", Arial, Helvetica, sans-serif;\r
+.leaflet-editing-icon {\r
+ -webkit-border-radius: 2px;\r
+ border-radius: 2px;\r
}\r