Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating leaflet

  • Loading branch information...
commit d4627aba5248c5f8ed4f8e36b8f69f4459f17a6f 1 parent 6bd6ee6
@tmcw tmcw authored
View
BIN  ext/images/layers.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  ext/images/marker-shadow.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  ext/images/marker.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  ext/images/popup-close.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  ext/images/zoom-in.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  ext/images/zoom-out.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
5,670 ext/leaflet-src.js
5,670 additions, 0 deletions not shown
View
151 ext/leaflet.css 100644 → 100755
@@ -2,31 +2,32 @@
.leaflet-map-pane,
.leaflet-tile,
-.leaflet-marker-icon,
+.leaflet-marker-icon,
.leaflet-marker-shadow,
-.leaflet-tile-pane,
+.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-popup-pane,
.leaflet-overlay-pane svg,
.leaflet-zoom-box,
-.leaflet-image-layer { /* TODO optimize classes */
+.leaflet-image-layer { /* TODO optimize classes */
position: absolute;
}
.leaflet-container {
overflow: hidden;
}
-.leaflet-tile-pane {
+.leaflet-tile-pane, .leaflet-container {
-webkit-transform: translate3d(0,0,0);
}
-.leaflet-tile,
-.leaflet-marker-icon,
+.leaflet-tile,
+.leaflet-marker-icon,
.leaflet-marker-shadow {
-moz-user-select: none;
-webkit-user-select: none;
+ user-select: none;
}
-.leaflet-marker-icon,
+.leaflet-marker-icon,
.leaflet-marker-shadow {
display: block;
}
@@ -34,14 +35,16 @@
cursor: pointer;
}
.leaflet-container img {
- max-width: auto;
+ max-width: none !important;
}
.leaflet-tile-pane { z-index: 2; }
-.leaflet-overlay-pane { z-index: 3; }
-.leaflet-shadow-pane { z-index: 4; }
-.leaflet-marker-pane { z-index: 5; }
-.leaflet-popup-pane { z-index: 6; }
+
+.leaflet-objects-pane { z-index: 3; }
+.leaflet-overlay-pane { z-index: 4; }
+.leaflet-shadow-pane { z-index: 5; }
+.leaflet-marker-pane { z-index: 6; }
+.leaflet-popup-pane { z-index: 7; }
.leaflet-zoom-box {
width: 0;
@@ -55,6 +58,10 @@
visibility: inherit;
}
+a.leaflet-active {
+ outline: 2px solid orange;
+ }
+
/* Leaflet controls */
@@ -74,14 +81,13 @@
}
.leaflet-bottom {
bottom: 0;
- }
+ }
.leaflet-left {
left: 0;
}
.leaflet-control {
float: left;
clear: both;
- display: inline;
}
.leaflet-right .leaflet-control {
float: right;
@@ -99,25 +105,29 @@
margin-right: 10px;
}
+.leaflet-control-zoom, .leaflet-control-layers {
+ -moz-border-radius: 7px;
+ -webkit-border-radius: 7px;
+ border-radius: 7px;
+ }
.leaflet-control-zoom {
padding: 5px;
background: rgba(0, 0, 0, 0.25);
-
- border-radius: 7px;
- -moz-border-radius: 7px;
- -webkit-border-radius: 7px;
}
.leaflet-control-zoom a {
- display: block;
- width: 19px;
- height: 19px;
+ background-color: rgba(255, 255, 255, 0.75);
+ }
+.leaflet-control-zoom a, .leaflet-control-layers a {
background-position: 50% 50%;
background-repeat: no-repeat;
- background-color: rgba(255, 255, 255, 0.75);
-
- border-radius: 4px;
+ display: block;
+ }
+.leaflet-control-zoom a {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
+ border-radius: 4px;
+ width: 19px;
+ height: 19px;
}
.leaflet-control-zoom a:hover {
background-color: #fff;
@@ -133,16 +143,62 @@
.leaflet-control-zoom-out {
background-image: url(images/zoom-out.png);
}
-
+
+.leaflet-control-layers {
+ -moz-box-shadow: 0 0 7px #999;
+ -webkit-box-shadow: 0 0 7px #999;
+ box-shadow: 0 0 7px #999;
+
+ background: #f8f8f9;
+ }
+.leaflet-control-layers a {
+ background-image: url(images/layers.png);
+ width: 36px;
+ height: 36px;
+ }
+.leaflet-big-buttons .leaflet-control-layers a {
+ width: 44px;
+ height: 44px;
+ }
+.leaflet-control-layers .leaflet-control-layers-list,
+.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
+ display: none;
+ }
+.leaflet-control-layers-expanded .leaflet-control-layers-list {
+ display: block;
+ position: relative;
+ }
+.leaflet-control-layers-expanded {
+ padding: 6px 10px 6px 6px;
+ font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
+ color: #333;
+ background: #fff;
+ }
+.leaflet-control-layers input {
+ margin-top: 2px;
+ position: relative;
+ top: 1px;
+ }
+.leaflet-control-layers label {
+ display: block;
+ }
+.leaflet-control-layers-separator {
+ height: 0;
+ border-top: 1px solid #ddd;
+ margin: 5px -10px 5px -6px;
+ }
+
.leaflet-container .leaflet-control-attribution {
margin: 0;
padding: 0 5px;
-
- font: 11px/1.5 Arial, sans-serif;
+
+ font: 11px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
color: #333;
-
+
background-color: rgba(255, 255, 255, 0.7);
-
+
+ -moz-box-shadow: 0 0 7px #ccc;
+ -webkit-box-shadow: 0 0 7px #ccc;
box-shadow: 0 0 7px #ccc;
}
@@ -151,25 +207,27 @@
.leaflet-fade-anim .leaflet-tile {
opacity: 0;
-
+
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
-}
+ }
.leaflet-fade-anim .leaflet-tile-loaded {
opacity: 1;
-}
+ }
.leaflet-fade-anim .leaflet-popup {
+ opacity: 0;
+
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
- opacity: 0;
-}
+ transition: opacity 0.2s linear;
+ }
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
opacity: 1;
-}
+ }
.leaflet-zoom-anim .leaflet-tile {
-webkit-transition: none;
@@ -208,23 +266,23 @@
width: 15px;
height: 15px;
padding: 1px;
-
+
margin: -8px auto 0;
-
+
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
+ transform: rotate(45deg);
}
.leaflet-popup-close-button {
position: absolute;
top: 9px;
right: 9px;
-
- width: 8px;
- height: 8px;
- padding: 1px;
-
+
+ width: 10px;
+ height: 10px;
+
overflow: hidden;
}
.leaflet-popup-content p {
@@ -247,18 +305,19 @@
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
background: white;
+
box-shadow: 0 1px 10px #888;
- -moz-box-shadow: 0 1px 10px #888;
+ -moz-box-shadow: 0 1px 10px #888;
-webkit-box-shadow: 0 1px 14px #999;
}
.leaflet-popup-content-wrapper {
- -moz-border-radius: 20px;
+ -moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
}
.leaflet-popup-content {
- font: 12px/1.4 Arial, Helvetica, sans-serif;
+ font: 12px/1.4 "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.leaflet-popup-close-button {
background: white url(images/popup-close.png);
- }
+ }
View
10 ext/leaflet.ie.css 100644 → 100755
@@ -11,6 +11,10 @@
display: inline-block;
position: absolute;
}
+
+.leaflet-control {
+ display: inline;
+ }
.leaflet-popup-tip {
width: 21px;
@@ -37,6 +41,8 @@
.leaflet-control-zoom a:hover {
background-color: #fff;
}
-.leaflet-control-attribution {
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#B2FFFFFF,endColorstr=#B2FFFFFF);
+.leaflet-control-layers-toggle {
+ }
+.leaflet-control-attribution, .leaflet-control-layers {
+ background: white;
}
View
105 ext/leaflet.js 100644 → 100755
3 additions, 102 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.