leaflet-js 0.6.beta4 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/CHANGELOG.rdoc +3 -0
- data/leaflet-js.gemspec +2 -2
- data/lib/leaflet.draw/CHANGELOG.md +45 -0
- data/lib/leaflet.draw/README.md +70 -23
- data/lib/leaflet.draw/build/deps.js +1 -0
- data/lib/leaflet.draw/dist/images/spritesheet-2x.png +0 -0
- data/lib/leaflet.draw/dist/images/spritesheet.png +0 -0
- data/lib/leaflet.draw/dist/leaflet.draw-src.js +489 -136
- data/lib/leaflet.draw/dist/leaflet.draw.css +34 -2
- data/lib/leaflet.draw/dist/leaflet.draw.ie.css +5 -0
- data/lib/leaflet.draw/dist/leaflet.draw.js +2 -2
- data/lib/leaflet.draw/examples/basic.html +14 -7
- data/lib/leaflet.draw/examples/libs/images/layers-2x.png +0 -0
- data/lib/leaflet.draw/examples/libs/images/layers.png +0 -0
- data/lib/leaflet.draw/examples/libs/images/marker-icon-2x.png +0 -0
- data/lib/leaflet.draw/examples/libs/leaflet-src.js +1129 -608
- data/lib/leaflet.draw/examples/libs/leaflet.css +85 -66
- data/lib/leaflet.draw/package.json +2 -2
- data/lib/leaflet.draw/spec/suites/DrawControlSpec.js +1 -1
- data/lib/leaflet.draw/spec/suites/GeometryUtilSpec.js +25 -0
- data/lib/leaflet.draw/spec/suites/LatLngUtilSpec.js +9 -0
- data/lib/leaflet.draw/src/Control.Draw.js +1 -0
- data/lib/leaflet.draw/src/Leaflet.draw.js +89 -1
- data/lib/leaflet.draw/src/Toolbar.js +2 -6
- data/lib/leaflet.draw/src/Tooltip.js +20 -7
- data/lib/leaflet.draw/src/draw/DrawToolbar.js +26 -22
- data/lib/leaflet.draw/src/draw/handler/Draw.Circle.js +11 -6
- data/lib/leaflet.draw/src/draw/handler/Draw.Feature.js +6 -2
- data/lib/leaflet.draw/src/draw/handler/Draw.Marker.js +7 -2
- data/lib/leaflet.draw/src/draw/handler/Draw.Polygon.js +29 -7
- data/lib/leaflet.draw/src/draw/handler/Draw.Polyline.js +44 -21
- data/lib/leaflet.draw/src/draw/handler/Draw.Rectangle.js +3 -3
- data/lib/leaflet.draw/src/draw/handler/Draw.SimpleShape.js +14 -1
- data/lib/leaflet.draw/src/edit/EditToolbar.js +86 -16
- data/lib/leaflet.draw/src/edit/handler/Edit.Poly.js +10 -7
- data/lib/leaflet.draw/src/edit/handler/Edit.SimpleShape.js +1 -2
- data/lib/leaflet.draw/src/edit/handler/EditToolbar.Delete.js +15 -3
- data/lib/leaflet.draw/src/edit/handler/EditToolbar.Edit.js +56 -38
- data/lib/leaflet.draw/src/ext/GeometryUtil.js +68 -0
- data/lib/leaflet.draw/src/images/spritesheet.svg +41 -0
- data/lib/leaflet.label/CHANGELOG.md +32 -0
- data/lib/leaflet.label/README.md +21 -4
- data/lib/leaflet.label/build/build.js +2 -2
- data/lib/leaflet.label/build/deps.js +2 -0
- data/lib/leaflet.label/build/hintrc.js +4 -0
- data/lib/leaflet.label/dist/leaflet.label-src.js +266 -83
- data/lib/leaflet.label/dist/leaflet.label.css +23 -4
- data/lib/leaflet.label/dist/leaflet.label.js +1 -1
- data/lib/leaflet.label/example/label.html +6 -3
- data/lib/leaflet.label/libs/leaflet/images/layers-2x.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/layers.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/marker-icon-2x.png +0 -0
- data/lib/leaflet.label/libs/leaflet/leaflet-src.js +1129 -608
- data/lib/leaflet.label/libs/leaflet/leaflet.css +85 -66
- data/lib/leaflet.label/libs/leaflet/leaflet.js +6 -5
- data/lib/leaflet.label/package.json +19 -0
- data/lib/leaflet.label/src/BaseMarkerMethods.js +129 -0
- data/lib/leaflet.label/src/CircleMarker.Label.js +7 -0
- data/lib/leaflet.label/src/Label.js +161 -37
- data/lib/leaflet.label/src/Leaflet.label.js +1 -1
- data/lib/leaflet.label/src/Map.Label.js +0 -2
- data/lib/leaflet.label/src/Marker.Label.js +15 -120
- data/lib/leaflet.label/src/Path.Label.js +11 -11
- data/lib/leaflet/CHANGELOG.md +299 -31
- data/lib/leaflet/CONTRIBUTING.md +3 -3
- data/lib/leaflet/FAQ.md +138 -0
- data/lib/leaflet/Jakefile.js +24 -4
- data/lib/leaflet/PLUGIN-GUIDE.md +127 -0
- data/lib/leaflet/README.md +10 -6
- data/lib/leaflet/build/build.html +3 -19
- data/lib/leaflet/build/build.js +21 -51
- data/lib/leaflet/build/deps.js +10 -7
- data/lib/leaflet/build/hintrc.js +6 -4
- data/lib/leaflet/debug/hacks/jitter.html +0 -1
- data/lib/leaflet/debug/map/canvas.html +11 -12
- data/lib/leaflet/debug/map/controls.html +3 -4
- data/lib/leaflet/debug/map/geolocation.html +0 -1
- data/lib/leaflet/debug/map/iframe.html +11 -0
- data/lib/leaflet/debug/map/image-overlay.html +0 -1
- data/lib/leaflet/debug/map/map-mobile.html +0 -1
- data/lib/leaflet/debug/map/map.html +1 -2
- data/lib/leaflet/debug/map/max-bounds.html +2 -1
- data/lib/leaflet/debug/map/opacity.html +223 -0
- data/lib/leaflet/debug/map/scroll.html +6 -1
- data/lib/leaflet/debug/map/simple-proj.html +0 -1
- data/lib/leaflet/debug/map/wms-marble.html +4 -5
- data/lib/leaflet/debug/map/wms.html +0 -1
- data/lib/leaflet/debug/map/zoomlevels.html +0 -1
- data/lib/leaflet/debug/tests/add_remove_layers.html +5 -6
- data/lib/leaflet/debug/tests/bringtoback.html +0 -1
- data/lib/leaflet/debug/tests/canvasloop.html +47 -0
- data/lib/leaflet/debug/tests/click_on_canvas.html +0 -1
- data/lib/leaflet/debug/tests/dragging_and_copyworldjump.html +61 -0
- data/lib/leaflet/debug/tests/opacity.html +0 -1
- data/lib/leaflet/debug/tests/popupcontextmenuclicks.html +59 -0
- data/lib/leaflet/debug/tests/remove_while_dragging.html +4 -5
- data/lib/leaflet/debug/tests/removetilewhilepan.html +0 -1
- data/lib/leaflet/debug/tests/reuse_popups.html +0 -1
- data/lib/leaflet/debug/tests/rtl.html +42 -0
- data/lib/leaflet/debug/tests/rtl2.html +27 -0
- data/lib/leaflet/debug/tests/set_icon_reuse_dom.html +43 -0
- data/lib/leaflet/debug/tests/svg_clicks.html +3 -4
- data/lib/leaflet/debug/vector/bounds-extend.html +0 -1
- data/lib/leaflet/debug/vector/feature-group-bounds.html +0 -1
- data/lib/leaflet/debug/vector/geojson.html +0 -1
- data/lib/leaflet/debug/vector/rectangle.html +0 -1
- data/lib/leaflet/debug/vector/touchzoomemu.html +2 -3
- data/lib/leaflet/debug/vector/vector-bounds.html +0 -1
- data/lib/leaflet/debug/vector/vector-canvas.html +0 -1
- data/lib/leaflet/debug/vector/vector-mobile.html +0 -1
- data/lib/leaflet/debug/vector/vector-simple.html +0 -1
- data/lib/leaflet/debug/vector/vector.html +0 -1
- data/lib/leaflet/dist/images/layers-2x.png +0 -0
- data/lib/leaflet/dist/images/layers.png +0 -0
- data/lib/leaflet/dist/leaflet.css +85 -66
- data/lib/leaflet/package.json +25 -20
- data/lib/leaflet/spec/after.js +1 -1
- data/lib/leaflet/spec/index.html +21 -13
- data/lib/leaflet/spec/karma.conf.js +51 -50
- data/lib/leaflet/spec/spec.hintrc.js +25 -0
- data/lib/leaflet/spec/suites/LeafletSpec.js +2 -2
- data/lib/leaflet/spec/suites/SpecHelper.js +37 -21
- data/lib/leaflet/spec/suites/control/Control.LayersSpec.js +1 -1
- data/lib/leaflet/spec/suites/core/ClassSpec.js +12 -12
- data/lib/leaflet/spec/suites/core/EventsSpec.js +74 -18
- data/lib/leaflet/spec/suites/core/UtilSpec.js +69 -25
- data/lib/leaflet/spec/suites/dom/DomEventSpec.js +16 -16
- data/lib/leaflet/spec/suites/dom/DomUtilSpec.js +9 -16
- data/lib/leaflet/spec/suites/dom/PosAnimationSpec.js +27 -0
- data/lib/leaflet/spec/suites/geo/CRSSpec.js +47 -0
- data/lib/leaflet/spec/suites/geo/LatLngBoundsSpec.js +22 -14
- data/lib/leaflet/spec/suites/geo/LatLngSpec.js +22 -8
- data/lib/leaflet/spec/suites/geo/ProjectionSpec.js +21 -20
- data/lib/leaflet/spec/suites/geometry/BoundsSpec.js +15 -15
- data/lib/leaflet/spec/suites/geometry/PointSpec.js +12 -12
- data/lib/leaflet/spec/suites/geometry/TransformationSpec.js +4 -4
- data/lib/leaflet/spec/suites/layer/FeatureGroupSpec.js +59 -9
- data/lib/leaflet/spec/suites/layer/GeoJSONSpec.js +213 -17
- data/lib/leaflet/spec/suites/layer/LayerGroupSpec.js +6 -6
- data/lib/leaflet/spec/suites/layer/PopupSpec.js +65 -5
- data/lib/leaflet/spec/suites/layer/TileLayerSpec.js +16 -15
- data/lib/leaflet/spec/suites/layer/marker/MarkerSpec.js +94 -0
- data/lib/leaflet/spec/suites/layer/vector/CircleMarkerSpec.js +7 -7
- data/lib/leaflet/spec/suites/layer/vector/PolygonSpec.js +38 -2
- data/lib/leaflet/spec/suites/layer/vector/PolylineGeometrySpec.js +4 -4
- data/lib/leaflet/spec/suites/layer/vector/PolylineSpec.js +2 -2
- data/lib/leaflet/spec/suites/map/MapSpec.js +318 -26
- data/lib/leaflet/spec/suites/map/handler/Map.DragSpec.js +38 -0
- data/lib/leaflet/src/Leaflet.js +2 -2
- data/lib/leaflet/src/control/Control.Attribution.js +6 -0
- data/lib/leaflet/src/control/Control.Layers.js +33 -24
- data/lib/leaflet/src/control/Control.Zoom.js +12 -4
- data/lib/leaflet/src/control/Control.js +10 -0
- data/lib/leaflet/src/copyright.js +2 -1
- data/lib/leaflet/src/core/Browser.js +11 -10
- data/lib/leaflet/src/core/Events.js +15 -11
- data/lib/leaflet/src/core/Util.js +19 -14
- data/lib/leaflet/src/dom/DomEvent.DoubleTap.js +13 -12
- data/lib/leaflet/src/dom/DomEvent.Pointer.js +155 -0
- data/lib/leaflet/src/dom/DomEvent.js +57 -19
- data/lib/leaflet/src/dom/DomUtil.js +89 -34
- data/lib/leaflet/src/dom/Draggable.js +26 -89
- data/lib/leaflet/src/dom/PosAnimation.js +13 -2
- data/lib/leaflet/src/geo/LatLng.js +16 -5
- data/lib/leaflet/src/geo/LatLngBounds.js +5 -2
- data/lib/leaflet/src/geo/crs/CRS.EPSG3395.js +2 -2
- data/lib/leaflet/src/geo/crs/CRS.js +5 -0
- data/lib/leaflet/src/geo/projection/Projection.Mercator.js +3 -3
- data/lib/leaflet/src/geometry/LineUtil.js +2 -2
- data/lib/leaflet/src/images/layers.svg +8 -0
- data/lib/leaflet/src/images/marker.svg +61 -1
- data/lib/leaflet/src/layer/FeatureGroup.js +24 -7
- data/lib/leaflet/src/layer/GeoJSON.js +97 -56
- data/lib/leaflet/src/layer/ImageOverlay.js +9 -0
- data/lib/leaflet/src/layer/LayerGroup.js +8 -3
- data/lib/leaflet/src/layer/Popup.js +56 -34
- data/lib/leaflet/src/layer/marker/DivIcon.js +4 -2
- data/lib/leaflet/src/layer/marker/Icon.Default.js +1 -1
- data/lib/leaflet/src/layer/marker/Icon.js +15 -18
- data/lib/leaflet/src/layer/marker/Marker.Drag.js +7 -5
- data/lib/leaflet/src/layer/marker/Marker.Popup.js +22 -5
- data/lib/leaflet/src/layer/marker/Marker.js +75 -32
- data/lib/leaflet/src/layer/tile/TileLayer.Anim.js +14 -26
- data/lib/leaflet/src/layer/tile/TileLayer.Canvas.js +7 -6
- data/lib/leaflet/src/layer/tile/TileLayer.WMS.js +14 -10
- data/lib/leaflet/src/layer/tile/TileLayer.js +53 -32
- data/lib/leaflet/src/layer/vector/CircleMarker.js +11 -0
- data/lib/leaflet/src/layer/vector/MultiPoly.js +10 -0
- data/lib/leaflet/src/layer/vector/Path.SVG.js +14 -3
- data/lib/leaflet/src/layer/vector/Path.VML.js +12 -2
- data/lib/leaflet/src/layer/vector/Path.js +7 -3
- data/lib/leaflet/src/layer/vector/Polygon.js +14 -3
- data/lib/leaflet/src/layer/vector/canvas/CircleMarker.Canvas.js +9 -0
- data/lib/leaflet/src/layer/vector/canvas/Path.Canvas.js +1 -0
- data/lib/leaflet/src/map/Map.js +192 -125
- data/lib/leaflet/src/map/anim/Map.PanAnimation.js +29 -19
- data/lib/leaflet/src/map/anim/Map.ZoomAnimation.js +21 -9
- data/lib/leaflet/src/map/ext/Map.Geolocation.js +11 -4
- data/lib/leaflet/src/map/handler/Map.BoxZoom.js +26 -12
- data/lib/leaflet/src/map/handler/Map.DoubleClickZoom.js +10 -3
- data/lib/leaflet/src/map/handler/Map.Drag.js +12 -6
- data/lib/leaflet/src/map/handler/Map.Keyboard.js +5 -2
- data/lib/leaflet/src/map/handler/Map.ScrollWheelZoom.js +7 -1
- data/lib/leaflet/src/map/handler/Map.Tap.js +107 -0
- data/lib/leaflet/src/map/handler/Map.TouchZoom.js +9 -3
- data/vendor/assets/images/layers-2x.png +0 -0
- data/vendor/assets/images/layers.png +0 -0
- data/vendor/assets/images/spritesheet-2x.png +0 -0
- data/vendor/assets/images/spritesheet.png +0 -0
- data/vendor/assets/javascripts/leaflet.draw.js +2 -4
- data/vendor/assets/javascripts/leaflet.js +3 -1
- data/vendor/assets/javascripts/leaflet.label.js +2 -0
- data/vendor/assets/stylesheets/leaflet.css.erb +337 -318
- data/vendor/assets/stylesheets/leaflet.draw.css.erb +35 -3
- data/vendor/assets/stylesheets/leaflet.draw.ie.css +5 -0
- data/vendor/assets/stylesheets/leaflet.label.css +23 -4
- metadata +40 -14
- data/lib/leaflet.draw/examples/libs/leaflet.ie.css +0 -51
- data/lib/leaflet.label/libs/leaflet/leaflet.ie.css +0 -51
- data/lib/leaflet/dist/leaflet-src.js +0 -8579
- data/lib/leaflet/dist/leaflet.ie.css +0 -51
- data/lib/leaflet/dist/leaflet.js +0 -8
- data/lib/leaflet/spec/happen.js +0 -93
- data/lib/leaflet/src/dom/DomEvent.MsTouch.js +0 -146
- data/vendor/assets/stylesheets/leaflet.ie.css +0 -51
@@ -6,7 +6,6 @@
|
|
6
6
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
7
7
|
|
8
8
|
<link rel="stylesheet" href="../../dist/leaflet.css" />
|
9
|
-
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
|
10
9
|
|
11
10
|
<script type="text/javascript" src="../../build/deps.js"></script>
|
12
11
|
<script src="../leaflet-include.js"></script>
|
@@ -4,7 +4,6 @@
|
|
4
4
|
<title>Leaflet debug page</title>
|
5
5
|
|
6
6
|
<link rel="stylesheet" href="../../dist/leaflet.css" />
|
7
|
-
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
|
8
7
|
|
9
8
|
<link rel="stylesheet" href="../css/screen.css" />
|
10
9
|
|
@@ -24,7 +23,7 @@
|
|
24
23
|
//console.log = function (text) {
|
25
24
|
// buffer += text + "\r\n";
|
26
25
|
//}
|
27
|
-
|
26
|
+
|
28
27
|
var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/d4fc77ea4a63471cab2423e66626cbb6/997/256/{z}/{x}/{y}.png',
|
29
28
|
cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18}),
|
30
29
|
map = new L.Map('map', {layers: [cloudmade], center: new L.LatLng(51.505, -0.04), zoom: 13});
|
@@ -157,7 +156,7 @@
|
|
157
156
|
}
|
158
157
|
_timerAt++;
|
159
158
|
}
|
160
|
-
|
159
|
+
|
161
160
|
function Hack4() {
|
162
161
|
_timerAt = 0;
|
163
162
|
clearInterval(_timer);
|
@@ -6,7 +6,6 @@
|
|
6
6
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
7
7
|
|
8
8
|
<link rel="stylesheet" href="../../dist/leaflet.css" />
|
9
|
-
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
|
10
9
|
|
11
10
|
<link rel="stylesheet" href="../css/mobile.css" />
|
12
11
|
|
@@ -6,7 +6,6 @@
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
7
7
|
|
8
8
|
<link rel="stylesheet" href="../../dist/leaflet.css" />
|
9
|
-
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
|
10
9
|
|
11
10
|
<link rel="stylesheet" href="../css/mobile.css" />
|
12
11
|
|
@@ -4,7 +4,6 @@
|
|
4
4
|
<title>Leaflet debug page</title>
|
5
5
|
|
6
6
|
<link rel="stylesheet" href="../../dist/leaflet.css" />
|
7
|
-
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
|
8
7
|
|
9
8
|
<link rel="stylesheet" href="../css/screen.css" />
|
10
9
|
<script type="text/javascript" src="../../build/deps.js"></script>
|
Binary file
|
Binary file
|
@@ -53,6 +53,10 @@
|
|
53
53
|
width: 0;
|
54
54
|
height: 0;
|
55
55
|
}
|
56
|
+
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
|
57
|
+
.leaflet-overlay-pane svg {
|
58
|
+
-moz-user-select: none;
|
59
|
+
}
|
56
60
|
|
57
61
|
.leaflet-tile-pane { z-index: 2; }
|
58
62
|
.leaflet-objects-pane { z-index: 3; }
|
@@ -61,6 +65,16 @@
|
|
61
65
|
.leaflet-marker-pane { z-index: 6; }
|
62
66
|
.leaflet-popup-pane { z-index: 7; }
|
63
67
|
|
68
|
+
.leaflet-vml-shape {
|
69
|
+
width: 1px;
|
70
|
+
height: 1px;
|
71
|
+
}
|
72
|
+
.lvml {
|
73
|
+
behavior: url(#default#VML);
|
74
|
+
display: inline-block;
|
75
|
+
position: absolute;
|
76
|
+
}
|
77
|
+
|
64
78
|
|
65
79
|
/* control positioning */
|
66
80
|
|
@@ -156,9 +170,8 @@
|
|
156
170
|
.leaflet-control {
|
157
171
|
cursor: auto;
|
158
172
|
}
|
159
|
-
.leaflet-dragging,
|
160
|
-
.leaflet-dragging .leaflet-clickable
|
161
|
-
.leaflet-dragging .leaflet-container {
|
173
|
+
.leaflet-dragging .leaflet-container,
|
174
|
+
.leaflet-dragging .leaflet-clickable {
|
162
175
|
cursor: move;
|
163
176
|
cursor: -webkit-grabbing;
|
164
177
|
cursor: -moz-grabbing;
|
@@ -178,9 +191,8 @@
|
|
178
191
|
outline: 2px solid orange;
|
179
192
|
}
|
180
193
|
.leaflet-zoom-box {
|
181
|
-
border: 2px dotted #
|
182
|
-
background:
|
183
|
-
opacity: 0.5;
|
194
|
+
border: 2px dotted #38f;
|
195
|
+
background: rgba(255,255,255,0.5);
|
184
196
|
}
|
185
197
|
|
186
198
|
|
@@ -193,11 +205,11 @@
|
|
193
205
|
/* general toolbar styles */
|
194
206
|
|
195
207
|
.leaflet-bar {
|
196
|
-
box-shadow: 0 1px
|
197
|
-
|
198
|
-
border-radius: 4px;
|
208
|
+
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
209
|
+
border-radius: 4px;
|
199
210
|
}
|
200
|
-
.leaflet-bar a
|
211
|
+
.leaflet-bar a,
|
212
|
+
.leaflet-bar a:hover {
|
201
213
|
background-color: #fff;
|
202
214
|
border-bottom: 1px solid #ccc;
|
203
215
|
width: 26px;
|
@@ -218,16 +230,12 @@
|
|
218
230
|
background-color: #f4f4f4;
|
219
231
|
}
|
220
232
|
.leaflet-bar a:first-child {
|
221
|
-
|
222
|
-
|
223
|
-
-webkit-border-top-right-radius: 4px;
|
224
|
-
border-top-right-radius: 4px;
|
233
|
+
border-top-left-radius: 4px;
|
234
|
+
border-top-right-radius: 4px;
|
225
235
|
}
|
226
236
|
.leaflet-bar a:last-child {
|
227
|
-
|
228
|
-
|
229
|
-
-webkit-border-bottom-right-radius: 4px;
|
230
|
-
border-bottom-right-radius: 4px;
|
237
|
+
border-bottom-left-radius: 4px;
|
238
|
+
border-bottom-right-radius: 4px;
|
231
239
|
border-bottom: none;
|
232
240
|
}
|
233
241
|
.leaflet-bar a.leaflet-disabled {
|
@@ -236,61 +244,48 @@
|
|
236
244
|
color: #bbb;
|
237
245
|
}
|
238
246
|
|
239
|
-
.leaflet-touch .leaflet-bar {
|
240
|
-
-webkit-border-radius: 10px;
|
241
|
-
border-radius: 10px;
|
242
|
-
}
|
243
247
|
.leaflet-touch .leaflet-bar a {
|
244
248
|
width: 30px;
|
245
249
|
height: 30px;
|
246
|
-
|
247
|
-
.leaflet-touch .leaflet-bar a:first-child {
|
248
|
-
-webkit-border-top-left-radius: 7px;
|
249
|
-
border-top-left-radius: 7px;
|
250
|
-
-webkit-border-top-right-radius: 7px;
|
251
|
-
border-top-right-radius: 7px;
|
252
|
-
}
|
253
|
-
.leaflet-touch .leaflet-bar a:last-child {
|
254
|
-
-webkit-border-bottom-left-radius: 7px;
|
255
|
-
border-bottom-left-radius: 7px;
|
256
|
-
-webkit-border-bottom-right-radius: 7px;
|
257
|
-
border-bottom-right-radius: 7px;
|
258
|
-
border-bottom: none;
|
250
|
+
line-height: 30px;
|
259
251
|
}
|
260
252
|
|
261
253
|
|
262
254
|
/* zoom control */
|
263
255
|
|
264
|
-
.leaflet-control-zoom-in
|
256
|
+
.leaflet-control-zoom-in,
|
257
|
+
.leaflet-control-zoom-out {
|
265
258
|
font: bold 18px 'Lucida Console', Monaco, monospace;
|
259
|
+
text-indent: 1px;
|
266
260
|
}
|
267
261
|
.leaflet-control-zoom-out {
|
268
|
-
font:
|
262
|
+
font-size: 20px;
|
269
263
|
}
|
270
264
|
|
271
265
|
.leaflet-touch .leaflet-control-zoom-in {
|
272
266
|
font-size: 22px;
|
273
|
-
line-height: 30px;
|
274
267
|
}
|
275
268
|
.leaflet-touch .leaflet-control-zoom-out {
|
276
|
-
font-size:
|
277
|
-
line-height: 30px;
|
269
|
+
font-size: 24px;
|
278
270
|
}
|
279
271
|
|
280
272
|
|
281
273
|
/* layers control */
|
282
274
|
|
283
275
|
.leaflet-control-layers {
|
284
|
-
box-shadow: 0 1px
|
285
|
-
background: #
|
286
|
-
|
287
|
-
border-radius: 8px;
|
276
|
+
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
|
277
|
+
background: #fff;
|
278
|
+
border-radius: 5px;
|
288
279
|
}
|
289
280
|
.leaflet-control-layers-toggle {
|
290
281
|
background-image: url(images/layers.png);
|
291
282
|
width: 36px;
|
292
283
|
height: 36px;
|
293
284
|
}
|
285
|
+
.leaflet-retina .leaflet-control-layers-toggle {
|
286
|
+
background-image: url(images/layers-2x.png);
|
287
|
+
background-size: 26px 26px;
|
288
|
+
}
|
294
289
|
.leaflet-touch .leaflet-control-layers-toggle {
|
295
290
|
width: 44px;
|
296
291
|
height: 44px;
|
@@ -326,8 +321,8 @@
|
|
326
321
|
/* attribution and scale controls */
|
327
322
|
|
328
323
|
.leaflet-container .leaflet-control-attribution {
|
329
|
-
background
|
330
|
-
|
324
|
+
background: #fff;
|
325
|
+
background: rgba(255, 255, 255, 0.7);
|
331
326
|
margin: 0;
|
332
327
|
}
|
333
328
|
.leaflet-control-attribution,
|
@@ -335,6 +330,12 @@
|
|
335
330
|
padding: 0 5px;
|
336
331
|
color: #333;
|
337
332
|
}
|
333
|
+
.leaflet-control-attribution a {
|
334
|
+
text-decoration: none;
|
335
|
+
}
|
336
|
+
.leaflet-control-attribution a:hover {
|
337
|
+
text-decoration: underline;
|
338
|
+
}
|
338
339
|
.leaflet-container .leaflet-control-attribution,
|
339
340
|
.leaflet-container .leaflet-control-scale {
|
340
341
|
font-size: 11px;
|
@@ -348,21 +349,21 @@
|
|
348
349
|
.leaflet-control-scale-line {
|
349
350
|
border: 2px solid #777;
|
350
351
|
border-top: none;
|
351
|
-
color: black;
|
352
352
|
line-height: 1.1;
|
353
353
|
padding: 2px 5px 1px;
|
354
354
|
font-size: 11px;
|
355
|
-
text-shadow: 1px 1px 1px #fff;
|
356
|
-
background-color: rgba(255, 255, 255, 0.5);
|
357
|
-
box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
|
358
355
|
white-space: nowrap;
|
359
356
|
overflow: hidden;
|
357
|
+
-moz-box-sizing: content-box;
|
358
|
+
box-sizing: content-box;
|
359
|
+
|
360
|
+
background: #fff;
|
361
|
+
background: rgba(255, 255, 255, 0.5);
|
360
362
|
}
|
361
363
|
.leaflet-control-scale-line:not(:first-child) {
|
362
364
|
border-top: 2px solid #777;
|
363
365
|
border-bottom: none;
|
364
366
|
margin-top: -2px;
|
365
|
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
366
367
|
}
|
367
368
|
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
368
369
|
border-bottom: 2px solid #777;
|
@@ -370,12 +371,13 @@
|
|
370
371
|
|
371
372
|
.leaflet-touch .leaflet-control-attribution,
|
372
373
|
.leaflet-touch .leaflet-control-layers,
|
373
|
-
.leaflet-touch .leaflet-
|
374
|
+
.leaflet-touch .leaflet-bar {
|
374
375
|
box-shadow: none;
|
375
376
|
}
|
376
377
|
.leaflet-touch .leaflet-control-layers,
|
377
|
-
.leaflet-touch .leaflet-
|
378
|
-
border:
|
378
|
+
.leaflet-touch .leaflet-bar {
|
379
|
+
border: 2px solid rgba(0,0,0,0.2);
|
380
|
+
background-clip: padding-box;
|
379
381
|
}
|
380
382
|
|
381
383
|
|
@@ -388,11 +390,10 @@
|
|
388
390
|
.leaflet-popup-content-wrapper {
|
389
391
|
padding: 1px;
|
390
392
|
text-align: left;
|
391
|
-
|
392
|
-
border-radius: 20px;
|
393
|
+
border-radius: 12px;
|
393
394
|
}
|
394
395
|
.leaflet-popup-content {
|
395
|
-
margin:
|
396
|
+
margin: 13px 19px;
|
396
397
|
line-height: 1.4;
|
397
398
|
}
|
398
399
|
.leaflet-popup-content p {
|
@@ -406,11 +407,11 @@
|
|
406
407
|
overflow: hidden;
|
407
408
|
}
|
408
409
|
.leaflet-popup-tip {
|
409
|
-
width:
|
410
|
-
height:
|
410
|
+
width: 17px;
|
411
|
+
height: 17px;
|
411
412
|
padding: 1px;
|
412
413
|
|
413
|
-
margin: -
|
414
|
+
margin: -10px auto 0;
|
414
415
|
|
415
416
|
-webkit-transform: rotate(45deg);
|
416
417
|
-moz-transform: rotate(45deg);
|
@@ -418,7 +419,8 @@
|
|
418
419
|
-o-transform: rotate(45deg);
|
419
420
|
transform: rotate(45deg);
|
420
421
|
}
|
421
|
-
.leaflet-popup-content-wrapper,
|
422
|
+
.leaflet-popup-content-wrapper,
|
423
|
+
.leaflet-popup-tip {
|
422
424
|
background: white;
|
423
425
|
|
424
426
|
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
@@ -427,7 +429,7 @@
|
|
427
429
|
position: absolute;
|
428
430
|
top: 0;
|
429
431
|
right: 0;
|
430
|
-
padding: 4px
|
432
|
+
padding: 4px 4px 0 0;
|
431
433
|
text-align: center;
|
432
434
|
width: 18px;
|
433
435
|
height: 14px;
|
@@ -446,6 +448,27 @@
|
|
446
448
|
border-top: 1px solid #ddd;
|
447
449
|
}
|
448
450
|
|
451
|
+
.leaflet-oldie .leaflet-popup-content-wrapper {
|
452
|
+
zoom: 1;
|
453
|
+
}
|
454
|
+
.leaflet-oldie .leaflet-popup-tip {
|
455
|
+
width: 24px;
|
456
|
+
margin: 0 auto;
|
457
|
+
|
458
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
|
459
|
+
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
|
460
|
+
}
|
461
|
+
.leaflet-oldie .leaflet-popup-tip-container {
|
462
|
+
margin-top: -1px;
|
463
|
+
}
|
464
|
+
|
465
|
+
.leaflet-oldie .leaflet-control-zoom,
|
466
|
+
.leaflet-oldie .leaflet-control-layers,
|
467
|
+
.leaflet-oldie .leaflet-popup-content-wrapper,
|
468
|
+
.leaflet-oldie .leaflet-popup-tip {
|
469
|
+
border: 1px solid #999;
|
470
|
+
}
|
471
|
+
|
449
472
|
|
450
473
|
/* div icon */
|
451
474
|
|
@@ -453,7 +476,3 @@
|
|
453
476
|
background: #fff;
|
454
477
|
border: 1px solid #666;
|
455
478
|
}
|
456
|
-
.leaflet-editing-icon {
|
457
|
-
-webkit-border-radius: 2px;
|
458
|
-
border-radius: 2px;
|
459
|
-
}
|
data/lib/leaflet/package.json
CHANGED
@@ -1,22 +1,27 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
2
|
+
"name": "leaflet",
|
3
|
+
"version": "0.7.0",
|
4
|
+
"description": "JavaScript library for mobile-friendly interactive maps",
|
5
|
+
"devDependencies": {
|
6
|
+
"jake": "~0.7.4",
|
7
|
+
"jshint": "~2.3.0",
|
8
|
+
"uglify-js": "~2.4.3",
|
9
|
+
"mocha": "~1.14.0",
|
10
|
+
"happen": "~0.1.3",
|
11
|
+
"karma": "~0.10.4",
|
12
|
+
"karma-mocha": "~0.1.0"
|
13
|
+
},
|
14
|
+
"main": "dist/leaflet-src.js",
|
15
|
+
"scripts": {
|
16
|
+
"test": "jake test",
|
17
|
+
"prepublish": "jake build"
|
18
|
+
},
|
19
|
+
"repository": {
|
20
|
+
"type": "git",
|
21
|
+
"url": "git://github.com/Leaflet/Leaflet.git"
|
22
|
+
},
|
23
|
+
"keywords": [
|
24
|
+
"gis",
|
25
|
+
"map"
|
26
|
+
]
|
22
27
|
}
|
data/lib/leaflet/spec/after.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// put after Leaflet files as imagePath can't be detected in a PhantomJS env
|
2
|
-
L.Icon.Default.imagePath = "
|
2
|
+
L.Icon.Default.imagePath = "/base/dist/images";
|
data/lib/leaflet/spec/index.html
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
|
5
|
-
<title>Spec Runner</title>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Leaflet Spec Runner</title>
|
6
6
|
<link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css">
|
7
7
|
</head>
|
8
8
|
<body>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<script type="text/javascript" src="happen.js"></script>
|
9
|
+
<div id="mocha"></div>
|
10
|
+
<script src="expect.js"></script>
|
11
|
+
<script type="text/javascript" src="../node_modules/mocha/mocha.js"></script>
|
12
|
+
<script type="text/javascript" src="../node_modules/happen/happen.js"></script>
|
13
13
|
<script type="text/javascript" src="sinon.js"></script>
|
14
14
|
|
15
15
|
<!-- source files -->
|
@@ -18,10 +18,12 @@
|
|
18
18
|
|
19
19
|
<script type="text/javascript" src="../debug/leaflet-include.js"></script>
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
<script>
|
22
|
+
mocha.setup({
|
23
|
+
ui: 'bdd',
|
24
|
+
ignoreLeaks: true
|
25
|
+
});
|
26
|
+
</script>
|
25
27
|
|
26
28
|
<!-- spec files -->
|
27
29
|
|
@@ -61,6 +63,9 @@
|
|
61
63
|
<script type="text/javascript" src="suites/layer/TileLayerSpec.js"></script>
|
62
64
|
<script type="text/javascript" src="suites/layer/PopupSpec.js"></script>
|
63
65
|
|
66
|
+
<!-- /layer/marker/ -->
|
67
|
+
<script type="text/javascript" src="suites/layer/marker/MarkerSpec.js"></script>
|
68
|
+
|
64
69
|
<!-- /layer/vector/ -->
|
65
70
|
<script type="text/javascript" src="suites/layer/vector/CircleSpec.js"></script>
|
66
71
|
<script type="text/javascript" src="suites/layer/vector/CircleMarkerSpec.js"></script>
|
@@ -71,8 +76,11 @@
|
|
71
76
|
<!-- /map -->
|
72
77
|
<script type="text/javascript" src="suites/map/MapSpec.js"></script>
|
73
78
|
|
74
|
-
|
75
|
-
|
76
|
-
|
79
|
+
<!-- /map/handler -->
|
80
|
+
<script type="text/javascript" src="suites/map/handler/Map.DragSpec.js"></script>
|
81
|
+
|
82
|
+
<script>
|
83
|
+
(window.mochaPhantomJS || window.mocha).run();
|
84
|
+
</script>
|
77
85
|
</body>
|
78
86
|
</html>
|