@planet/maps 8.0.0 → 8.1.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.
Files changed (95) hide show
  1. package/LICENSE +202 -0
  2. package/config.js +32 -0
  3. package/lib/Map.js +73 -0
  4. package/lib/Overlay.js +24 -0
  5. package/lib/View.js +24 -0
  6. package/lib/control/Attribution.js +24 -0
  7. package/lib/control/Control.js +24 -0
  8. package/lib/control/FullScreen.js +24 -0
  9. package/lib/control/MousePosition.js +24 -0
  10. package/lib/control/OverviewMap.js +24 -0
  11. package/lib/control/Rotate.js +24 -0
  12. package/lib/control/ScaleLine.js +24 -0
  13. package/lib/control/Zoom.js +24 -0
  14. package/lib/control/ZoomSlider.js +24 -0
  15. package/lib/control/ZoomToExtent.js +24 -0
  16. package/lib/interaction/DoubleClickZoom.js +24 -0
  17. package/lib/interaction/DragAndDrop.js +24 -0
  18. package/lib/interaction/DragBox.js +24 -0
  19. package/lib/interaction/DragPan.js +24 -0
  20. package/lib/interaction/DragRotate.js +24 -0
  21. package/lib/interaction/DragRotateAndZoom.js +28 -0
  22. package/lib/interaction/DragZoom.js +24 -0
  23. package/lib/interaction/Draw.js +24 -0
  24. package/lib/interaction/Extent.js +24 -0
  25. package/lib/interaction/Interaction.js +24 -0
  26. package/lib/interaction/KeyboardPan.js +24 -0
  27. package/lib/interaction/KeyboardZoom.js +24 -0
  28. package/lib/interaction/Link.js +24 -0
  29. package/lib/interaction/Modify.js +24 -0
  30. package/lib/interaction/MouseWheelZoom.js +24 -0
  31. package/lib/interaction/PinchRotate.js +24 -0
  32. package/lib/interaction/PinchZoom.js +24 -0
  33. package/lib/interaction/Pointer.js +24 -0
  34. package/lib/interaction/Property.js +24 -0
  35. package/lib/interaction/Select.js +24 -0
  36. package/lib/interaction/Snap.js +24 -0
  37. package/lib/interaction/Translate.js +24 -0
  38. package/lib/layer/Base.js +29 -0
  39. package/lib/layer/BaseImage.js +29 -0
  40. package/lib/layer/BaseTile.js +29 -0
  41. package/lib/layer/BaseVector.js +29 -0
  42. package/lib/layer/Graticule.js +29 -0
  43. package/lib/layer/Group.js +29 -0
  44. package/lib/layer/Heatmap.js +29 -0
  45. package/lib/layer/Image.js +29 -0
  46. package/lib/layer/Layer.js +29 -0
  47. package/lib/layer/MapboxVector.js +29 -0
  48. package/lib/layer/Tile.js +29 -0
  49. package/lib/layer/Vector.js +29 -0
  50. package/lib/layer/VectorImage.js +29 -0
  51. package/lib/layer/VectorTile.js +29 -0
  52. package/lib/layer/WebGLPoints.js +29 -0
  53. package/lib/layer/WebGLTile.js +29 -0
  54. package/lib/source/BingMaps.js +24 -0
  55. package/lib/source/CartoDB.js +24 -0
  56. package/lib/source/Cluster.js +24 -0
  57. package/lib/source/DataTile.js +24 -0
  58. package/lib/source/GeoTIFF.js +24 -0
  59. package/lib/source/IIIF.js +24 -0
  60. package/lib/source/Image.js +24 -0
  61. package/lib/source/ImageArcGISRest.js +24 -0
  62. package/lib/source/ImageCanvas.js +24 -0
  63. package/lib/source/ImageMapGuide.js +24 -0
  64. package/lib/source/ImageStatic.js +24 -0
  65. package/lib/source/ImageWMS.js +24 -0
  66. package/lib/source/OGCMapTile.js +24 -0
  67. package/lib/source/OGCVectorTile.js +24 -0
  68. package/lib/source/OSM.js +24 -0
  69. package/lib/source/Raster.js +24 -0
  70. package/lib/source/Source.js +24 -0
  71. package/lib/source/Stamen.js +24 -0
  72. package/lib/source/Tile.js +24 -0
  73. package/lib/source/TileArcGISRest.js +24 -0
  74. package/lib/source/TileDebug.js +24 -0
  75. package/lib/source/TileImage.js +24 -0
  76. package/lib/source/TileJSON.js +24 -0
  77. package/lib/source/TileWMS.js +24 -0
  78. package/lib/source/UTFGrid.js +24 -0
  79. package/lib/source/UrlTile.js +24 -0
  80. package/lib/source/Vector.js +24 -0
  81. package/lib/source/VectorTile.js +24 -0
  82. package/lib/source/WMTS.js +24 -0
  83. package/lib/source/XYZ.js +24 -0
  84. package/lib/source/Zoomify.js +24 -0
  85. package/package.json +103 -17
  86. package/readme.md +44 -35
  87. package/renderer/render.js +313 -0
  88. package/renderer/update.js +98 -0
  89. package/.npmignore +0 -2
  90. package/common.js +0 -582
  91. package/debug.js +0 -91520
  92. package/embed.js +0 -376
  93. package/explorer.js +0 -517
  94. package/ol.css +0 -241
  95. package/ol.min.js +0 -1012
