leaflet-js 0.6.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/CHANGELOG.rdoc +32 -0
- data/LICENSE +21 -0
- data/README.rdoc +54 -0
- data/Rakefile +15 -0
- data/leaflet-js.gemspec +28 -0
- data/lib/leaflet-js.rb +10 -0
- data/lib/leaflet.draw/BREAKINGCHANGES.md +54 -0
- data/lib/leaflet.draw/CHANGELOG.md +73 -0
- data/lib/leaflet.draw/Jakefile.js +26 -0
- data/lib/leaflet.draw/MIT-LICENCE.txt +20 -0
- data/lib/leaflet.draw/README.md +364 -0
- data/lib/leaflet.draw/TODO.md +62 -0
- data/lib/leaflet.draw/build/build.html +243 -0
- data/lib/leaflet.draw/build/build.js +189 -0
- data/lib/leaflet.draw/build/deps.js +75 -0
- data/lib/leaflet.draw/build/hintrc.js +47 -0
- data/lib/leaflet.draw/build/leaflet.draw-include.js +42 -0
- data/lib/leaflet.draw/dist/images/spritesheet.png +0 -0
- data/lib/leaflet.draw/dist/leaflet.draw-src.js +2429 -0
- data/lib/leaflet.draw/dist/leaflet.draw.css +212 -0
- data/lib/leaflet.draw/dist/leaflet.draw.ie.css +44 -0
- data/lib/leaflet.draw/dist/leaflet.draw.js +10 -0
- data/lib/leaflet.draw/examples/basic.html +106 -0
- data/lib/leaflet.draw/examples/edithandlers.html +67 -0
- data/lib/leaflet.draw/examples/libs/images/layers.png +0 -0
- data/lib/leaflet.draw/examples/libs/images/marker-icon.png +0 -0
- data/lib/leaflet.draw/examples/libs/images/marker-icon@2x.png +0 -0
- data/lib/leaflet.draw/examples/libs/images/marker-shadow.png +0 -0
- data/lib/leaflet.draw/examples/libs/leaflet-src.js +8587 -0
- data/lib/leaflet.draw/examples/libs/leaflet.css +459 -0
- data/lib/leaflet.draw/examples/libs/leaflet.ie.css +51 -0
- data/lib/leaflet.draw/package.json +37 -0
- data/lib/leaflet.draw/spec/after.js +2 -0
- data/lib/leaflet.draw/spec/before.js +3 -0
- data/lib/leaflet.draw/spec/expect.js +1253 -0
- data/lib/leaflet.draw/spec/happen.js +93 -0
- data/lib/leaflet.draw/spec/index.html +36 -0
- data/lib/leaflet.draw/spec/karma.conf.js +69 -0
- data/lib/leaflet.draw/spec/sinon.js +4223 -0
- data/lib/leaflet.draw/spec/suites/DrawControlSpec.js +15 -0
- data/lib/leaflet.draw/spec/suites/SpecHelper.js +26 -0
- data/lib/leaflet.draw/src/Control.Draw.js +101 -0
- data/lib/leaflet.draw/src/Leaflet.draw.js +5 -0
- data/lib/leaflet.draw/src/Toolbar.js +187 -0
- data/lib/leaflet.draw/src/Tooltip.js +52 -0
- data/lib/leaflet.draw/src/copyright.js +8 -0
- data/lib/leaflet.draw/src/draw/DrawToolbar.js +107 -0
- data/lib/leaflet.draw/src/draw/handler/Draw.Circle.js +59 -0
- data/lib/leaflet.draw/src/draw/handler/Draw.Feature.js +74 -0
- data/lib/leaflet.draw/src/draw/handler/Draw.Marker.js +97 -0
- data/lib/leaflet.draw/src/draw/handler/Draw.Polygon.js +79 -0
- data/lib/leaflet.draw/src/draw/handler/Draw.Polyline.js +360 -0
- data/lib/leaflet.draw/src/draw/handler/Draw.Rectangle.js +41 -0
- data/lib/leaflet.draw/src/draw/handler/Draw.SimpleShape.js +67 -0
- data/lib/leaflet.draw/src/edit/EditToolbar.js +93 -0
- data/lib/leaflet.draw/src/edit/handler/Edit.Circle.js +63 -0
- data/lib/leaflet.draw/src/edit/handler/Edit.Poly.js +267 -0
- data/lib/leaflet.draw/src/edit/handler/Edit.Rectangle.js +117 -0
- data/lib/leaflet.draw/src/edit/handler/Edit.SimpleShape.js +138 -0
- data/lib/leaflet.draw/src/edit/handler/EditToolbar.Delete.js +109 -0
- data/lib/leaflet.draw/src/edit/handler/EditToolbar.Edit.js +233 -0
- data/lib/leaflet.draw/src/ext/LatLngUtil.js +18 -0
- data/lib/leaflet.draw/src/ext/LineUtil.Intersect.js +15 -0
- data/lib/leaflet.draw/src/ext/Polygon.Intersect.js +27 -0
- data/lib/leaflet.draw/src/ext/Polyline.Intersect.js +85 -0
- data/lib/leaflet.label/CHANGELOG.md +35 -0
- data/lib/leaflet.label/Jakefile.js +21 -0
- data/lib/leaflet.label/MIT-LICENCE.txt +20 -0
- data/lib/leaflet.label/README.md +86 -0
- data/lib/leaflet.label/build/build.js +155 -0
- data/lib/leaflet.label/build/deps.js +24 -0
- data/lib/leaflet.label/build/hint.js +30 -0
- data/lib/leaflet.label/build/hintrc.js +47 -0
- data/lib/leaflet.label/dist/images/death.png +0 -0
- data/lib/leaflet.label/dist/leaflet.label-src.js +359 -0
- data/lib/leaflet.label/dist/leaflet.label.css +33 -0
- data/lib/leaflet.label/dist/leaflet.label.js +9 -0
- data/lib/leaflet.label/example/label.html +82 -0
- data/lib/leaflet.label/libs/leaflet/images/layers.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/marker-icon.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/marker-icon@2x.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/marker-shadow.png +0 -0
- data/lib/leaflet.label/libs/leaflet/leaflet-src.js +8587 -0
- data/lib/leaflet.label/libs/leaflet/leaflet.css +459 -0
- data/lib/leaflet.label/libs/leaflet/leaflet.ie.css +51 -0
- data/lib/leaflet.label/libs/leaflet/leaflet.js +8 -0
- data/lib/leaflet.label/src/FeatureGroup.Label.js +20 -0
- data/lib/leaflet.label/src/Label.js +123 -0
- data/lib/leaflet.label/src/Leaflet.label.js +5 -0
- data/lib/leaflet.label/src/Map.Label.js +7 -0
- data/lib/leaflet.label/src/Marker.Label.js +160 -0
- data/lib/leaflet.label/src/Path.Label.js +55 -0
- data/lib/leaflet.label/src/copyright.js +8 -0
- data/lib/leaflet/CHANGELOG.md +637 -0
- data/lib/leaflet/CONTRIBUTING.md +155 -0
- data/lib/leaflet/Jakefile.js +26 -0
- data/lib/leaflet/LICENSE +23 -0
- data/lib/leaflet/README.md +30 -0
- data/lib/leaflet/build/build.html +243 -0
- data/lib/leaflet/build/build.js +193 -0
- data/lib/leaflet/build/deps.js +256 -0
- data/lib/leaflet/build/hintrc.js +37 -0
- data/lib/leaflet/debug/css/mobile.css +6 -0
- data/lib/leaflet/debug/css/screen.css +5 -0
- data/lib/leaflet/debug/hacks/jitter.html +43 -0
- data/lib/leaflet/debug/leaflet-include.js +59 -0
- data/lib/leaflet/debug/map/canvas.html +47 -0
- data/lib/leaflet/debug/map/controls.html +50 -0
- data/lib/leaflet/debug/map/geolocation.html +35 -0
- data/lib/leaflet/debug/map/image-overlay.html +44 -0
- data/lib/leaflet/debug/map/map-mobile.html +35 -0
- data/lib/leaflet/debug/map/map.html +60 -0
- data/lib/leaflet/debug/map/max-bounds.html +37 -0
- data/lib/leaflet/debug/map/scroll.html +36 -0
- data/lib/leaflet/debug/map/simple-proj.html +45 -0
- data/lib/leaflet/debug/map/wms-marble.html +31 -0
- data/lib/leaflet/debug/map/wms.html +41 -0
- data/lib/leaflet/debug/map/zoomlevels.html +46 -0
- data/lib/leaflet/debug/tests/add_remove_layers.html +88 -0
- data/lib/leaflet/debug/tests/bringtoback.html +38 -0
- data/lib/leaflet/debug/tests/click_on_canvas.html +59 -0
- data/lib/leaflet/debug/tests/click_on_canvas_broken.html +49 -0
- data/lib/leaflet/debug/tests/opacity.html +57 -0
- data/lib/leaflet/debug/tests/remove_while_dragging.html +29 -0
- data/lib/leaflet/debug/tests/removetilewhilepan.html +42 -0
- data/lib/leaflet/debug/tests/reuse_popups.html +41 -0
- data/lib/leaflet/debug/tests/svg_clicks.html +55 -0
- data/lib/leaflet/debug/vector/bounds-extend.html +89 -0
- data/lib/leaflet/debug/vector/feature-group-bounds.html +91 -0
- data/lib/leaflet/debug/vector/geojson-sample.js +53 -0
- data/lib/leaflet/debug/vector/geojson.html +174 -0
- data/lib/leaflet/debug/vector/rectangle.html +54 -0
- data/lib/leaflet/debug/vector/route.js +1 -0
- data/lib/leaflet/debug/vector/touchzoomemu.html +195 -0
- data/lib/leaflet/debug/vector/us-states.js +54 -0
- data/lib/leaflet/debug/vector/vector-bounds.html +70 -0
- data/lib/leaflet/debug/vector/vector-canvas.html +93 -0
- data/lib/leaflet/debug/vector/vector-mobile.html +39 -0
- data/lib/leaflet/debug/vector/vector-simple.html +49 -0
- data/lib/leaflet/debug/vector/vector.html +38 -0
- data/lib/leaflet/dist/images/layers.png +0 -0
- data/lib/leaflet/dist/images/marker-icon-2x.png +0 -0
- data/lib/leaflet/dist/images/marker-icon.png +0 -0
- data/lib/leaflet/dist/images/marker-shadow.png +0 -0
- data/lib/leaflet/dist/leaflet-src.js +8579 -0
- data/lib/leaflet/dist/leaflet.css +459 -0
- data/lib/leaflet/dist/leaflet.ie.css +51 -0
- data/lib/leaflet/dist/leaflet.js +8 -0
- data/lib/leaflet/package.json +22 -0
- data/lib/leaflet/spec/after.js +2 -0
- data/lib/leaflet/spec/before.js +3 -0
- data/lib/leaflet/spec/expect.js +1253 -0
- data/lib/leaflet/spec/happen.js +93 -0
- data/lib/leaflet/spec/index.html +78 -0
- data/lib/leaflet/spec/karma.conf.js +64 -0
- data/lib/leaflet/spec/sinon.js +4223 -0
- data/lib/leaflet/spec/suites/LeafletSpec.js +13 -0
- data/lib/leaflet/spec/suites/SpecHelper.js +26 -0
- data/lib/leaflet/spec/suites/control/Control.AttributionSpec.js +68 -0
- data/lib/leaflet/spec/suites/control/Control.LayersSpec.js +67 -0
- data/lib/leaflet/spec/suites/control/Control.ScaleSpec.js +6 -0
- data/lib/leaflet/spec/suites/core/ClassSpec.js +156 -0
- data/lib/leaflet/spec/suites/core/EventsSpec.js +336 -0
- data/lib/leaflet/spec/suites/core/UtilSpec.js +212 -0
- data/lib/leaflet/spec/suites/dom/DomEventSpec.js +102 -0
- data/lib/leaflet/spec/suites/dom/DomUtilSpec.js +89 -0
- data/lib/leaflet/spec/suites/geo/LatLngBoundsSpec.js +136 -0
- data/lib/leaflet/spec/suites/geo/LatLngSpec.js +118 -0
- data/lib/leaflet/spec/suites/geo/ProjectionSpec.js +47 -0
- data/lib/leaflet/spec/suites/geometry/BoundsSpec.js +87 -0
- data/lib/leaflet/spec/suites/geometry/LineUtilSpec.js +75 -0
- data/lib/leaflet/spec/suites/geometry/PointSpec.js +104 -0
- data/lib/leaflet/spec/suites/geometry/PolyUtilSpec.js +27 -0
- data/lib/leaflet/spec/suites/geometry/TransformationSpec.js +31 -0
- data/lib/leaflet/spec/suites/layer/FeatureGroupSpec.js +36 -0
- data/lib/leaflet/spec/suites/layer/GeoJSONSpec.js +86 -0
- data/lib/leaflet/spec/suites/layer/LayerGroupSpec.js +58 -0
- data/lib/leaflet/spec/suites/layer/PopupSpec.js +59 -0
- data/lib/leaflet/spec/suites/layer/TileLayerSpec.js +87 -0
- data/lib/leaflet/spec/suites/layer/vector/CircleMarkerSpec.js +53 -0
- data/lib/leaflet/spec/suites/layer/vector/CircleSpec.js +17 -0
- data/lib/leaflet/spec/suites/layer/vector/PolygonSpec.js +55 -0
- data/lib/leaflet/spec/suites/layer/vector/PolylineGeometrySpec.js +35 -0
- data/lib/leaflet/spec/suites/layer/vector/PolylineSpec.js +55 -0
- data/lib/leaflet/spec/suites/map/MapSpec.js +244 -0
- data/lib/leaflet/src/Leaflet.js +23 -0
- data/lib/leaflet/src/control/Control.Attribution.js +115 -0
- data/lib/leaflet/src/control/Control.Layers.js +243 -0
- data/lib/leaflet/src/control/Control.Scale.js +112 -0
- data/lib/leaflet/src/control/Control.Zoom.js +86 -0
- data/lib/leaflet/src/control/Control.js +107 -0
- data/lib/leaflet/src/copyright.js +4 -0
- data/lib/leaflet/src/core/Browser.js +96 -0
- data/lib/leaflet/src/core/Class.js +106 -0
- data/lib/leaflet/src/core/Events.js +174 -0
- data/lib/leaflet/src/core/Handler.js +28 -0
- data/lib/leaflet/src/core/Util.js +182 -0
- data/lib/leaflet/src/dom/DomEvent.DoubleTap.js +103 -0
- data/lib/leaflet/src/dom/DomEvent.MsTouch.js +146 -0
- data/lib/leaflet/src/dom/DomEvent.js +211 -0
- data/lib/leaflet/src/dom/DomUtil.js +239 -0
- data/lib/leaflet/src/dom/Draggable.js +198 -0
- data/lib/leaflet/src/dom/PosAnimation.Timer.js +67 -0
- data/lib/leaflet/src/dom/PosAnimation.js +83 -0
- data/lib/leaflet/src/geo/LatLng.js +88 -0
- data/lib/leaflet/src/geo/LatLngBounds.js +153 -0
- data/lib/leaflet/src/geo/crs/CRS.EPSG3395.js +14 -0
- data/lib/leaflet/src/geo/crs/CRS.EPSG3857.js +21 -0
- data/lib/leaflet/src/geo/crs/CRS.EPSG4326.js +10 -0
- data/lib/leaflet/src/geo/crs/CRS.Simple.js +12 -0
- data/lib/leaflet/src/geo/crs/CRS.js +27 -0
- data/lib/leaflet/src/geo/projection/Projection.LonLat.js +13 -0
- data/lib/leaflet/src/geo/projection/Projection.Mercator.js +56 -0
- data/lib/leaflet/src/geo/projection/Projection.SphericalMercator.js +27 -0
- data/lib/leaflet/src/geo/projection/Projection.js +5 -0
- data/lib/leaflet/src/geometry/Bounds.js +95 -0
- data/lib/leaflet/src/geometry/LineUtil.js +202 -0
- data/lib/leaflet/src/geometry/Point.js +119 -0
- data/lib/leaflet/src/geometry/PolyUtil.js +55 -0
- data/lib/leaflet/src/geometry/Transformation.js +31 -0
- data/lib/leaflet/src/images/marker.svg +1 -0
- data/lib/leaflet/src/layer/FeatureGroup.js +81 -0
- data/lib/leaflet/src/layer/GeoJSON.js +245 -0
- data/lib/leaflet/src/layer/ImageOverlay.js +132 -0
- data/lib/leaflet/src/layer/LayerGroup.js +110 -0
- data/lib/leaflet/src/layer/Popup.js +316 -0
- data/lib/leaflet/src/layer/marker/DivIcon.js +43 -0
- data/lib/leaflet/src/layer/marker/Icon.Default.js +51 -0
- data/lib/leaflet/src/layer/marker/Icon.js +101 -0
- data/lib/leaflet/src/layer/marker/Marker.Drag.js +66 -0
- data/lib/leaflet/src/layer/marker/Marker.Popup.js +72 -0
- data/lib/leaflet/src/layer/marker/Marker.js +275 -0
- data/lib/leaflet/src/layer/tile/TileLayer.Anim.js +117 -0
- data/lib/leaflet/src/layer/tile/TileLayer.Canvas.js +60 -0
- data/lib/leaflet/src/layer/tile/TileLayer.WMS.js +83 -0
- data/lib/leaflet/src/layer/tile/TileLayer.js +578 -0
- data/lib/leaflet/src/layer/vector/Circle.js +98 -0
- data/lib/leaflet/src/layer/vector/CircleMarker.js +33 -0
- data/lib/leaflet/src/layer/vector/MultiPoly.js +47 -0
- data/lib/leaflet/src/layer/vector/Path.Popup.js +65 -0
- data/lib/leaflet/src/layer/vector/Path.SVG.js +219 -0
- data/lib/leaflet/src/layer/vector/Path.VML.js +125 -0
- data/lib/leaflet/src/layer/vector/Path.js +115 -0
- data/lib/leaflet/src/layer/vector/Polygon.js +81 -0
- data/lib/leaflet/src/layer/vector/Polyline.js +164 -0
- data/lib/leaflet/src/layer/vector/Rectangle.js +27 -0
- data/lib/leaflet/src/layer/vector/canvas/Circle.Canvas.js +18 -0
- data/lib/leaflet/src/layer/vector/canvas/Path.Canvas.js +196 -0
- data/lib/leaflet/src/layer/vector/canvas/Polygon.Canvas.js +37 -0
- data/lib/leaflet/src/layer/vector/canvas/Polyline.Canvas.js +30 -0
- data/lib/leaflet/src/map/Map.js +743 -0
- data/lib/leaflet/src/map/anim/Map.PanAnimation.js +88 -0
- data/lib/leaflet/src/map/anim/Map.ZoomAnimation.js +90 -0
- data/lib/leaflet/src/map/ext/Map.Geolocation.js +91 -0
- data/lib/leaflet/src/map/handler/Map.BoxZoom.js +104 -0
- data/lib/leaflet/src/map/handler/Map.DoubleClickZoom.js +23 -0
- data/lib/leaflet/src/map/handler/Map.Drag.js +146 -0
- data/lib/leaflet/src/map/handler/Map.Keyboard.js +147 -0
- data/lib/leaflet/src/map/handler/Map.ScrollWheelZoom.js +56 -0
- data/lib/leaflet/src/map/handler/Map.TouchZoom.js +121 -0
- data/vendor/assets/images/layers.png +0 -0
- data/vendor/assets/images/marker-icon-2x.png +0 -0
- data/vendor/assets/images/marker-icon.png +0 -0
- data/vendor/assets/images/marker-shadow.png +0 -0
- data/vendor/assets/images/spritesheet.png +0 -0
- data/vendor/assets/javascripts/leaflet.draw.js +39 -0
- data/vendor/assets/javascripts/leaflet.js +145 -0
- data/vendor/assets/javascripts/leaflet.label.js +9 -0
- data/vendor/assets/stylesheets/leaflet.css.erb +459 -0
- data/vendor/assets/stylesheets/leaflet.draw.css.erb +212 -0
- data/vendor/assets/stylesheets/leaflet.draw.ie.css +44 -0
- data/vendor/assets/stylesheets/leaflet.ie.css +51 -0
- data/vendor/assets/stylesheets/leaflet.label.css +33 -0
- metadata +317 -0
@@ -0,0 +1,459 @@
|
|
1
|
+
/* required styles */
|
2
|
+
|
3
|
+
.leaflet-map-pane,
|
4
|
+
.leaflet-tile,
|
5
|
+
.leaflet-marker-icon,
|
6
|
+
.leaflet-marker-shadow,
|
7
|
+
.leaflet-tile-pane,
|
8
|
+
.leaflet-tile-container,
|
9
|
+
.leaflet-overlay-pane,
|
10
|
+
.leaflet-shadow-pane,
|
11
|
+
.leaflet-marker-pane,
|
12
|
+
.leaflet-popup-pane,
|
13
|
+
.leaflet-overlay-pane svg,
|
14
|
+
.leaflet-zoom-box,
|
15
|
+
.leaflet-image-layer,
|
16
|
+
.leaflet-layer {
|
17
|
+
position: absolute;
|
18
|
+
left: 0;
|
19
|
+
top: 0;
|
20
|
+
}
|
21
|
+
.leaflet-container {
|
22
|
+
overflow: hidden;
|
23
|
+
-ms-touch-action: none;
|
24
|
+
}
|
25
|
+
.leaflet-tile,
|
26
|
+
.leaflet-marker-icon,
|
27
|
+
.leaflet-marker-shadow {
|
28
|
+
-webkit-user-select: none;
|
29
|
+
-moz-user-select: none;
|
30
|
+
user-select: none;
|
31
|
+
-webkit-user-drag: none;
|
32
|
+
}
|
33
|
+
.leaflet-marker-icon,
|
34
|
+
.leaflet-marker-shadow {
|
35
|
+
display: block;
|
36
|
+
}
|
37
|
+
/* map is broken in FF if you have max-width: 100% on tiles */
|
38
|
+
.leaflet-container img {
|
39
|
+
max-width: none !important;
|
40
|
+
}
|
41
|
+
/* stupid Android 2 doesn't understand "max-width: none" properly */
|
42
|
+
.leaflet-container img.leaflet-image-layer {
|
43
|
+
max-width: 15000px !important;
|
44
|
+
}
|
45
|
+
.leaflet-tile {
|
46
|
+
filter: inherit;
|
47
|
+
visibility: hidden;
|
48
|
+
}
|
49
|
+
.leaflet-tile-loaded {
|
50
|
+
visibility: inherit;
|
51
|
+
}
|
52
|
+
.leaflet-zoom-box {
|
53
|
+
width: 0;
|
54
|
+
height: 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
.leaflet-tile-pane { z-index: 2; }
|
58
|
+
.leaflet-objects-pane { z-index: 3; }
|
59
|
+
.leaflet-overlay-pane { z-index: 4; }
|
60
|
+
.leaflet-shadow-pane { z-index: 5; }
|
61
|
+
.leaflet-marker-pane { z-index: 6; }
|
62
|
+
.leaflet-popup-pane { z-index: 7; }
|
63
|
+
|
64
|
+
|
65
|
+
/* control positioning */
|
66
|
+
|
67
|
+
.leaflet-control {
|
68
|
+
position: relative;
|
69
|
+
z-index: 7;
|
70
|
+
pointer-events: auto;
|
71
|
+
}
|
72
|
+
.leaflet-top,
|
73
|
+
.leaflet-bottom {
|
74
|
+
position: absolute;
|
75
|
+
z-index: 1000;
|
76
|
+
pointer-events: none;
|
77
|
+
}
|
78
|
+
.leaflet-top {
|
79
|
+
top: 0;
|
80
|
+
}
|
81
|
+
.leaflet-right {
|
82
|
+
right: 0;
|
83
|
+
}
|
84
|
+
.leaflet-bottom {
|
85
|
+
bottom: 0;
|
86
|
+
}
|
87
|
+
.leaflet-left {
|
88
|
+
left: 0;
|
89
|
+
}
|
90
|
+
.leaflet-control {
|
91
|
+
float: left;
|
92
|
+
clear: both;
|
93
|
+
}
|
94
|
+
.leaflet-right .leaflet-control {
|
95
|
+
float: right;
|
96
|
+
}
|
97
|
+
.leaflet-top .leaflet-control {
|
98
|
+
margin-top: 10px;
|
99
|
+
}
|
100
|
+
.leaflet-bottom .leaflet-control {
|
101
|
+
margin-bottom: 10px;
|
102
|
+
}
|
103
|
+
.leaflet-left .leaflet-control {
|
104
|
+
margin-left: 10px;
|
105
|
+
}
|
106
|
+
.leaflet-right .leaflet-control {
|
107
|
+
margin-right: 10px;
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
/* zoom and fade animations */
|
112
|
+
|
113
|
+
.leaflet-fade-anim .leaflet-tile,
|
114
|
+
.leaflet-fade-anim .leaflet-popup {
|
115
|
+
opacity: 0;
|
116
|
+
-webkit-transition: opacity 0.2s linear;
|
117
|
+
-moz-transition: opacity 0.2s linear;
|
118
|
+
-o-transition: opacity 0.2s linear;
|
119
|
+
transition: opacity 0.2s linear;
|
120
|
+
}
|
121
|
+
.leaflet-fade-anim .leaflet-tile-loaded,
|
122
|
+
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
123
|
+
opacity: 1;
|
124
|
+
}
|
125
|
+
|
126
|
+
.leaflet-zoom-anim .leaflet-zoom-animated {
|
127
|
+
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
|
128
|
+
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
|
129
|
+
-o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
|
130
|
+
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
|
131
|
+
}
|
132
|
+
.leaflet-zoom-anim .leaflet-tile,
|
133
|
+
.leaflet-pan-anim .leaflet-tile,
|
134
|
+
.leaflet-touching .leaflet-zoom-animated {
|
135
|
+
-webkit-transition: none;
|
136
|
+
-moz-transition: none;
|
137
|
+
-o-transition: none;
|
138
|
+
transition: none;
|
139
|
+
}
|
140
|
+
|
141
|
+
.leaflet-zoom-anim .leaflet-zoom-hide {
|
142
|
+
visibility: hidden;
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
/* cursors */
|
147
|
+
|
148
|
+
.leaflet-clickable {
|
149
|
+
cursor: pointer;
|
150
|
+
}
|
151
|
+
.leaflet-container {
|
152
|
+
cursor: -webkit-grab;
|
153
|
+
cursor: -moz-grab;
|
154
|
+
}
|
155
|
+
.leaflet-popup-pane,
|
156
|
+
.leaflet-control {
|
157
|
+
cursor: auto;
|
158
|
+
}
|
159
|
+
.leaflet-dragging,
|
160
|
+
.leaflet-dragging .leaflet-clickable,
|
161
|
+
.leaflet-dragging .leaflet-container {
|
162
|
+
cursor: move;
|
163
|
+
cursor: -webkit-grabbing;
|
164
|
+
cursor: -moz-grabbing;
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
/* visual tweaks */
|
169
|
+
|
170
|
+
.leaflet-container {
|
171
|
+
background: #ddd;
|
172
|
+
outline: 0;
|
173
|
+
}
|
174
|
+
.leaflet-container a {
|
175
|
+
color: #0078A8;
|
176
|
+
}
|
177
|
+
.leaflet-container a.leaflet-active {
|
178
|
+
outline: 2px solid orange;
|
179
|
+
}
|
180
|
+
.leaflet-zoom-box {
|
181
|
+
border: 2px dotted #05f;
|
182
|
+
background: white;
|
183
|
+
opacity: 0.5;
|
184
|
+
}
|
185
|
+
|
186
|
+
|
187
|
+
/* general typography */
|
188
|
+
.leaflet-container {
|
189
|
+
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
|
190
|
+
}
|
191
|
+
|
192
|
+
|
193
|
+
/* general toolbar styles */
|
194
|
+
|
195
|
+
.leaflet-bar {
|
196
|
+
box-shadow: 0 1px 7px rgba(0,0,0,0.65);
|
197
|
+
-webkit-border-radius: 4px;
|
198
|
+
border-radius: 4px;
|
199
|
+
}
|
200
|
+
.leaflet-bar a {
|
201
|
+
background-color: #fff;
|
202
|
+
border-bottom: 1px solid #ccc;
|
203
|
+
width: 26px;
|
204
|
+
height: 26px;
|
205
|
+
line-height: 26px;
|
206
|
+
display: block;
|
207
|
+
text-align: center;
|
208
|
+
text-decoration: none;
|
209
|
+
color: black;
|
210
|
+
}
|
211
|
+
.leaflet-bar a,
|
212
|
+
.leaflet-control-layers-toggle {
|
213
|
+
background-position: 50% 50%;
|
214
|
+
background-repeat: no-repeat;
|
215
|
+
display: block;
|
216
|
+
}
|
217
|
+
.leaflet-bar a:hover {
|
218
|
+
background-color: #f4f4f4;
|
219
|
+
}
|
220
|
+
.leaflet-bar a:first-child {
|
221
|
+
-webkit-border-top-left-radius: 4px;
|
222
|
+
border-top-left-radius: 4px;
|
223
|
+
-webkit-border-top-right-radius: 4px;
|
224
|
+
border-top-right-radius: 4px;
|
225
|
+
}
|
226
|
+
.leaflet-bar a:last-child {
|
227
|
+
-webkit-border-bottom-left-radius: 4px;
|
228
|
+
border-bottom-left-radius: 4px;
|
229
|
+
-webkit-border-bottom-right-radius: 4px;
|
230
|
+
border-bottom-right-radius: 4px;
|
231
|
+
border-bottom: none;
|
232
|
+
}
|
233
|
+
.leaflet-bar a.leaflet-disabled {
|
234
|
+
cursor: default;
|
235
|
+
background-color: #f4f4f4;
|
236
|
+
color: #bbb;
|
237
|
+
}
|
238
|
+
|
239
|
+
.leaflet-touch .leaflet-bar {
|
240
|
+
-webkit-border-radius: 10px;
|
241
|
+
border-radius: 10px;
|
242
|
+
}
|
243
|
+
.leaflet-touch .leaflet-bar a {
|
244
|
+
width: 30px;
|
245
|
+
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;
|
259
|
+
}
|
260
|
+
|
261
|
+
|
262
|
+
/* zoom control */
|
263
|
+
|
264
|
+
.leaflet-control-zoom-in {
|
265
|
+
font: bold 18px 'Lucida Console', Monaco, monospace;
|
266
|
+
}
|
267
|
+
.leaflet-control-zoom-out {
|
268
|
+
font: bold 22px 'Lucida Console', Monaco, monospace;
|
269
|
+
}
|
270
|
+
|
271
|
+
.leaflet-touch .leaflet-control-zoom-in {
|
272
|
+
font-size: 22px;
|
273
|
+
line-height: 30px;
|
274
|
+
}
|
275
|
+
.leaflet-touch .leaflet-control-zoom-out {
|
276
|
+
font-size: 28px;
|
277
|
+
line-height: 30px;
|
278
|
+
}
|
279
|
+
|
280
|
+
|
281
|
+
/* layers control */
|
282
|
+
|
283
|
+
.leaflet-control-layers {
|
284
|
+
box-shadow: 0 1px 7px rgba(0,0,0,0.4);
|
285
|
+
background: #f8f8f9;
|
286
|
+
-webkit-border-radius: 8px;
|
287
|
+
border-radius: 8px;
|
288
|
+
}
|
289
|
+
.leaflet-control-layers-toggle {
|
290
|
+
background-image: url(images/layers.png);
|
291
|
+
width: 36px;
|
292
|
+
height: 36px;
|
293
|
+
}
|
294
|
+
.leaflet-touch .leaflet-control-layers-toggle {
|
295
|
+
width: 44px;
|
296
|
+
height: 44px;
|
297
|
+
}
|
298
|
+
.leaflet-control-layers .leaflet-control-layers-list,
|
299
|
+
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
|
300
|
+
display: none;
|
301
|
+
}
|
302
|
+
.leaflet-control-layers-expanded .leaflet-control-layers-list {
|
303
|
+
display: block;
|
304
|
+
position: relative;
|
305
|
+
}
|
306
|
+
.leaflet-control-layers-expanded {
|
307
|
+
padding: 6px 10px 6px 6px;
|
308
|
+
color: #333;
|
309
|
+
background: #fff;
|
310
|
+
}
|
311
|
+
.leaflet-control-layers-selector {
|
312
|
+
margin-top: 2px;
|
313
|
+
position: relative;
|
314
|
+
top: 1px;
|
315
|
+
}
|
316
|
+
.leaflet-control-layers label {
|
317
|
+
display: block;
|
318
|
+
}
|
319
|
+
.leaflet-control-layers-separator {
|
320
|
+
height: 0;
|
321
|
+
border-top: 1px solid #ddd;
|
322
|
+
margin: 5px -10px 5px -6px;
|
323
|
+
}
|
324
|
+
|
325
|
+
|
326
|
+
/* attribution and scale controls */
|
327
|
+
|
328
|
+
.leaflet-container .leaflet-control-attribution {
|
329
|
+
background-color: rgba(255, 255, 255, 0.7);
|
330
|
+
box-shadow: 0 0 5px #bbb;
|
331
|
+
margin: 0;
|
332
|
+
}
|
333
|
+
.leaflet-control-attribution,
|
334
|
+
.leaflet-control-scale-line {
|
335
|
+
padding: 0 5px;
|
336
|
+
color: #333;
|
337
|
+
}
|
338
|
+
.leaflet-container .leaflet-control-attribution,
|
339
|
+
.leaflet-container .leaflet-control-scale {
|
340
|
+
font-size: 11px;
|
341
|
+
}
|
342
|
+
.leaflet-left .leaflet-control-scale {
|
343
|
+
margin-left: 5px;
|
344
|
+
}
|
345
|
+
.leaflet-bottom .leaflet-control-scale {
|
346
|
+
margin-bottom: 5px;
|
347
|
+
}
|
348
|
+
.leaflet-control-scale-line {
|
349
|
+
border: 2px solid #777;
|
350
|
+
border-top: none;
|
351
|
+
color: black;
|
352
|
+
line-height: 1.1;
|
353
|
+
padding: 2px 5px 1px;
|
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
|
+
white-space: nowrap;
|
359
|
+
overflow: hidden;
|
360
|
+
}
|
361
|
+
.leaflet-control-scale-line:not(:first-child) {
|
362
|
+
border-top: 2px solid #777;
|
363
|
+
border-bottom: none;
|
364
|
+
margin-top: -2px;
|
365
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
366
|
+
}
|
367
|
+
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
368
|
+
border-bottom: 2px solid #777;
|
369
|
+
}
|
370
|
+
|
371
|
+
.leaflet-touch .leaflet-control-attribution,
|
372
|
+
.leaflet-touch .leaflet-control-layers,
|
373
|
+
.leaflet-touch .leaflet-control-zoom {
|
374
|
+
box-shadow: none;
|
375
|
+
}
|
376
|
+
.leaflet-touch .leaflet-control-layers,
|
377
|
+
.leaflet-touch .leaflet-control-zoom {
|
378
|
+
border: 4px solid rgba(0,0,0,0.3);
|
379
|
+
}
|
380
|
+
|
381
|
+
|
382
|
+
/* popup */
|
383
|
+
|
384
|
+
.leaflet-popup {
|
385
|
+
position: absolute;
|
386
|
+
text-align: center;
|
387
|
+
}
|
388
|
+
.leaflet-popup-content-wrapper {
|
389
|
+
padding: 1px;
|
390
|
+
text-align: left;
|
391
|
+
-webkit-border-radius: 20px;
|
392
|
+
border-radius: 20px;
|
393
|
+
}
|
394
|
+
.leaflet-popup-content {
|
395
|
+
margin: 14px 20px;
|
396
|
+
line-height: 1.4;
|
397
|
+
}
|
398
|
+
.leaflet-popup-content p {
|
399
|
+
margin: 18px 0;
|
400
|
+
}
|
401
|
+
.leaflet-popup-tip-container {
|
402
|
+
margin: 0 auto;
|
403
|
+
width: 40px;
|
404
|
+
height: 20px;
|
405
|
+
position: relative;
|
406
|
+
overflow: hidden;
|
407
|
+
}
|
408
|
+
.leaflet-popup-tip {
|
409
|
+
width: 15px;
|
410
|
+
height: 15px;
|
411
|
+
padding: 1px;
|
412
|
+
|
413
|
+
margin: -8px auto 0;
|
414
|
+
|
415
|
+
-webkit-transform: rotate(45deg);
|
416
|
+
-moz-transform: rotate(45deg);
|
417
|
+
-ms-transform: rotate(45deg);
|
418
|
+
-o-transform: rotate(45deg);
|
419
|
+
transform: rotate(45deg);
|
420
|
+
}
|
421
|
+
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
|
422
|
+
background: white;
|
423
|
+
|
424
|
+
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
425
|
+
}
|
426
|
+
.leaflet-container a.leaflet-popup-close-button {
|
427
|
+
position: absolute;
|
428
|
+
top: 0;
|
429
|
+
right: 0;
|
430
|
+
padding: 4px 5px 0 0;
|
431
|
+
text-align: center;
|
432
|
+
width: 18px;
|
433
|
+
height: 14px;
|
434
|
+
font: 16px/14px Tahoma, Verdana, sans-serif;
|
435
|
+
color: #c3c3c3;
|
436
|
+
text-decoration: none;
|
437
|
+
font-weight: bold;
|
438
|
+
background: transparent;
|
439
|
+
}
|
440
|
+
.leaflet-container a.leaflet-popup-close-button:hover {
|
441
|
+
color: #999;
|
442
|
+
}
|
443
|
+
.leaflet-popup-scrolled {
|
444
|
+
overflow: auto;
|
445
|
+
border-bottom: 1px solid #ddd;
|
446
|
+
border-top: 1px solid #ddd;
|
447
|
+
}
|
448
|
+
|
449
|
+
|
450
|
+
/* div icon */
|
451
|
+
|
452
|
+
.leaflet-div-icon {
|
453
|
+
background: #fff;
|
454
|
+
border: 1px solid #666;
|
455
|
+
}
|
456
|
+
.leaflet-editing-icon {
|
457
|
+
-webkit-border-radius: 2px;
|
458
|
+
border-radius: 2px;
|
459
|
+
}
|