ts-maps 0.2.7 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +202 -141
- package/dist/core-map/assets/embedded-icons.d.ts +8 -0
- package/dist/core-map/control/AttributionControl.d.ts +12 -0
- package/dist/core-map/control/Control.d.ts +14 -0
- package/dist/core-map/control/LayersControl.d.ts +38 -0
- package/dist/core-map/control/ScaleControl.d.ts +14 -0
- package/dist/core-map/control/ZoomControl.d.ts +14 -0
- package/dist/core-map/control/index.d.ts +5 -0
- package/dist/core-map/core/Browser.d.ts +24 -0
- package/dist/core-map/core/Class.d.ts +12 -0
- package/dist/core-map/core/Events.d.ts +31 -0
- package/dist/core-map/core/Handler.d.ts +12 -0
- package/dist/core-map/core/Util.d.ts +24 -0
- package/dist/core-map/core/index.d.ts +7 -0
- package/dist/core-map/dom/Animation.d.ts +50 -0
- package/dist/core-map/dom/DomEvent.DoubleTap.d.ts +6 -0
- package/dist/core-map/dom/DomEvent.PointerEvents.d.ts +4 -0
- package/dist/core-map/dom/DomEvent.d.ts +15 -0
- package/dist/core-map/dom/DomUtil.d.ts +22 -0
- package/dist/core-map/dom/Draggable.d.ts +26 -0
- package/dist/core-map/dom/PosAnimation.d.ts +19 -0
- package/dist/core-map/dom/easing.d.ts +41 -0
- package/dist/core-map/dom/index.d.ts +8 -0
- package/dist/core-map/geo/LatLng.d.ts +18 -0
- package/dist/core-map/geo/LatLngBounds.d.ts +27 -0
- package/dist/core-map/geo/TerrainSource.d.ts +35 -0
- package/dist/core-map/geo/crs/CRS.d.ts +23 -0
- package/dist/core-map/geo/crs/EPSG3395.d.ts +7 -0
- package/dist/core-map/geo/crs/EPSG3857.d.ts +10 -0
- package/dist/core-map/geo/crs/EPSG4326.d.ts +7 -0
- package/dist/core-map/geo/crs/EarthCRS.d.ts +7 -0
- package/dist/core-map/geo/crs/SimpleCRS.d.ts +11 -0
- package/dist/core-map/geo/crs/index.d.ts +6 -0
- package/dist/core-map/geo/elevation.d.ts +23 -0
- package/dist/core-map/geo/index.d.ts +13 -0
- package/dist/core-map/geo/index.js +1204 -0
- package/dist/core-map/geo/projection/Projection.Globe.d.ts +30 -0
- package/dist/core-map/geo/projection/Projection.LonLat.d.ts +11 -0
- package/dist/core-map/geo/projection/Projection.Mercator.d.ts +6 -0
- package/dist/core-map/geo/projection/Projection.SphericalMercator.d.ts +6 -0
- package/dist/core-map/geo/projection/index.d.ts +5 -0
- package/dist/core-map/geo/terrainMesh.d.ts +21 -0
- package/dist/core-map/geometry/Bounds.d.ts +23 -0
- package/dist/core-map/geometry/LineUtil.d.ts +13 -0
- package/dist/core-map/geometry/Point.d.ts +35 -0
- package/dist/core-map/geometry/PolyUtil.d.ts +6 -0
- package/dist/core-map/geometry/RTree.d.ts +35 -0
- package/dist/core-map/geometry/Transformation.d.ts +12 -0
- package/dist/core-map/geometry/earcut.d.ts +17 -0
- package/dist/core-map/geometry/index.d.ts +10 -0
- package/dist/core-map/geometry/index.js +1586 -0
- package/dist/core-map/index.d.ts +59 -0
- package/dist/core-map/layer/BlanketOverlay.d.ts +24 -0
- package/dist/core-map/layer/DivOverlay.d.ts +40 -0
- package/dist/core-map/layer/FeatureGroup.d.ts +11 -0
- package/dist/core-map/layer/GeoJSON.d.ts +17 -0
- package/dist/core-map/layer/GeoJSONClusterSource.d.ts +54 -0
- package/dist/core-map/layer/HeatmapLayer.d.ts +40 -0
- package/dist/core-map/layer/ImageOverlay.d.ts +27 -0
- package/dist/core-map/layer/Layer.d.ts +18 -0
- package/dist/core-map/layer/LayerGroup.d.ts +16 -0
- package/dist/core-map/layer/Popup.d.ts +18 -0
- package/dist/core-map/layer/SVGOverlay.d.ts +4 -0
- package/dist/core-map/layer/Tooltip.d.ts +15 -0
- package/dist/core-map/layer/VideoOverlay.d.ts +4 -0
- package/dist/core-map/layer/index.d.ts +18 -0
- package/dist/core-map/layer/marker/DefaultIcon.d.ts +7 -0
- package/dist/core-map/layer/marker/DivIcon.d.ts +5 -0
- package/dist/core-map/layer/marker/Icon.d.ts +10 -0
- package/dist/core-map/layer/marker/Marker.Drag.d.ts +17 -0
- package/dist/core-map/layer/marker/Marker.d.ts +37 -0
- package/dist/core-map/layer/marker/index.d.ts +5 -0
- package/dist/core-map/layer/tile/GridLayer.d.ts +88 -0
- package/dist/core-map/layer/tile/RasterDEMLayer.d.ts +46 -0
- package/dist/core-map/layer/tile/TileLayer.d.ts +22 -0
- package/dist/core-map/layer/tile/VectorTileMapLayer.d.ts +145 -0
- package/dist/core-map/layer/tile/WMSTileLayer.d.ts +12 -0
- package/dist/core-map/layer/tile/index.d.ts +15 -0
- package/dist/core-map/layer/tile/urlTemplate.d.ts +17 -0
- package/dist/core-map/layer/vector/Canvas.d.ts +52 -0
- package/dist/core-map/layer/vector/Circle.d.ts +7 -0
- package/dist/core-map/layer/vector/CircleMarker.d.ts +22 -0
- package/dist/core-map/layer/vector/Path.d.ts +20 -0
- package/dist/core-map/layer/vector/Polygon.d.ts +13 -0
- package/dist/core-map/layer/vector/Polyline.d.ts +30 -0
- package/dist/core-map/layer/vector/Rectangle.d.ts +6 -0
- package/dist/core-map/layer/vector/Renderer.d.ts +12 -0
- package/dist/core-map/layer/vector/Renderer.getRenderer.d.ts +1 -0
- package/dist/core-map/layer/vector/SVG.d.ts +21 -0
- package/dist/core-map/layer/vector/index.d.ts +10 -0
- package/dist/core-map/map/Map.d.ts +353 -0
- package/dist/core-map/map/Style.d.ts +29 -0
- package/dist/core-map/map/handler/BoxZoomHandler.d.ts +23 -0
- package/dist/core-map/map/handler/DoubleClickZoomHandler.d.ts +6 -0
- package/dist/core-map/map/handler/DragHandler.d.ts +27 -0
- package/dist/core-map/map/handler/KeyboardHandler.d.ts +18 -0
- package/dist/core-map/map/handler/PinchZoomHandler.d.ts +20 -0
- package/dist/core-map/map/handler/ScrollWheelZoomHandler.d.ts +12 -0
- package/dist/core-map/map/handler/TapHoldHandler.d.ts +15 -0
- package/dist/core-map/map/handler/TwoFingerPitchHandler.d.ts +21 -0
- package/dist/core-map/map/handler/TwoFingerRotateHandler.d.ts +17 -0
- package/dist/core-map/map/index.d.ts +11 -0
- package/dist/core-map/mvt/VectorTile.d.ts +9 -0
- package/dist/core-map/mvt/VectorTileFeature.d.ts +59 -0
- package/dist/core-map/mvt/VectorTileLayer.d.ts +13 -0
- package/dist/core-map/proto/Pbf.d.ts +84 -0
- package/dist/core-map/renderer/webgl/GLContext.d.ts +22 -0
- package/dist/core-map/renderer/webgl/WebGLTileRenderer.d.ts +86 -0
- package/dist/core-map/renderer/webgl/index.d.ts +9 -0
- package/dist/core-map/renderer/webgl/mat4.d.ts +14 -0
- package/dist/core-map/services/index.d.ts +26 -0
- package/dist/core-map/services/index.js +1230 -0
- package/dist/core-map/services/providers/Google.d.ts +16 -0
- package/dist/core-map/services/providers/Mapbox.d.ts +26 -0
- package/dist/core-map/services/providers/Maptiler.d.ts +11 -0
- package/dist/core-map/services/providers/Nominatim.d.ts +11 -0
- package/dist/core-map/services/providers/OSRM.d.ts +20 -0
- package/dist/core-map/services/providers/Photon.d.ts +10 -0
- package/dist/core-map/services/providers/Valhalla.d.ts +20 -0
- package/dist/core-map/services/types.d.ts +84 -0
- package/dist/core-map/storage/TileCache.d.ts +40 -0
- package/dist/core-map/storage/cachedFetch.d.ts +13 -0
- package/dist/core-map/storage/defaultCache.d.ts +3 -0
- package/dist/core-map/storage/index.d.ts +13 -0
- package/dist/core-map/storage/index.js +283 -0
- package/dist/core-map/storage/offlineRegion.d.ts +26 -0
- package/dist/core-map/style-spec/diff.d.ts +17 -0
- package/dist/core-map/style-spec/expressions/Color.d.ts +16 -0
- package/dist/core-map/style-spec/expressions/compile.d.ts +4 -0
- package/dist/core-map/style-spec/expressions/errors.d.ts +8 -0
- package/dist/core-map/style-spec/expressions/index.d.ts +16 -0
- package/dist/core-map/style-spec/expressions/legacyFilter.d.ts +6 -0
- package/dist/core-map/style-spec/expressions/operators/conversion.d.ts +1 -0
- package/dist/core-map/style-spec/expressions/operators/interpolate.d.ts +14 -0
- package/dist/core-map/style-spec/expressions/operators/logical.d.ts +1 -0
- package/dist/core-map/style-spec/expressions/operators/lookup.d.ts +1 -0
- package/dist/core-map/style-spec/expressions/operators/math.d.ts +1 -0
- package/dist/core-map/style-spec/expressions/operators/string.d.ts +1 -0
- package/dist/core-map/style-spec/expressions/registry.d.ts +29 -0
- package/dist/core-map/style-spec/expressions/types.d.ts +48 -0
- package/dist/core-map/style-spec/expressions/validate.d.ts +13 -0
- package/dist/core-map/style-spec/index.d.ts +68 -0
- package/dist/core-map/style-spec/index.js +2529 -0
- package/dist/core-map/style-spec/schema.d.ts +381 -0
- package/dist/core-map/style-spec/types.d.ts +375 -0
- package/dist/core-map/style-spec/validate.d.ts +14 -0
- package/dist/core-map/symbols/CollisionIndex.d.ts +21 -0
- package/dist/core-map/symbols/GlyphAtlas.d.ts +38 -0
- package/dist/core-map/symbols/IconAtlas.d.ts +18 -0
- package/dist/core-map/symbols/index.d.ts +6 -0
- package/dist/core-map/symbols/index.js +501 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +18414 -1857
- package/package.json +50 -58
- package/src/core-map/ts-maps.css +725 -0
- package/dist/components/base.d.ts +0 -17
- package/dist/components/concerns/interactable.d.ts +0 -1
- package/dist/components/line.d.ts +0 -29
- package/dist/components/marker.d.ts +0 -50
- package/dist/components/region.d.ts +0 -46
- package/dist/components/tooltip.d.ts +0 -22
- package/dist/core/apply-transform.d.ts +0 -7
- package/dist/core/coords-to-point.d.ts +0 -12
- package/dist/core/create-lines.d.ts +0 -2
- package/dist/core/create-markers.d.ts +0 -2
- package/dist/core/create-regions.d.ts +0 -2
- package/dist/core/create-series.d.ts +0 -3
- package/dist/core/get-inset-for-point.d.ts +0 -13
- package/dist/core/get-marker-position.d.ts +0 -6
- package/dist/core/index.d.ts +0 -1
- package/dist/core/reposition-labels.d.ts +0 -2
- package/dist/core/reposition-lines.d.ts +0 -2
- package/dist/core/reposition-markers.d.ts +0 -2
- package/dist/core/resize.d.ts +0 -3
- package/dist/core/set-focus.d.ts +0 -2
- package/dist/core/set-scale.d.ts +0 -2
- package/dist/core/setup-container-events.d.ts +0 -2
- package/dist/core/setup-container-touch-events.d.ts +0 -2
- package/dist/core/setup-element-events.d.ts +0 -2
- package/dist/core/setup-zoom-buttons.d.ts +0 -2
- package/dist/core/update-size.d.ts +0 -2
- package/dist/data-visualization.d.ts +0 -17
- package/dist/defaults/events.d.ts +0 -1
- package/dist/defaults/options.d.ts +0 -1
- package/dist/event-handler.d.ts +0 -1
- package/dist/legend.d.ts +0 -17
- package/dist/map.d.ts +0 -81
- package/dist/maps/brasil.d.ts +0 -2
- package/dist/maps/brasil.js +0 -7
- package/dist/maps/canada.d.ts +0 -2
- package/dist/maps/canada.js +0 -7
- package/dist/maps/iraq.d.ts +0 -2
- package/dist/maps/iraq.js +0 -84
- package/dist/maps/italy.d.ts +0 -2
- package/dist/maps/italy.js +0 -7
- package/dist/maps/russia.d.ts +0 -2
- package/dist/maps/russia.js +0 -366
- package/dist/maps/spain.d.ts +0 -2
- package/dist/maps/spain.js +0 -7
- package/dist/maps/us-aea-en.d.ts +0 -2
- package/dist/maps/us-aea-en.js +0 -7
- package/dist/maps/us-lcc-en.d.ts +0 -2
- package/dist/maps/us-lcc-en.js +0 -7
- package/dist/maps/us-merc-en.d.ts +0 -2
- package/dist/maps/us-merc-en.js +0 -7
- package/dist/maps/us-mill-en.d.ts +0 -2
- package/dist/maps/us-mill-en.js +0 -7
- package/dist/maps/world-merc.d.ts +0 -2
- package/dist/maps/world-merc.js +0 -7
- package/dist/maps/world.d.ts +0 -2
- package/dist/maps/world.js +0 -7
- package/dist/projection.d.ts +0 -1
- package/dist/scales/ordinal-scale.d.ts +0 -12
- package/dist/series.d.ts +0 -14
- package/dist/svg/base-element.d.ts +0 -19
- package/dist/svg/canvas-element.d.ts +0 -21
- package/dist/svg/image-element.d.ts +0 -12
- package/dist/svg/shape-element.d.ts +0 -19
- package/dist/svg/text-element.d.ts +0 -7
- package/dist/types.d.ts +0 -418
- package/dist/util/deep-merge.d.ts +0 -2
- package/dist/util/index.d.ts +0 -18
- package/dist/utils.d.ts +0 -87
- package/dist/vector-map.d.ts +0 -5
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
/* required styles */
|
|
2
|
+
|
|
3
|
+
.tsmap-pane,
|
|
4
|
+
.tsmap-tile,
|
|
5
|
+
.tsmap-marker-icon,
|
|
6
|
+
.tsmap-marker-shadow,
|
|
7
|
+
.tsmap-tile-container,
|
|
8
|
+
.tsmap-pane > svg,
|
|
9
|
+
.tsmap-pane > canvas,
|
|
10
|
+
.tsmap-zoom-box,
|
|
11
|
+
.tsmap-image-layer,
|
|
12
|
+
.tsmap-layer {
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 0;
|
|
15
|
+
top: 0;
|
|
16
|
+
width:100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.tsmap-container {
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tsmap-tile,
|
|
24
|
+
.tsmap-marker-icon,
|
|
25
|
+
.tsmap-marker-shadow {
|
|
26
|
+
user-select: none;
|
|
27
|
+
-webkit-user-drag: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
|
31
|
+
|
|
32
|
+
.tsmap-safari {
|
|
33
|
+
.tsmap-tile {
|
|
34
|
+
image-rendering: -webkit-optimize-contrast;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* hack that prevents hw layers "stretching" when loading new tiles */
|
|
38
|
+
.tsmap-tile-container {
|
|
39
|
+
width: 1600px;
|
|
40
|
+
height: 1600px;
|
|
41
|
+
-webkit-transform-origin: 0 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tsmap-marker-icon,
|
|
46
|
+
.tsmap-marker-shadow {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* .tsmap-container svg: reset svg max-width declaration shipped in Joomla! (joomla.org) 3.x */
|
|
51
|
+
/* .tsmap-container img: map is broken in FF if you have max-width: 100% on tiles */
|
|
52
|
+
|
|
53
|
+
.tsmap-container {
|
|
54
|
+
.tsmap-overlay-pane svg {
|
|
55
|
+
max-width: none !important;
|
|
56
|
+
max-height: none !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.tsmap-marker-pane img,
|
|
60
|
+
.tsmap-shadow-pane img,
|
|
61
|
+
.tsmap-tile-pane img,
|
|
62
|
+
img.tsmap-image-layer,
|
|
63
|
+
.tsmap-tile {
|
|
64
|
+
max-width: none !important;
|
|
65
|
+
max-height: none !important;
|
|
66
|
+
width: auto;
|
|
67
|
+
padding: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
img.tsmap-tile {
|
|
71
|
+
/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
|
|
72
|
+
mix-blend-mode: plus-lighter;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.tsmap-touch-zoom {
|
|
76
|
+
touch-action: pan-x pan-y;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.tsmap-touch-drag {
|
|
80
|
+
/* Fallback for FF which doesn't support pinch-zoom */
|
|
81
|
+
touch-action: none;
|
|
82
|
+
touch-action: pinch-zoom;
|
|
83
|
+
|
|
84
|
+
&.tsmap-touch-zoom {
|
|
85
|
+
touch-action: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
-webkit-tap-highlight-color: transparent;
|
|
90
|
+
|
|
91
|
+
a {
|
|
92
|
+
-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.tsmap-tile {
|
|
97
|
+
visibility: hidden;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.tsmap-tile-loaded {
|
|
101
|
+
visibility: inherit;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.tsmap-zoom-box {
|
|
105
|
+
width: 0;
|
|
106
|
+
height: 0;
|
|
107
|
+
box-sizing: border-box;
|
|
108
|
+
z-index: 800;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.tsmap-pane {
|
|
112
|
+
z-index: 400;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.tsmap-tile-pane {
|
|
116
|
+
z-index: 200;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.tsmap-overlay-pane {
|
|
120
|
+
z-index: 400;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.tsmap-shadow-pane {
|
|
124
|
+
z-index: 500;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.tsmap-marker-pane {
|
|
128
|
+
z-index: 600;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.tsmap-tooltip-pane {
|
|
132
|
+
z-index: 650;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.tsmap-popup-pane {
|
|
136
|
+
z-index: 700;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.tsmap-map-pane {
|
|
140
|
+
canvas {
|
|
141
|
+
z-index: 100;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
svg {
|
|
145
|
+
z-index: 200;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* control positioning */
|
|
150
|
+
|
|
151
|
+
.tsmap-control {
|
|
152
|
+
position: relative;
|
|
153
|
+
z-index: 800;
|
|
154
|
+
pointer-events: auto;
|
|
155
|
+
float: left;
|
|
156
|
+
clear: both;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.tsmap-top,
|
|
160
|
+
.tsmap-bottom {
|
|
161
|
+
position: absolute;
|
|
162
|
+
z-index: 1000;
|
|
163
|
+
pointer-events: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.tsmap-top {
|
|
167
|
+
top: 0;
|
|
168
|
+
.tsmap-control {
|
|
169
|
+
margin-top: 10px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.tsmap-right {
|
|
174
|
+
right: 0;
|
|
175
|
+
.tsmap-control {
|
|
176
|
+
float: right;
|
|
177
|
+
margin-right: 10px;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.tsmap-bottom {
|
|
182
|
+
bottom: 0;
|
|
183
|
+
.tsmap-control {
|
|
184
|
+
margin-bottom: 10px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.tsmap-left {
|
|
189
|
+
left: 0;
|
|
190
|
+
.tsmap-control {
|
|
191
|
+
margin-left: 10px;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* zoom and fade animations */
|
|
196
|
+
|
|
197
|
+
.tsmap-fade-anim {
|
|
198
|
+
.tsmap-popup {
|
|
199
|
+
opacity: 0;
|
|
200
|
+
transition: opacity 0.2s linear;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.tsmap-map-pane .tsmap-popup {
|
|
204
|
+
opacity: 1;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.tsmap-zoom-animated {
|
|
209
|
+
transform-origin: 0 0;
|
|
210
|
+
svg& {
|
|
211
|
+
will-change: transform;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.tsmap-zoom-anim {
|
|
216
|
+
.tsmap-zoom-animated {
|
|
217
|
+
transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.tsmap-tile {
|
|
221
|
+
transition: none;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.tsmap-zoom-hide {
|
|
225
|
+
visibility: hidden;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.tsmap-pan-anim .tsmap-tile {
|
|
230
|
+
transition: none;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Upright panes — counter-rotate the pane so marker icons, popups and
|
|
234
|
+
* tooltips stay visually upright when the map is rotated (bearing != 0).
|
|
235
|
+
* The transform and transform-origin are driven from JS (see
|
|
236
|
+
* `TsMap._applyBearingToPanes`). */
|
|
237
|
+
.tsmap-upright {
|
|
238
|
+
will-change: transform;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* cursors */
|
|
242
|
+
|
|
243
|
+
.tsmap-interactive {
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.tsmap-grab {
|
|
248
|
+
cursor: grab;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.tsmap-crosshair {
|
|
252
|
+
cursor: crosshair;
|
|
253
|
+
|
|
254
|
+
.tsmap-interactive {
|
|
255
|
+
cursor: crosshair;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.tsmap-popup-pane,
|
|
260
|
+
.tsmap-control {
|
|
261
|
+
cursor: auto;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.tsmap-dragging {
|
|
265
|
+
.tsmap-grab {
|
|
266
|
+
cursor: grabbing;
|
|
267
|
+
|
|
268
|
+
.tsmap-interactive {
|
|
269
|
+
cursor: grabbing;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.tsmap-marker-draggable {
|
|
274
|
+
cursor: grabbing;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* marker & overlays interactivity */
|
|
279
|
+
.tsmap-marker-icon,
|
|
280
|
+
.tsmap-marker-shadow,
|
|
281
|
+
.tsmap-image-layer,
|
|
282
|
+
.tsmap-pane > svg path,
|
|
283
|
+
.tsmap-tile-container {
|
|
284
|
+
pointer-events: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.tsmap-marker-icon.tsmap-interactive,
|
|
288
|
+
.tsmap-image-layer.tsmap-interactive,
|
|
289
|
+
.tsmap-pane > svg path.tsmap-interactive,
|
|
290
|
+
svg.tsmap-image-layer.tsmap-interactive path {
|
|
291
|
+
pointer-events: auto;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* visual tweaks */
|
|
295
|
+
|
|
296
|
+
.tsmap-container {
|
|
297
|
+
background: #ddd;
|
|
298
|
+
outline-offset: 1px;
|
|
299
|
+
|
|
300
|
+
a {
|
|
301
|
+
color: #0078a8;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* prevent showing outline-box on Chromium when clicking on a vector with a tooltip */
|
|
306
|
+
path.tsmap-interactive:focus:not(:focus-visible) {
|
|
307
|
+
outline: 0;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.tsmap-zoom-box {
|
|
311
|
+
border: 2px dotted #38f;
|
|
312
|
+
background: rgba(255, 255, 255, 0.5);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* general typography */
|
|
316
|
+
.tsmap-container {
|
|
317
|
+
font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
|
318
|
+
font-size: 12px;
|
|
319
|
+
font-size: 0.75rem;
|
|
320
|
+
line-height: 1.5;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* general toolbar styles */
|
|
324
|
+
|
|
325
|
+
.tsmap-bar {
|
|
326
|
+
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
|
|
327
|
+
border-radius: 4px;
|
|
328
|
+
|
|
329
|
+
a {
|
|
330
|
+
background-color: #fff;
|
|
331
|
+
border-bottom: 1px solid #ccc;
|
|
332
|
+
width: 26px;
|
|
333
|
+
height: 26px;
|
|
334
|
+
line-height: 26px;
|
|
335
|
+
display: block;
|
|
336
|
+
text-align: center;
|
|
337
|
+
text-decoration: none;
|
|
338
|
+
color: black;
|
|
339
|
+
background-position: 50% 50%;
|
|
340
|
+
background-repeat: no-repeat;
|
|
341
|
+
display: block;
|
|
342
|
+
&:hover,
|
|
343
|
+
&:focus {
|
|
344
|
+
background-color: #f4f4f4;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&:first-child {
|
|
348
|
+
border-top-left-radius: 4px;
|
|
349
|
+
border-top-right-radius: 4px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
&:last-child {
|
|
353
|
+
border-bottom-left-radius: 4px;
|
|
354
|
+
border-bottom-right-radius: 4px;
|
|
355
|
+
border-bottom: none;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
&.tsmap-disabled {
|
|
359
|
+
cursor: default;
|
|
360
|
+
background-color: #f4f4f4;
|
|
361
|
+
color: #bbb;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.tsmap-control-layers-toggle {
|
|
367
|
+
background-position: 50% 50%;
|
|
368
|
+
background-repeat: no-repeat;
|
|
369
|
+
display: block;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.tsmap-touch .tsmap-bar a {
|
|
373
|
+
width: 30px;
|
|
374
|
+
height: 30px;
|
|
375
|
+
line-height: 30px;
|
|
376
|
+
|
|
377
|
+
&:first-child {
|
|
378
|
+
border-top-left-radius: 2px;
|
|
379
|
+
border-top-right-radius: 2px;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&:last-child {
|
|
383
|
+
border-bottom-left-radius: 2px;
|
|
384
|
+
border-bottom-right-radius: 2px;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* zoom control */
|
|
389
|
+
|
|
390
|
+
.tsmap-control-zoom-in,
|
|
391
|
+
.tsmap-control-zoom-out {
|
|
392
|
+
font: bold 18px 'Lucida Console', Monaco, monospace;
|
|
393
|
+
text-indent: 1px;
|
|
394
|
+
.tsmap-touch & {
|
|
395
|
+
font-size: 22px;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/* layers control */
|
|
400
|
+
|
|
401
|
+
.tsmap-control-layers {
|
|
402
|
+
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
|
|
403
|
+
background: #fff;
|
|
404
|
+
border-radius: 5px;
|
|
405
|
+
|
|
406
|
+
.tsmap-control-layers-list {
|
|
407
|
+
display: none;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.tsmap-control-layers-toggle {
|
|
412
|
+
background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2736%27 height=%2736%27 viewBox=%270 0 36 36%27%3E%3Crect x=%274%27 y=%274%27 width=%2714%27 height=%2714%27 fill=%27%23fff%27 stroke=%27%23666%27 stroke-width=%271.5%27/%3E%3Crect x=%2710%27 y=%2710%27 width=%2714%27 height=%2714%27 fill=%27%23e8e8e8%27 stroke=%27%23666%27 stroke-width=%271.5%27/%3E%3Crect x=%2716%27 y=%2716%27 width=%2714%27 height=%2714%27 fill=%27%23d0d0d0%27 stroke=%27%23666%27 stroke-width=%271.5%27/%3E%3C/svg%3E');
|
|
413
|
+
background-repeat: no-repeat;
|
|
414
|
+
background-position: center;
|
|
415
|
+
width: 36px;
|
|
416
|
+
height: 36px;
|
|
417
|
+
|
|
418
|
+
.tsmap-touch & {
|
|
419
|
+
width: 44px;
|
|
420
|
+
height: 44px;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.tsmap-control-layers-expanded {
|
|
425
|
+
.tsmap-control-layers-toggle {
|
|
426
|
+
display: none;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.tsmap-control-layers-list {
|
|
430
|
+
display: block;
|
|
431
|
+
position: relative;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.tsmap-control-layers-list {
|
|
436
|
+
border: 0;
|
|
437
|
+
margin: 0;
|
|
438
|
+
padding: 0;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.tsmap-control-layers-expanded {
|
|
442
|
+
padding: 6px 10px 6px 6px;
|
|
443
|
+
color: #333;
|
|
444
|
+
background: #fff;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.tsmap-control-layers-scrollbar {
|
|
448
|
+
overflow-y: scroll;
|
|
449
|
+
overflow-x: hidden;
|
|
450
|
+
padding-right: 5px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.tsmap-control-layers-selector {
|
|
454
|
+
margin-top: 2px;
|
|
455
|
+
position: relative;
|
|
456
|
+
top: 1px;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.tsmap-control-layers label {
|
|
460
|
+
display: block;
|
|
461
|
+
font-size: 13px;
|
|
462
|
+
font-size: 1.08333em;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.tsmap-control-layers-separator {
|
|
466
|
+
height: 0;
|
|
467
|
+
border-top: 1px solid #ddd;
|
|
468
|
+
margin: 5px -10px 5px -6px;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/* Path-detection probe for DefaultIcon (see DefaultIcon._detectIconPath) */
|
|
472
|
+
.tsmap-default-icon-path {
|
|
473
|
+
background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2725%27 height=%2741%27%3E%3Cpath fill=%27%232b83f6%27 d=%27M12.5 0C5.6 0 0 5.6 0 12.5c0 9.4 12.5 28.5 12.5 28.5S25 21.9 25 12.5C25 5.6 19.4 0 12.5 0z%27/%3E%3C/svg%3E');
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* attribution and scale controls */
|
|
477
|
+
|
|
478
|
+
.tsmap-container .tsmap-control-attribution {
|
|
479
|
+
background: #fff;
|
|
480
|
+
background: rgba(255, 255, 255, 0.8);
|
|
481
|
+
margin: 0;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.tsmap-control-attribution,
|
|
485
|
+
.tsmap-control-scale-line {
|
|
486
|
+
padding: 0 5px;
|
|
487
|
+
color: #333;
|
|
488
|
+
line-height: 1.4;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.tsmap-control-attribution a {
|
|
492
|
+
text-decoration: none;
|
|
493
|
+
|
|
494
|
+
&:hover,
|
|
495
|
+
&:focus {
|
|
496
|
+
text-decoration: underline;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.tsmap-attribution-flag {
|
|
501
|
+
display: inline !important;
|
|
502
|
+
vertical-align: baseline !important;
|
|
503
|
+
width: 1em;
|
|
504
|
+
height: 0.6669em;
|
|
505
|
+
margin-right: 0.277em;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.tsmap-left .tsmap-control-scale {
|
|
509
|
+
margin-left: 5px;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.tsmap-bottom .tsmap-control-scale {
|
|
513
|
+
margin-bottom: 5px;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.tsmap-control-scale-line {
|
|
517
|
+
border: 2px solid #777;
|
|
518
|
+
border-top: none;
|
|
519
|
+
line-height: 1.1;
|
|
520
|
+
padding: 2px 5px 1px;
|
|
521
|
+
white-space: nowrap;
|
|
522
|
+
box-sizing: border-box;
|
|
523
|
+
background: rgba(255, 255, 255, 0.8);
|
|
524
|
+
text-shadow: 1px 1px #fff;
|
|
525
|
+
|
|
526
|
+
&:not(:first-child) {
|
|
527
|
+
border-top: 2px solid #777;
|
|
528
|
+
border-bottom: none;
|
|
529
|
+
margin-top: -2px;
|
|
530
|
+
|
|
531
|
+
&:not(:last-child) {
|
|
532
|
+
border-bottom: 2px solid #777;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.tsmap-touch {
|
|
538
|
+
.tsmap-control-attribution,
|
|
539
|
+
.tsmap-control-layers,
|
|
540
|
+
.tsmap-bar {
|
|
541
|
+
box-shadow: none;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.tsmap-control-layers,
|
|
545
|
+
.tsmap-bar {
|
|
546
|
+
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
547
|
+
background-clip: padding-box;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/* popup */
|
|
552
|
+
|
|
553
|
+
.tsmap-popup {
|
|
554
|
+
position: absolute;
|
|
555
|
+
text-align: center;
|
|
556
|
+
margin-bottom: 20px;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.tsmap-popup-content-wrapper {
|
|
560
|
+
padding: 1px;
|
|
561
|
+
text-align: left;
|
|
562
|
+
border-radius: 12px;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.tsmap-popup-content {
|
|
566
|
+
margin: 13px 24px 13px 20px;
|
|
567
|
+
line-height: 1.3;
|
|
568
|
+
font-size: 13px;
|
|
569
|
+
font-size: 1.08333em;
|
|
570
|
+
min-height: 1px;
|
|
571
|
+
|
|
572
|
+
p {
|
|
573
|
+
margin: 17px 0;
|
|
574
|
+
margin: 1.3em 0;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.tsmap-popup-tip-container {
|
|
579
|
+
width: 40px;
|
|
580
|
+
height: 20px;
|
|
581
|
+
position: absolute;
|
|
582
|
+
left: 50%;
|
|
583
|
+
margin-top: -1px;
|
|
584
|
+
margin-left: -20px;
|
|
585
|
+
overflow: hidden;
|
|
586
|
+
pointer-events: none;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.tsmap-popup-tip {
|
|
590
|
+
width: 17px;
|
|
591
|
+
height: 17px;
|
|
592
|
+
padding: 1px;
|
|
593
|
+
margin: -10px auto 0;
|
|
594
|
+
pointer-events: auto;
|
|
595
|
+
transform: rotate(45deg);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.tsmap-popup-content-wrapper,
|
|
599
|
+
.tsmap-popup-tip {
|
|
600
|
+
background: white;
|
|
601
|
+
color: #333;
|
|
602
|
+
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.tsmap-container a.tsmap-popup-close-button {
|
|
606
|
+
position: absolute;
|
|
607
|
+
top: 0;
|
|
608
|
+
right: 0;
|
|
609
|
+
border: none;
|
|
610
|
+
text-align: center;
|
|
611
|
+
width: 24px;
|
|
612
|
+
height: 24px;
|
|
613
|
+
font: 16px/24px Tahoma, Verdana, sans-serif;
|
|
614
|
+
color: #757575;
|
|
615
|
+
text-decoration: none;
|
|
616
|
+
background: transparent;
|
|
617
|
+
|
|
618
|
+
&:hover,
|
|
619
|
+
&:focus {
|
|
620
|
+
color: #585858;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.tsmap-popup-scrolled {
|
|
625
|
+
overflow: auto;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* div icon */
|
|
629
|
+
|
|
630
|
+
.tsmap-div-icon {
|
|
631
|
+
background: #fff;
|
|
632
|
+
border: 1px solid #666;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/* Tooltip */
|
|
636
|
+
/* Base styles for the element that has a tooltip */
|
|
637
|
+
.tsmap-tooltip {
|
|
638
|
+
position: absolute;
|
|
639
|
+
padding: 6px;
|
|
640
|
+
background-color: #fff;
|
|
641
|
+
border: 1px solid #fff;
|
|
642
|
+
border-radius: 3px;
|
|
643
|
+
color: #222;
|
|
644
|
+
white-space: nowrap;
|
|
645
|
+
user-select: none;
|
|
646
|
+
pointer-events: none;
|
|
647
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
648
|
+
|
|
649
|
+
&.tsmap-interactive {
|
|
650
|
+
cursor: pointer;
|
|
651
|
+
pointer-events: auto;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.tsmap-tooltip-top:before,
|
|
656
|
+
.tsmap-tooltip-bottom:before,
|
|
657
|
+
.tsmap-tooltip-left:before,
|
|
658
|
+
.tsmap-tooltip-right:before {
|
|
659
|
+
position: absolute;
|
|
660
|
+
pointer-events: none;
|
|
661
|
+
border: 6px solid transparent;
|
|
662
|
+
background: transparent;
|
|
663
|
+
content: '';
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/* Directions */
|
|
667
|
+
|
|
668
|
+
.tsmap-tooltip-bottom {
|
|
669
|
+
margin-top: 6px;
|
|
670
|
+
|
|
671
|
+
&:before {
|
|
672
|
+
left: 50%;
|
|
673
|
+
margin-left: -6px;
|
|
674
|
+
top: 0;
|
|
675
|
+
margin-top: -12px;
|
|
676
|
+
margin-left: -6px;
|
|
677
|
+
border-bottom-color: #fff;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.tsmap-tooltip-top {
|
|
682
|
+
margin-top: -6px;
|
|
683
|
+
|
|
684
|
+
&:before {
|
|
685
|
+
left: 50%;
|
|
686
|
+
margin-left: -6px;
|
|
687
|
+
bottom: 0;
|
|
688
|
+
margin-bottom: -12px;
|
|
689
|
+
border-top-color: #fff;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.tsmap-tooltip-left {
|
|
694
|
+
margin-left: -6px;
|
|
695
|
+
|
|
696
|
+
&:before {
|
|
697
|
+
top: 50%;
|
|
698
|
+
margin-top: -6px;
|
|
699
|
+
right: 0;
|
|
700
|
+
margin-right: -12px;
|
|
701
|
+
border-left-color: #fff;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.tsmap-tooltip-right {
|
|
706
|
+
margin-left: 6px;
|
|
707
|
+
|
|
708
|
+
&:before {
|
|
709
|
+
top: 50%;
|
|
710
|
+
margin-top: -6px;
|
|
711
|
+
left: 0;
|
|
712
|
+
margin-left: -12px;
|
|
713
|
+
border-right-color: #fff;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/* Printing */
|
|
718
|
+
|
|
719
|
+
@media print {
|
|
720
|
+
/* Prevent printers from removing background-images of controls. */
|
|
721
|
+
.tsmap-control {
|
|
722
|
+
-webkit-print-color-adjust: exact;
|
|
723
|
+
print-color-adjust: exact;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare interface BaseComponentShape {
|
|
2
|
-
remove: () => void
|
|
3
|
-
setStyle: (property: string | Record<string, any>, value?: string | number) => void
|
|
4
|
-
addClass: (className: string) => void
|
|
5
|
-
getBBox: () => BBox
|
|
6
|
-
width?: number
|
|
7
|
-
node?: SVGElement
|
|
8
|
-
isHovered?: boolean
|
|
9
|
-
isSelected?: boolean
|
|
10
|
-
updateStyle?: () => void
|
|
11
|
-
}
|
|
12
|
-
declare class BaseComponent {
|
|
13
|
-
protected _tooltip?: HTMLElement;
|
|
14
|
-
protected shape?: BaseComponentShape;
|
|
15
|
-
dispose(): void;
|
|
16
|
-
}
|
|
17
|
-
export default BaseComponent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default Interactable;
|