package/ol.css DELETED
@@ -1,241 +0,0 @@
1
- .ol-box {
2
- box-sizing: border-box;
3
- border-radius: 2px;
4
- border: 2px solid blue;
5
- }
6
-
7
- .ol-mouse-position {
8
- top: 8px;
9
- right: 8px;
10
- position: absolute;
11
- }
12
-
13
- .ol-scale-line {
14
- background: rgba(0,60,136,0.3);
15
- border-radius: 4px;
16
- bottom: 8px;
17
- left: 8px;
18
- padding: 2px;
19
- position: absolute;
20
- }
21
- .ol-scale-line-inner {
22
- border: 1px solid #eee;
23
- border-top: none;
24
- color: #eee;
25
- font-size: 10px;
26
- text-align: center;
27
- margin: 1px;
28
- will-change: contents, width;
29
- }
30
- .ol-overlay-container {
31
- will-change: left,right,top,bottom;
32
- }
33
-
34
- .ol-unsupported {
35
- display: none;
36
- }
37
- .ol-viewport .ol-unselectable {
38
- -webkit-touch-callout: none;
39
- -webkit-user-select: none;
40
- -khtml-user-select: none;
41
- -moz-user-select: none;
42
- -ms-user-select: none;
43
- user-select: none;
44
- -webkit-tap-highlight-color: rgba(0,0,0,0);
45
- }
46
-
47
- .ol-control {
48
- position: absolute;
49
- background-color: rgba(255,255,255,0.4);
50
- border-radius: 4px;
51
- padding: 2px;
52
- }
53
- .ol-control:hover {
54
- background-color: rgba(255,255,255,0.6);
55
- }
56
- .ol-zoom {
57
- top: .5em;
58
- left: .5em;
59
- }
60
- .ol-rotate {
61
- top: .5em;
62
- right: .5em;
63
- transition: opacity .25s linear, visibility 0s linear;
64
- }
65
- .ol-rotate.ol-hidden {
66
- opacity: 0;
67
- visibility: hidden;
68
- transition: opacity .25s linear, visibility 0s linear .25s;
69
- }
70
- .ol-zoom-extent {
71
- top: 4.643em;
72
- left: .5em;
73
- }
74
- .ol-full-screen {
75
- right: .5em;
76
- top: .5em;
77
- }
78
- @media print {
79
- .ol-control {
80
- display: none;
81
- }
82
- }
83
-
84
- .ol-control button {
85
- display: block;
86
- margin: 1px;
87
- padding: 0;
88
- color: white;
89
- font-size: 1.14em;
90
- font-weight: bold;
91
- text-decoration: none;
92
- text-align: center;
93
- height: 1.375em;
94
- width: 1.375em;
95
- line-height: .4em;
96
- background-color: rgba(0,60,136,0.5);
97
- border: none;
98
- border-radius: 2px;
99
- }
100
- .ol-control button::-moz-focus-inner {
101
- border: none;
102
- padding: 0;
103
- }
104
- .ol-zoom-extent button {
105
- line-height: 1.4em;
106
- }
107
- .ol-compass {
108
- display: block;
109
- font-weight: normal;
110
- font-size: 1.2em;
111
- will-change: transform;
112
- }
113
- .ol-touch .ol-control button {
114
- font-size: 1.5em;
115
- }
116
- .ol-touch .ol-zoom-extent {
117
- top: 5.5em;
118
- }
119
- .ol-control button:hover,
120
- .ol-control button:focus {
121
- text-decoration: none;
122
- background-color: rgba(0,60,136,0.7);
123
- }
124
- .ol-zoom .ol-zoom-in {
125
- border-radius: 2px 2px 0 0;
126
- }
127
- .ol-zoom .ol-zoom-out {
128
- border-radius: 0 0 2px 2px;
129
- }
130
-
131
-
132
- .ol-attribution {
133
- text-align: right;
134
- bottom: .5em;
135
- right: .5em;
136
- max-width: calc(100% - 1.3em);
137
- }
138
-
139
- .ol-attribution ul {
140
- margin: 0;
141
- padding: 0 .5em;
142
- font-size: .7rem;
143
- line-height: 1.375em;
144
- color: #000;
145
- text-shadow: 0 0 2px #fff;
146
- }
147
- .ol-attribution li {
148
- display: inline;
149
- list-style: none;
150
- line-height: inherit;
151
- }
152
- .ol-attribution li:not(:last-child):after {
153
- content: " ";
154
- }
155
- .ol-attribution img {
156
- max-height: 2em;
157
- max-width: inherit;
158
- vertical-align: middle;
159
- }
160
- .ol-attribution ul, .ol-attribution button {
161
- display: inline-block;
162
- }
163
- .ol-attribution.ol-collapsed ul {
164
- display: none;
165
- }
166
- .ol-attribution.ol-logo-only ul {
167
- display: block;
168
- }
169
- .ol-attribution:not(.ol-collapsed) {
170
- background: rgba(255,255,255,0.8);
171
- }
172
- .ol-attribution.ol-uncollapsible {
173
- bottom: 0;
174
- right: 0;
175
- border-radius: 4px 0 0;
176
- height: 1.1em;
177
- line-height: 1em;
178
- }
179
- .ol-attribution.ol-logo-only {
180
- background: transparent;
181
- bottom: .4em;
182
- height: 1.1em;
183
- line-height: 1em;
184
- }
185
- .ol-attribution.ol-uncollapsible img {
186
- margin-top: -.2em;
187
- max-height: 1.6em;
188
- }
189
- .ol-attribution.ol-logo-only button,
190
- .ol-attribution.ol-uncollapsible button {
191
- display: none;
192
- }
193
-
194
- .ol-zoomslider {
195
- top: 4.5em;
196
- left: .5em;
197
- height: 200px;
198
- }
199
- .ol-zoomslider button {
200
- position: relative;
201
- height: 10px;
202
- }
203
-
204
- .ol-touch .ol-zoomslider {
205
- top: 5.5em;
206
- }
207
-
208
- .ol-overviewmap {
209
- left: 0.5em;
210
- bottom: 0.5em;
211
- }
212
- .ol-overviewmap.ol-uncollapsible {
213
- bottom: 0;
214
- left: 0;
215
- border-radius: 0 4px 0 0;
216
- }
217
- .ol-overviewmap .ol-overviewmap-map,
218
- .ol-overviewmap button {
219
- display: inline-block;
220
- }
221
- .ol-overviewmap .ol-overviewmap-map {
222
- border: 1px solid #7b98bc;
223
- height: 150px;
224
- margin: 2px;
225
- width: 150px;
226
- }
227
- .ol-overviewmap:not(.ol-collapsed) button{
228
- bottom: 1px;
229
- left: 2px;
230
- position: absolute;
231
- }
232
- .ol-overviewmap.ol-collapsed .ol-overviewmap-map,
233
- .ol-overviewmap.ol-uncollapsible button {
234
- display: none;
235
- }
236
- .ol-overviewmap:not(.ol-collapsed) {
237
- background: rgba(255,255,255,0.8);
238
- }
239
- .ol-overviewmap-box {
240
- border: 2px dotted rgba(0,60,136,0.7);
241
- }