@openremote/or-map 1.20.0 → 1.20.2

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 (40) hide show
  1. package/custom-elements-jsx.d.ts +9 -4
  2. package/custom-elements.json +2008 -1008
  3. package/dist/umd/index.bundle.js +69 -69
  4. package/dist/umd/index.bundle.js.map +1 -1
  5. package/dist/umd/index.js +70 -70
  6. package/dist/umd/index.js.map +1 -1
  7. package/dist/umd/index.orbundle.js +64 -64
  8. package/dist/umd/index.orbundle.js.map +1 -1
  9. package/lib/asset-map.d.ts +60 -0
  10. package/lib/asset-map.d.ts.map +1 -0
  11. package/lib/asset-map.js +1 -0
  12. package/lib/asset-map.js.map +1 -0
  13. package/lib/{mapwidget.d.ts → base-map.d.ts} +6 -29
  14. package/lib/base-map.d.ts.map +1 -0
  15. package/lib/base-map.js +1 -0
  16. package/lib/base-map.js.map +1 -0
  17. package/lib/index.d.ts +12 -34
  18. package/lib/index.d.ts.map +1 -1
  19. package/lib/index.js +10 -10
  20. package/lib/index.js.map +1 -1
  21. package/lib/markers/or-cluster-marker.d.ts +7 -4
  22. package/lib/markers/or-cluster-marker.d.ts.map +1 -1
  23. package/lib/markers/or-cluster-marker.js +6 -6
  24. package/lib/markers/or-cluster-marker.js.map +1 -1
  25. package/lib/or-map-legend.d.ts +1 -1
  26. package/lib/or-map-legend.d.ts.map +1 -1
  27. package/lib/or-map-legend.js +6 -6
  28. package/lib/or-map-legend.js.map +1 -1
  29. package/lib/types.d.ts +39 -0
  30. package/lib/types.d.ts.map +1 -0
  31. package/lib/types.js +1 -0
  32. package/lib/types.js.map +1 -0
  33. package/lib/util/index.d.ts +1 -0
  34. package/lib/util/index.d.ts.map +1 -1
  35. package/lib/util/index.js +1 -1
  36. package/lib/util/index.js.map +1 -1
  37. package/package.json +6 -6
  38. package/lib/mapwidget.d.ts.map +0 -1
  39. package/lib/mapwidget.js +0 -1
  40. package/lib/mapwidget.js.map +0 -1
@@ -4,1396 +4,2381 @@
4
4
  "modules": [
5
5
  {
6
6
  "kind": "javascript-module",
7
- "path": "src/index.ts",
7
+ "path": "src/asset-map.ts",
8
8
  "declarations": [
9
9
  {
10
10
  "kind": "class",
11
- "description": "",
12
- "name": "OrMapLoadedEvent",
13
- "members": [
14
- {
15
- "kind": "field",
16
- "name": "NAME",
17
- "type": {
18
- "text": "string"
19
- },
20
- "privacy": "public",
21
- "static": true,
22
- "readonly": true,
23
- "default": "\"or-map-loaded\""
24
- }
25
- ],
26
- "superclass": {
27
- "name": "CustomEvent",
28
- "module": "src/index.ts"
29
- }
30
- },
31
- {
32
- "kind": "class",
33
- "description": "",
34
- "name": "OrMapClickedEvent",
35
- "members": [
36
- {
37
- "kind": "field",
38
- "name": "NAME",
39
- "type": {
40
- "text": "string"
41
- },
42
- "privacy": "public",
43
- "static": true,
44
- "readonly": true,
45
- "default": "\"or-map-clicked\""
46
- }
47
- ],
48
- "superclass": {
49
- "name": "CustomEvent",
50
- "module": "src/index.ts"
51
- }
52
- },
53
- {
54
- "kind": "class",
55
- "description": "",
56
- "name": "OrMapLongPressEvent",
57
- "members": [
58
- {
59
- "kind": "field",
60
- "name": "NAME",
61
- "type": {
62
- "text": "string"
63
- },
64
- "privacy": "public",
65
- "static": true,
66
- "readonly": true,
67
- "default": "\"or-map-long-press\""
68
- }
69
- ],
70
- "superclass": {
71
- "name": "CustomEvent",
72
- "module": "src/index.ts"
73
- }
74
- },
75
- {
76
- "kind": "class",
77
- "description": "",
78
- "name": "OrMapGeocoderChangeEvent",
79
- "members": [
80
- {
81
- "kind": "field",
82
- "name": "NAME",
83
- "type": {
84
- "text": "string"
85
- },
86
- "privacy": "public",
87
- "static": true,
88
- "readonly": true,
89
- "default": "\"or-map-geocoder-change\""
90
- }
91
- ],
92
- "superclass": {
93
- "name": "CustomEvent",
94
- "module": "src/index.ts"
95
- }
96
- },
97
- {
98
- "kind": "class",
99
- "description": "",
100
- "name": "OrMapMarkersChangedEvent",
11
+ "description": "This class handles where to display asset markers and clusters on the map.\n\nCurrently, the standard flow to display assets as markers on the map goes as follows:\n\n1. The map page adds assets to the AssetMap, which computes assets in view and then dispatches OrMapMarkersChangedEvent.\n2. The map page receives the event, renders the received assets as OrMapMarkerAsset by including them inside the map element's HTML body.\n3. The map component then receives either an event from the OrMapMarkerAsset,\nor when the map component sees a slotted OrMapMarker was added. From there the OrMapMarkers are passed to the BaseMap to be assigned to a MapLibre marker.",
12
+ "name": "AssetMap",
101
13
  "members": [
102
14
  {
103
15
  "kind": "field",
104
- "name": "NAME",
16
+ "name": "_clusterProperty",
105
17
  "type": {
106
18
  "text": "string"
107
19
  },
108
- "privacy": "public",
20
+ "privacy": "private",
109
21
  "static": true,
110
- "readonly": true,
111
- "default": "\"or-map-markers-changed\""
112
- }
113
- ],
114
- "superclass": {
115
- "name": "CustomEvent",
116
- "module": "src/index.ts"
117
- }
118
- },
119
- {
120
- "kind": "function",
121
- "name": "geoJsonPointInputTemplateProvider",
122
- "parameters": [
123
- {
124
- "name": "assetDescriptor"
125
- },
126
- {
127
- "name": "valueHolder"
128
- },
129
- {
130
- "name": "valueHolderDescriptor"
131
- },
132
- {
133
- "name": "valueDescriptor"
134
- },
135
- {
136
- "name": "valueChangeNotifier"
137
- },
138
- {
139
- "name": "options"
140
- }
141
- ]
142
- },
143
- {
144
- "kind": "class",
145
- "description": "",
146
- "name": "OrMap",
147
- "members": [
148
- {
149
- "kind": "field",
150
- "name": "cluster",
151
- "type": {
152
- "text": "ClusterConfig | undefined"
153
- },
154
- "privacy": "public",
155
- "attribute": "cluster"
156
- },
157
- {
158
- "kind": "field",
159
- "name": "center",
160
- "type": {
161
- "text": "LngLatLike | undefined"
162
- },
163
- "privacy": "public",
164
- "attribute": "center"
165
- },
166
- {
167
- "kind": "field",
168
- "name": "zoom",
169
- "type": {
170
- "text": "number | undefined"
171
- },
172
- "privacy": "public",
173
- "attribute": "zoom"
174
- },
175
- {
176
- "kind": "field",
177
- "name": "showGeoCodingControl",
178
- "type": {
179
- "text": "boolean"
180
- },
181
- "privacy": "public",
182
- "default": "false",
183
- "attribute": "showGeoCodingControl"
22
+ "default": "\"assetType\""
184
23
  },
185
24
  {
186
25
  "kind": "field",
187
- "name": "showBoundaryBoxControl",
26
+ "name": "_assets",
188
27
  "type": {
189
- "text": "boolean"
28
+ "text": "Record<string, AssetWithLocation | null>"
190
29
  },
191
- "privacy": "public",
192
- "default": "false",
193
- "attribute": "showBoundaryBoxControl"
30
+ "privacy": "protected",
31
+ "default": "{}"
194
32
  },
195
33
  {
196
34
  "kind": "field",
197
- "name": "useZoomControl",
35
+ "name": "_assetTypeColors",
198
36
  "type": {
199
- "text": "boolean"
37
+ "text": "Record<string, string>"
200
38
  },
201
- "privacy": "public",
202
- "default": "true",
203
- "attribute": "useZoomControl"
39
+ "privacy": "protected",
40
+ "default": "{}"
204
41
  },
205
42
  {
206
43
  "kind": "field",
207
- "name": "geoJson",
44
+ "name": "_assetsOnScreen",
208
45
  "type": {
209
- "text": "GeoJsonConfig | undefined"
46
+ "text": "Record<string, AssetWithLocation>"
210
47
  },
211
- "privacy": "public",
212
- "attribute": "geoJson"
48
+ "privacy": "protected",
49
+ "default": "{}"
213
50
  },
214
51
  {
215
52
  "kind": "field",
216
- "name": "showGeoJson",
53
+ "name": "_cachedClusters",
217
54
  "type": {
218
- "text": "boolean"
55
+ "text": "Record<string, Marker>"
219
56
  },
220
- "privacy": "public",
221
- "default": "true",
222
- "attribute": "showGeoJson"
57
+ "privacy": "protected",
58
+ "default": "{}"
223
59
  },
224
60
  {
225
61
  "kind": "field",
226
- "name": "boundary",
62
+ "name": "_clustersOnScreen",
227
63
  "type": {
228
- "text": "string[]"
64
+ "text": "Record<string, Marker>"
229
65
  },
230
- "privacy": "public",
231
- "default": "[]",
232
- "attribute": "boundary"
66
+ "privacy": "protected",
67
+ "default": "{}"
233
68
  },
234
69
  {
235
70
  "kind": "field",
236
- "name": "controls",
71
+ "name": "_clusterConfig",
237
72
  "type": {
238
- "text": "(IControl | [IControl, ControlPosition?])[] | undefined"
73
+ "text": "ClusterConfig | undefined"
239
74
  },
240
- "privacy": "public"
75
+ "privacy": "protected",
76
+ "default": "clusterConfig"
241
77
  },
242
78
  {
243
79
  "kind": "field",
244
- "name": "_initCallback",
80
+ "name": "_source",
245
81
  "type": {
246
- "text": "EventCallback | undefined"
82
+ "text": "GeoJSONSource | undefined"
247
83
  },
248
84
  "privacy": "protected"
249
85
  },
250
86
  {
251
87
  "kind": "field",
252
- "name": "_map",
253
- "type": {
254
- "text": "MapWidget | undefined"
255
- },
88
+ "name": "_onMove",
256
89
  "privacy": "protected"
257
90
  },
258
91
  {
259
92
  "kind": "field",
260
- "name": "_loaded",
261
- "type": {
262
- "text": "boolean"
263
- },
264
- "privacy": "protected",
265
- "default": "false"
266
- },
267
- {
268
- "kind": "field",
269
- "name": "_resizeObserver",
270
- "type": {
271
- "text": "ResizeObserver | undefined"
272
- },
93
+ "name": "_onMoveEnd",
273
94
  "privacy": "protected"
274
95
  },
275
96
  {
276
97
  "kind": "field",
277
- "name": "_mapContainer",
278
- "type": {
279
- "text": "HTMLElement | undefined"
280
- },
98
+ "name": "_onData",
281
99
  "privacy": "protected"
282
100
  },
283
101
  {
284
- "kind": "field",
285
- "name": "_slotElement",
286
- "type": {
287
- "text": "HTMLSlotElement | undefined"
102
+ "kind": "method",
103
+ "name": "build",
104
+ "privacy": "public",
105
+ "return": {
106
+ "type": {
107
+ "text": "Promise<void>"
108
+ }
288
109
  },
289
- "privacy": "protected"
110
+ "description": "Build the map based on the map config.",
111
+ "inheritedFrom": {
112
+ "name": "BaseMap",
113
+ "module": "src/base-map.ts"
114
+ }
290
115
  },
291
116
  {
292
117
  "kind": "method",
293
- "name": "addAssetMarker",
118
+ "name": "addAsset",
294
119
  "privacy": "public",
295
120
  "parameters": [
296
121
  {
297
122
  "name": "asset",
298
123
  "type": {
299
124
  "text": "AssetWithLocation"
300
- }
125
+ },
126
+ "description": "The asset to add"
301
127
  }
302
128
  ],
303
- "type": {
304
- "text": "addAssetMarker(asset: AssetWithLocation) => void"
305
- }
129
+ "description": "Add an asset as (asset) feature to the map.\n\nUse addAssets instead if adding multiple assets."
306
130
  },
307
131
  {
308
132
  "kind": "method",
309
- "name": "cleanUpAssetMarkers",
133
+ "name": "addAssets",
310
134
  "privacy": "public",
311
- "return": {
312
- "type": {
313
- "text": "void"
135
+ "parameters": [
136
+ {
137
+ "name": "assets",
138
+ "type": {
139
+ "text": "AssetWithLocation[]"
140
+ },
141
+ "description": "The assets to add"
314
142
  }
315
- },
316
- "type": {
317
- "text": "cleanUpAssetMarkers() => void"
318
- }
143
+ ],
144
+ "description": "Add multiple assets as (asset) features to the map. Optimized for adding multiple assets at once."
319
145
  },
320
146
  {
321
147
  "kind": "method",
322
- "name": "reload",
148
+ "name": "updateAttribute",
323
149
  "privacy": "public",
324
- "type": {
325
- "text": "reload() => void"
326
- }
150
+ "parameters": [
151
+ {
152
+ "name": "event",
153
+ "type": {
154
+ "text": "AttributeEvent"
155
+ }
156
+ }
157
+ ]
327
158
  },
328
159
  {
329
160
  "kind": "method",
330
- "name": "refresh",
161
+ "name": "removeAssets",
331
162
  "privacy": "public",
332
- "type": {
333
- "text": "refresh() => void"
334
- }
163
+ "parameters": [
164
+ {
165
+ "name": "ids",
166
+ "type": {
167
+ "text": "string[]"
168
+ }
169
+ }
170
+ ]
335
171
  },
336
172
  {
337
173
  "kind": "method",
338
- "name": "loadMap",
339
- "privacy": "public",
340
- "type": {
341
- "text": "loadMap() => void"
342
- }
174
+ "name": "removeAllAssets",
175
+ "privacy": "public"
343
176
  },
344
177
  {
345
178
  "kind": "method",
346
- "name": "resize",
347
- "privacy": "public",
348
- "type": {
349
- "text": "resize() => void"
350
- }
179
+ "name": "load",
180
+ "privacy": "private",
181
+ "description": "Initialize asset sources, layers and data events"
351
182
  },
352
183
  {
353
184
  "kind": "method",
354
- "name": "flyTo",
355
- "privacy": "public",
185
+ "name": "_updateMarkers",
186
+ "privacy": "protected"
187
+ },
188
+ {
189
+ "kind": "method",
190
+ "name": "_updateAssets",
191
+ "privacy": "private",
356
192
  "parameters": [
357
193
  {
358
- "name": "coordinates",
359
- "optional": true,
194
+ "name": "features",
360
195
  "type": {
361
- "text": "LngLatLike"
196
+ "text": "GeoJSONFeature[]"
197
+ }
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ "kind": "method",
203
+ "name": "_updateClusters",
204
+ "privacy": "private",
205
+ "parameters": [
206
+ {
207
+ "name": "features",
208
+ "type": {
209
+ "text": "GeoJSONFeature[]"
210
+ }
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "kind": "method",
216
+ "name": "_getClusterMarker",
217
+ "privacy": "private",
218
+ "parameters": [
219
+ {
220
+ "name": "feature",
221
+ "type": {
222
+ "text": "GeoJSONFeature"
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "kind": "method",
229
+ "name": "_hasRequired",
230
+ "privacy": "private",
231
+ "return": {
232
+ "type": {
233
+ "text": "asset is IdentifiableAsset"
234
+ }
235
+ },
236
+ "parameters": [
237
+ {
238
+ "name": "asset",
239
+ "type": {
240
+ "text": "AssetWithLocation"
241
+ }
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "kind": "method",
247
+ "name": "_isMissing",
248
+ "privacy": "private",
249
+ "parameters": [
250
+ {
251
+ "name": "asset",
252
+ "type": {
253
+ "text": "IdentifiableAsset"
362
254
  }
363
255
  },
364
256
  {
365
- "name": "zoom",
366
- "optional": true,
257
+ "name": "features",
367
258
  "type": {
368
- "text": "number"
259
+ "text": "Feature[]"
369
260
  }
370
261
  }
371
- ],
372
- "type": {
373
- "text": "flyTo(coordinates?: LngLatLike, zoom?: number) => void"
374
- }
262
+ ]
375
263
  },
376
264
  {
377
265
  "kind": "method",
378
- "name": "_removeMarker",
379
- "privacy": "public",
266
+ "name": "_getClusterProperties",
267
+ "privacy": "private"
268
+ },
269
+ {
270
+ "kind": "method",
271
+ "name": "_getClusterPropertyExpression",
272
+ "privacy": "private",
273
+ "static": true,
380
274
  "parameters": [
381
275
  {
382
- "name": "marker",
276
+ "name": "value",
383
277
  "type": {
384
- "text": "OrMapMarker"
278
+ "text": "string"
385
279
  }
386
280
  }
387
- ],
388
- "type": {
389
- "text": "_removeMarker(marker: OrMapMarker) => void"
390
- }
281
+ ]
391
282
  },
392
283
  {
393
284
  "kind": "method",
394
- "name": "_onMarkerChangedEvent",
395
- "privacy": "protected",
285
+ "name": "_assetToFeature",
286
+ "privacy": "private",
287
+ "static": true,
288
+ "return": {
289
+ "type": {
290
+ "text": "Feature<Point, { id: string; name?: string; [AssetMap._clusterProperty]: string }>"
291
+ }
292
+ },
396
293
  "parameters": [
397
294
  {
398
- "name": "evt",
295
+ "name": "{\n id,\n type,\n name,\n attributes,\n }",
399
296
  "type": {
400
- "text": "OrMapMarkerChangedEvent"
297
+ "text": "IdentifiableAsset"
401
298
  }
402
299
  }
403
300
  ]
404
- }
405
- ],
406
- "attributes": [
301
+ },
407
302
  {
408
- "name": "cluster",
303
+ "kind": "field",
304
+ "name": "_map",
409
305
  "type": {
410
- "text": "ClusterConfig | undefined"
306
+ "text": "MapGL | undefined"
411
307
  },
412
- "fieldName": "cluster"
308
+ "privacy": "protected",
309
+ "inheritedFrom": {
310
+ "name": "BaseMap",
311
+ "module": "src/base-map.ts"
312
+ }
413
313
  },
414
314
  {
415
- "name": "center",
315
+ "kind": "field",
316
+ "name": "_styleParent",
416
317
  "type": {
417
- "text": "LngLatLike | undefined"
318
+ "text": "Node"
418
319
  },
419
- "fieldName": "center"
320
+ "privacy": "protected",
321
+ "default": "styleParent",
322
+ "inheritedFrom": {
323
+ "name": "BaseMap",
324
+ "module": "src/base-map.ts"
325
+ }
420
326
  },
421
327
  {
422
- "name": "zoom",
328
+ "kind": "field",
329
+ "name": "_mapContainer",
423
330
  "type": {
424
- "text": "number | undefined"
331
+ "text": "HTMLElement"
425
332
  },
426
- "fieldName": "zoom"
333
+ "privacy": "protected",
334
+ "default": "mapContainer",
335
+ "inheritedFrom": {
336
+ "name": "BaseMap",
337
+ "module": "src/base-map.ts"
338
+ }
427
339
  },
428
340
  {
429
- "name": "showGeoCodingControl",
341
+ "kind": "field",
342
+ "name": "_loaded",
430
343
  "type": {
431
344
  "text": "boolean"
432
345
  },
346
+ "privacy": "protected",
433
347
  "default": "false",
434
- "fieldName": "showGeoCodingControl"
348
+ "inheritedFrom": {
349
+ "name": "BaseMap",
350
+ "module": "src/base-map.ts"
351
+ }
435
352
  },
436
353
  {
437
- "name": "showBoundaryBoxControl",
354
+ "kind": "field",
355
+ "name": "_markers",
356
+ "type": {
357
+ "text": "Map<OrMapMarker, Marker>"
358
+ },
359
+ "privacy": "protected",
360
+ "default": "new Map()",
361
+ "inheritedFrom": {
362
+ "name": "BaseMap",
363
+ "module": "src/base-map.ts"
364
+ }
365
+ },
366
+ {
367
+ "kind": "field",
368
+ "name": "_geoJsonConfig",
369
+ "type": {
370
+ "text": "GeoJsonConfig | undefined"
371
+ },
372
+ "privacy": "protected",
373
+ "inheritedFrom": {
374
+ "name": "BaseMap",
375
+ "module": "src/base-map.ts"
376
+ }
377
+ },
378
+ {
379
+ "kind": "field",
380
+ "name": "_geoJsonSources",
381
+ "type": {
382
+ "text": "string[]"
383
+ },
384
+ "privacy": "protected",
385
+ "default": "[]",
386
+ "inheritedFrom": {
387
+ "name": "BaseMap",
388
+ "module": "src/base-map.ts"
389
+ }
390
+ },
391
+ {
392
+ "kind": "field",
393
+ "name": "_geoJsonLayers",
394
+ "type": {
395
+ "text": "Map<string, any>"
396
+ },
397
+ "privacy": "protected",
398
+ "default": "new Map()",
399
+ "inheritedFrom": {
400
+ "name": "BaseMap",
401
+ "module": "src/base-map.ts"
402
+ }
403
+ },
404
+ {
405
+ "kind": "field",
406
+ "name": "_viewSettings",
407
+ "type": {
408
+ "text": "ViewSettings | undefined"
409
+ },
410
+ "privacy": "protected",
411
+ "inheritedFrom": {
412
+ "name": "BaseMap",
413
+ "module": "src/base-map.ts"
414
+ }
415
+ },
416
+ {
417
+ "kind": "field",
418
+ "name": "_center",
419
+ "type": {
420
+ "text": "LngLatLike | undefined"
421
+ },
422
+ "privacy": "protected",
423
+ "inheritedFrom": {
424
+ "name": "BaseMap",
425
+ "module": "src/base-map.ts"
426
+ }
427
+ },
428
+ {
429
+ "kind": "field",
430
+ "name": "_zoom",
431
+ "type": {
432
+ "text": "number | undefined"
433
+ },
434
+ "privacy": "protected",
435
+ "inheritedFrom": {
436
+ "name": "BaseMap",
437
+ "module": "src/base-map.ts"
438
+ }
439
+ },
440
+ {
441
+ "kind": "field",
442
+ "name": "_showGeoCodingControl",
438
443
  "type": {
439
444
  "text": "boolean"
440
445
  },
441
- "default": "false",
442
- "fieldName": "showBoundaryBoxControl"
446
+ "privacy": "protected",
447
+ "default": "showGeoCodingControl",
448
+ "inheritedFrom": {
449
+ "name": "BaseMap",
450
+ "module": "src/base-map.ts"
451
+ }
443
452
  },
444
453
  {
445
- "name": "useZoomControl",
454
+ "kind": "field",
455
+ "name": "_showBoundaryBox",
446
456
  "type": {
447
457
  "text": "boolean"
448
458
  },
449
- "default": "true",
450
- "fieldName": "useZoomControl"
459
+ "privacy": "protected",
460
+ "default": "showBoundaryBox",
461
+ "inheritedFrom": {
462
+ "name": "BaseMap",
463
+ "module": "src/base-map.ts"
464
+ }
451
465
  },
452
466
  {
453
- "name": "geoJson",
467
+ "kind": "field",
468
+ "name": "_useZoomControls",
454
469
  "type": {
455
- "text": "GeoJsonConfig | undefined"
470
+ "text": "boolean"
456
471
  },
457
- "fieldName": "geoJson"
472
+ "privacy": "protected",
473
+ "default": "useZoomControls",
474
+ "inheritedFrom": {
475
+ "name": "BaseMap",
476
+ "module": "src/base-map.ts"
477
+ }
458
478
  },
459
479
  {
460
- "name": "showGeoJson",
480
+ "kind": "field",
481
+ "name": "_showGeoJson",
461
482
  "type": {
462
483
  "text": "boolean"
463
484
  },
464
- "default": "true",
465
- "fieldName": "showGeoJson"
485
+ "privacy": "protected",
486
+ "default": "showGeoJson",
487
+ "inheritedFrom": {
488
+ "name": "BaseMap",
489
+ "module": "src/base-map.ts"
490
+ }
466
491
  },
467
492
  {
468
- "name": "boundary",
493
+ "kind": "field",
494
+ "name": "_controls",
469
495
  "type": {
470
- "text": "string[]"
496
+ "text": "(IControl | [IControl, ControlPosition?])[] | undefined"
471
497
  },
472
- "default": "[]",
473
- "fieldName": "boundary"
498
+ "privacy": "protected",
499
+ "inheritedFrom": {
500
+ "name": "BaseMap",
501
+ "module": "src/base-map.ts"
502
+ }
503
+ },
504
+ {
505
+ "kind": "field",
506
+ "name": "_clickHandlers",
507
+ "type": {
508
+ "text": "Map<OrMapMarker, (ev: MouseEvent) => void>"
509
+ },
510
+ "privacy": "protected",
511
+ "default": "new Map()",
512
+ "inheritedFrom": {
513
+ "name": "BaseMap",
514
+ "module": "src/base-map.ts"
515
+ }
516
+ },
517
+ {
518
+ "kind": "field",
519
+ "name": "_geocoder",
520
+ "type": {
521
+ "text": "any | undefined"
522
+ },
523
+ "privacy": "protected",
524
+ "inheritedFrom": {
525
+ "name": "BaseMap",
526
+ "module": "src/base-map.ts"
527
+ }
528
+ },
529
+ {
530
+ "kind": "method",
531
+ "name": "setCenter",
532
+ "privacy": "public",
533
+ "return": {
534
+ "type": {
535
+ "text": "this"
536
+ }
537
+ },
538
+ "parameters": [
539
+ {
540
+ "name": "center",
541
+ "optional": true,
542
+ "type": {
543
+ "text": "LngLatLike"
544
+ }
545
+ }
546
+ ],
547
+ "inheritedFrom": {
548
+ "name": "BaseMap",
549
+ "module": "src/base-map.ts"
550
+ }
551
+ },
552
+ {
553
+ "kind": "method",
554
+ "name": "flyTo",
555
+ "privacy": "public",
556
+ "return": {
557
+ "type": {
558
+ "text": "this"
559
+ }
560
+ },
561
+ "parameters": [
562
+ {
563
+ "name": "coordinates",
564
+ "optional": true,
565
+ "type": {
566
+ "text": "LngLatLike"
567
+ }
568
+ },
569
+ {
570
+ "name": "zoom",
571
+ "optional": true,
572
+ "type": {
573
+ "text": "number"
574
+ }
575
+ }
576
+ ],
577
+ "inheritedFrom": {
578
+ "name": "BaseMap",
579
+ "module": "src/base-map.ts"
580
+ }
581
+ },
582
+ {
583
+ "kind": "method",
584
+ "name": "resize",
585
+ "privacy": "public",
586
+ "return": {
587
+ "type": {
588
+ "text": "this"
589
+ }
590
+ },
591
+ "inheritedFrom": {
592
+ "name": "BaseMap",
593
+ "module": "src/base-map.ts"
594
+ }
595
+ },
596
+ {
597
+ "kind": "method",
598
+ "name": "setZoom",
599
+ "privacy": "public",
600
+ "return": {
601
+ "type": {
602
+ "text": "this"
603
+ }
604
+ },
605
+ "parameters": [
606
+ {
607
+ "name": "zoom",
608
+ "optional": true,
609
+ "type": {
610
+ "text": "number"
611
+ }
612
+ }
613
+ ],
614
+ "inheritedFrom": {
615
+ "name": "BaseMap",
616
+ "module": "src/base-map.ts"
617
+ }
618
+ },
619
+ {
620
+ "kind": "method",
621
+ "name": "setControls",
622
+ "privacy": "public",
623
+ "return": {
624
+ "type": {
625
+ "text": "this"
626
+ }
627
+ },
628
+ "parameters": [
629
+ {
630
+ "name": "controls",
631
+ "optional": true,
632
+ "type": {
633
+ "text": "(IControl | [IControl, ControlPosition?])[]"
634
+ }
635
+ }
636
+ ],
637
+ "inheritedFrom": {
638
+ "name": "BaseMap",
639
+ "module": "src/base-map.ts"
640
+ }
641
+ },
642
+ {
643
+ "kind": "method",
644
+ "name": "setGeoJson",
645
+ "privacy": "public",
646
+ "return": {
647
+ "type": {
648
+ "text": "this"
649
+ }
650
+ },
651
+ "parameters": [
652
+ {
653
+ "name": "geoJsonConfig",
654
+ "optional": true,
655
+ "type": {
656
+ "text": "GeoJsonConfig"
657
+ }
658
+ }
659
+ ],
660
+ "inheritedFrom": {
661
+ "name": "BaseMap",
662
+ "module": "src/base-map.ts"
663
+ }
664
+ },
665
+ {
666
+ "kind": "method",
667
+ "name": "loadViewSettings",
668
+ "privacy": "public",
669
+ "inheritedFrom": {
670
+ "name": "BaseMap",
671
+ "module": "src/base-map.ts"
672
+ }
673
+ },
674
+ {
675
+ "kind": "method",
676
+ "name": "_styleLoaded",
677
+ "privacy": "protected",
678
+ "return": {
679
+ "type": {
680
+ "text": "Promise<void>"
681
+ }
682
+ },
683
+ "inheritedFrom": {
684
+ "name": "BaseMap",
685
+ "module": "src/base-map.ts"
686
+ }
687
+ },
688
+ {
689
+ "kind": "method",
690
+ "name": "unload",
691
+ "privacy": "public",
692
+ "inheritedFrom": {
693
+ "name": "BaseMap",
694
+ "module": "src/base-map.ts"
695
+ }
696
+ },
697
+ {
698
+ "kind": "method",
699
+ "name": "_onMapClick",
700
+ "privacy": "protected",
701
+ "parameters": [
702
+ {
703
+ "name": "lngLat",
704
+ "type": {
705
+ "text": "LngLat"
706
+ }
707
+ },
708
+ {
709
+ "name": "doubleClicked",
710
+ "default": "false",
711
+ "type": {
712
+ "text": "boolean"
713
+ }
714
+ }
715
+ ],
716
+ "inheritedFrom": {
717
+ "name": "BaseMap",
718
+ "module": "src/base-map.ts"
719
+ }
720
+ },
721
+ {
722
+ "kind": "method",
723
+ "name": "_loadGeoJSON",
724
+ "privacy": "protected",
725
+ "parameters": [
726
+ {
727
+ "name": "geoJsonConfig",
728
+ "optional": true,
729
+ "type": {
730
+ "text": "GeoJsonConfig"
731
+ }
732
+ }
733
+ ],
734
+ "inheritedFrom": {
735
+ "name": "BaseMap",
736
+ "module": "src/base-map.ts"
737
+ }
738
+ },
739
+ {
740
+ "kind": "method",
741
+ "name": "groupSourcesByGeometryType",
742
+ "privacy": "public",
743
+ "return": {
744
+ "type": {
745
+ "text": "Map<string, Feature[]> | undefined"
746
+ }
747
+ },
748
+ "parameters": [
749
+ {
750
+ "name": "sources",
751
+ "type": {
752
+ "text": "FeatureCollection"
753
+ }
754
+ }
755
+ ],
756
+ "inheritedFrom": {
757
+ "name": "BaseMap",
758
+ "module": "src/base-map.ts"
759
+ }
760
+ },
761
+ {
762
+ "kind": "method",
763
+ "name": "addGeoJSONSource",
764
+ "privacy": "public",
765
+ "return": {
766
+ "type": {
767
+ "text": "{ source: GeoJSONSourceSpecification, sourceId: string } | undefined"
768
+ }
769
+ },
770
+ "parameters": [
771
+ {
772
+ "name": "source",
773
+ "type": {
774
+ "text": "GeoJSONSourceSpecification"
775
+ }
776
+ }
777
+ ],
778
+ "inheritedFrom": {
779
+ "name": "BaseMap",
780
+ "module": "src/base-map.ts"
781
+ }
782
+ },
783
+ {
784
+ "kind": "method",
785
+ "name": "addGeoJSONLayer",
786
+ "privacy": "public",
787
+ "parameters": [
788
+ {
789
+ "name": "typeString",
790
+ "type": {
791
+ "text": "string"
792
+ }
793
+ },
794
+ {
795
+ "name": "sourceId",
796
+ "type": {
797
+ "text": "string"
798
+ }
799
+ }
800
+ ],
801
+ "inheritedFrom": {
802
+ "name": "BaseMap",
803
+ "module": "src/base-map.ts"
804
+ }
805
+ },
806
+ {
807
+ "kind": "method",
808
+ "name": "addMarker",
809
+ "privacy": "public",
810
+ "parameters": [
811
+ {
812
+ "name": "marker",
813
+ "type": {
814
+ "text": "OrMapMarker"
815
+ }
816
+ }
817
+ ],
818
+ "inheritedFrom": {
819
+ "name": "BaseMap",
820
+ "module": "src/base-map.ts"
821
+ }
822
+ },
823
+ {
824
+ "kind": "method",
825
+ "name": "removeMarker",
826
+ "privacy": "public",
827
+ "parameters": [
828
+ {
829
+ "name": "marker",
830
+ "type": {
831
+ "text": "OrMapMarker"
832
+ }
833
+ }
834
+ ],
835
+ "inheritedFrom": {
836
+ "name": "BaseMap",
837
+ "module": "src/base-map.ts"
838
+ }
839
+ },
840
+ {
841
+ "kind": "method",
842
+ "name": "onMarkerChanged",
843
+ "privacy": "public",
844
+ "parameters": [
845
+ {
846
+ "name": "marker",
847
+ "type": {
848
+ "text": "OrMapMarker"
849
+ }
850
+ },
851
+ {
852
+ "name": "prop",
853
+ "type": {
854
+ "text": "string"
855
+ }
856
+ }
857
+ ],
858
+ "inheritedFrom": {
859
+ "name": "BaseMap",
860
+ "module": "src/base-map.ts"
861
+ }
862
+ },
863
+ {
864
+ "kind": "method",
865
+ "name": "_updateMarkerPosition",
866
+ "privacy": "protected",
867
+ "parameters": [
868
+ {
869
+ "name": "marker",
870
+ "type": {
871
+ "text": "OrMapMarker"
872
+ }
873
+ }
874
+ ],
875
+ "inheritedFrom": {
876
+ "name": "BaseMap",
877
+ "module": "src/base-map.ts"
878
+ }
879
+ },
880
+ {
881
+ "kind": "method",
882
+ "name": "_updateMarkerElement",
883
+ "privacy": "protected",
884
+ "parameters": [
885
+ {
886
+ "name": "marker",
887
+ "type": {
888
+ "text": "OrMapMarker"
889
+ }
890
+ },
891
+ {
892
+ "name": "doAdd",
893
+ "type": {
894
+ "text": "boolean"
895
+ }
896
+ }
897
+ ],
898
+ "inheritedFrom": {
899
+ "name": "BaseMap",
900
+ "module": "src/base-map.ts"
901
+ }
902
+ },
903
+ {
904
+ "kind": "method",
905
+ "name": "_removeMarkerRadius",
906
+ "privacy": "protected",
907
+ "parameters": [
908
+ {
909
+ "name": "marker",
910
+ "type": {
911
+ "text": "OrMapMarker"
912
+ }
913
+ }
914
+ ],
915
+ "inheritedFrom": {
916
+ "name": "BaseMap",
917
+ "module": "src/base-map.ts"
918
+ }
919
+ },
920
+ {
921
+ "kind": "method",
922
+ "name": "_createMarkerRadius",
923
+ "privacy": "protected",
924
+ "parameters": [
925
+ {
926
+ "name": "marker",
927
+ "type": {
928
+ "text": "OrMapMarker"
929
+ }
930
+ }
931
+ ],
932
+ "inheritedFrom": {
933
+ "name": "BaseMap",
934
+ "module": "src/base-map.ts"
935
+ }
936
+ },
937
+ {
938
+ "kind": "method",
939
+ "name": "createBoundaryBox",
940
+ "privacy": "public",
941
+ "parameters": [
942
+ {
943
+ "name": "boundsArray",
944
+ "default": "[]",
945
+ "type": {
946
+ "text": "string[]"
947
+ }
948
+ }
949
+ ],
950
+ "inheritedFrom": {
951
+ "name": "BaseMap",
952
+ "module": "src/base-map.ts"
953
+ }
954
+ },
955
+ {
956
+ "kind": "method",
957
+ "name": "_addMarkerClickHandler",
958
+ "privacy": "protected",
959
+ "parameters": [
960
+ {
961
+ "name": "marker",
962
+ "type": {
963
+ "text": "OrMapMarker"
964
+ }
965
+ },
966
+ {
967
+ "name": "elem",
968
+ "type": {
969
+ "text": "HTMLElement"
970
+ }
971
+ }
972
+ ],
973
+ "inheritedFrom": {
974
+ "name": "BaseMap",
975
+ "module": "src/base-map.ts"
976
+ }
977
+ },
978
+ {
979
+ "kind": "method",
980
+ "name": "_removeMarkerClickHandler",
981
+ "privacy": "protected",
982
+ "parameters": [
983
+ {
984
+ "name": "marker",
985
+ "type": {
986
+ "text": "OrMapMarker"
987
+ }
988
+ },
989
+ {
990
+ "name": "elem",
991
+ "type": {
992
+ "text": "HTMLElement"
993
+ }
994
+ }
995
+ ],
996
+ "inheritedFrom": {
997
+ "name": "BaseMap",
998
+ "module": "src/base-map.ts"
999
+ }
1000
+ },
1001
+ {
1002
+ "kind": "method",
1003
+ "name": "_forwardGeocode",
1004
+ "privacy": "protected",
1005
+ "parameters": [
1006
+ {
1007
+ "name": "config",
1008
+ "type": {
1009
+ "text": "any"
1010
+ }
1011
+ }
1012
+ ],
1013
+ "inheritedFrom": {
1014
+ "name": "BaseMap",
1015
+ "module": "src/base-map.ts"
1016
+ }
1017
+ },
1018
+ {
1019
+ "kind": "method",
1020
+ "name": "_reverseGeocode",
1021
+ "privacy": "public",
1022
+ "parameters": [
1023
+ {
1024
+ "name": "config",
1025
+ "type": {
1026
+ "text": "{lat: number, lon:number}"
1027
+ }
1028
+ }
1029
+ ],
1030
+ "inheritedFrom": {
1031
+ "name": "BaseMap",
1032
+ "module": "src/base-map.ts"
1033
+ }
1034
+ },
1035
+ {
1036
+ "kind": "method",
1037
+ "name": "_initLongPressEvent",
1038
+ "privacy": "protected",
1039
+ "inheritedFrom": {
1040
+ "name": "BaseMap",
1041
+ "module": "src/base-map.ts"
1042
+ }
1043
+ },
1044
+ {
1045
+ "kind": "method",
1046
+ "name": "_onLongPress",
1047
+ "privacy": "protected",
1048
+ "parameters": [
1049
+ {
1050
+ "name": "lngLat",
1051
+ "type": {
1052
+ "text": "LngLat"
1053
+ }
1054
+ }
1055
+ ],
1056
+ "inheritedFrom": {
1057
+ "name": "BaseMap",
1058
+ "module": "src/base-map.ts"
1059
+ }
1060
+ },
1061
+ {
1062
+ "kind": "method",
1063
+ "name": "_onGeocodeChange",
1064
+ "privacy": "protected",
1065
+ "parameters": [
1066
+ {
1067
+ "name": "geocode",
1068
+ "type": {
1069
+ "text": "any"
1070
+ }
1071
+ }
1072
+ ],
1073
+ "inheritedFrom": {
1074
+ "name": "BaseMap",
1075
+ "module": "src/base-map.ts"
1076
+ }
474
1077
  }
475
1078
  ],
476
1079
  "superclass": {
477
- "name": "LitElement",
478
- "package": "lit"
479
- },
480
- "tagName": "or-map",
481
- "customElement": true,
482
- "modulePath": "src/index.ts",
483
- "definitionPath": "src/index.ts"
1080
+ "name": "BaseMap",
1081
+ "module": "/src/base-map"
1082
+ }
484
1083
  }
485
1084
  ],
486
1085
  "exports": [
487
1086
  {
488
1087
  "kind": "js",
489
- "name": "Util",
490
- "declaration": {
491
- "name": "Util",
492
- "module": "src/index.ts"
493
- }
494
- },
495
- {
496
- "kind": "js",
497
- "name": "LngLatLike",
498
- "declaration": {
499
- "name": "LngLatLike",
500
- "module": "src/index.ts"
501
- }
502
- },
503
- {
504
- "kind": "js",
505
- "name": "LngLat",
506
- "declaration": {
507
- "name": "LngLat",
508
- "module": "src/index.ts"
509
- }
510
- },
511
- {
512
- "kind": "js",
513
- "name": "ClusterConfig",
514
- "declaration": {
515
- "name": "ClusterConfig",
516
- "module": "src/index.ts"
517
- }
518
- },
519
- {
520
- "kind": "js",
521
- "name": "*",
522
- "declaration": {
523
- "name": "*",
524
- "module": "src/markers/or-map-marker"
525
- }
526
- },
527
- {
528
- "kind": "js",
529
- "name": "*",
530
- "declaration": {
531
- "name": "*",
532
- "module": "src/markers/or-map-marker-asset"
533
- }
534
- },
535
- {
536
- "kind": "js",
537
- "name": "*",
538
- "declaration": {
539
- "name": "*",
540
- "module": "src/markers/or-cluster-marker"
541
- }
542
- },
543
- {
544
- "kind": "js",
545
- "name": "IControl",
546
- "declaration": {
547
- "name": "IControl",
548
- "module": "maplibre-gl"
549
- }
550
- },
551
- {
552
- "kind": "js",
553
- "name": "*",
554
- "declaration": {
555
- "name": "*",
556
- "module": "src/or-map-asset-card"
557
- }
558
- },
559
- {
560
- "kind": "js",
561
- "name": "*",
562
- "declaration": {
563
- "name": "*",
564
- "module": "src/or-map-legend"
565
- }
566
- },
567
- {
568
- "kind": "js",
569
- "name": "OrMapLoadedEvent",
570
- "declaration": {
571
- "name": "OrMapLoadedEvent",
572
- "module": "src/index.ts"
573
- }
574
- },
575
- {
576
- "kind": "js",
577
- "name": "OrMapClickedEvent",
578
- "declaration": {
579
- "name": "OrMapClickedEvent",
580
- "module": "src/index.ts"
581
- }
582
- },
583
- {
584
- "kind": "js",
585
- "name": "OrMapLongPressEvent",
586
- "declaration": {
587
- "name": "OrMapLongPressEvent",
588
- "module": "src/index.ts"
589
- }
590
- },
591
- {
592
- "kind": "js",
593
- "name": "OrMapGeocoderChangeEvent",
594
- "declaration": {
595
- "name": "OrMapGeocoderChangeEvent",
596
- "module": "src/index.ts"
597
- }
598
- },
599
- {
600
- "kind": "js",
601
- "name": "OrMapMarkersChangedEvent",
602
- "declaration": {
603
- "name": "OrMapMarkersChangedEvent",
604
- "module": "src/index.ts"
605
- }
606
- },
607
- {
608
- "kind": "js",
609
- "name": "geoJsonPointInputTemplateProvider",
610
- "declaration": {
611
- "name": "geoJsonPointInputTemplateProvider",
612
- "module": "src/index.ts"
613
- }
614
- },
615
- {
616
- "kind": "js",
617
- "name": "OrMap",
618
- "declaration": {
619
- "name": "OrMap",
620
- "module": "src/index.ts"
621
- }
622
- },
623
- {
624
- "kind": "custom-element-definition",
625
- "name": "or-map",
1088
+ "name": "AssetMap",
626
1089
  "declaration": {
627
- "name": "OrMap",
628
- "module": "src/index.ts"
1090
+ "name": "AssetMap",
1091
+ "module": "src/asset-map.ts"
629
1092
  }
630
1093
  }
631
1094
  ]
632
1095
  },
633
1096
  {
634
1097
  "kind": "javascript-module",
635
- "path": "src/mapwidget.ts",
1098
+ "path": "src/base-map.ts",
636
1099
  "declarations": [
637
1100
  {
638
1101
  "kind": "class",
639
1102
  "description": "",
640
- "name": "MapWidget",
1103
+ "name": "BaseMap",
641
1104
  "members": [
642
1105
  {
643
1106
  "kind": "field",
644
- "name": "_map",
1107
+ "name": "_map",
1108
+ "type": {
1109
+ "text": "MapGL | undefined"
1110
+ },
1111
+ "privacy": "protected"
1112
+ },
1113
+ {
1114
+ "kind": "field",
1115
+ "name": "_styleParent",
1116
+ "type": {
1117
+ "text": "Node"
1118
+ },
1119
+ "privacy": "protected",
1120
+ "default": "styleParent"
1121
+ },
1122
+ {
1123
+ "kind": "field",
1124
+ "name": "_mapContainer",
1125
+ "type": {
1126
+ "text": "HTMLElement"
1127
+ },
1128
+ "privacy": "protected",
1129
+ "default": "mapContainer"
1130
+ },
1131
+ {
1132
+ "kind": "field",
1133
+ "name": "_loaded",
1134
+ "type": {
1135
+ "text": "boolean"
1136
+ },
1137
+ "privacy": "protected",
1138
+ "default": "false"
1139
+ },
1140
+ {
1141
+ "kind": "field",
1142
+ "name": "_markers",
1143
+ "type": {
1144
+ "text": "Map<OrMapMarker, Marker>"
1145
+ },
1146
+ "privacy": "protected",
1147
+ "default": "new Map()"
1148
+ },
1149
+ {
1150
+ "kind": "field",
1151
+ "name": "_geoJsonConfig",
1152
+ "type": {
1153
+ "text": "GeoJsonConfig | undefined"
1154
+ },
1155
+ "privacy": "protected"
1156
+ },
1157
+ {
1158
+ "kind": "field",
1159
+ "name": "_geoJsonSources",
1160
+ "type": {
1161
+ "text": "string[]"
1162
+ },
1163
+ "privacy": "protected",
1164
+ "default": "[]"
1165
+ },
1166
+ {
1167
+ "kind": "field",
1168
+ "name": "_geoJsonLayers",
1169
+ "type": {
1170
+ "text": "Map<string, any>"
1171
+ },
1172
+ "privacy": "protected",
1173
+ "default": "new Map()"
1174
+ },
1175
+ {
1176
+ "kind": "field",
1177
+ "name": "_viewSettings",
645
1178
  "type": {
646
- "text": "MapGL | undefined"
1179
+ "text": "ViewSettings | undefined"
647
1180
  },
648
1181
  "privacy": "protected"
649
1182
  },
650
1183
  {
651
1184
  "kind": "field",
652
- "name": "_styleParent",
1185
+ "name": "_center",
653
1186
  "type": {
654
- "text": "Node"
1187
+ "text": "LngLatLike | undefined"
1188
+ },
1189
+ "privacy": "protected"
1190
+ },
1191
+ {
1192
+ "kind": "field",
1193
+ "name": "_zoom",
1194
+ "type": {
1195
+ "text": "number | undefined"
1196
+ },
1197
+ "privacy": "protected"
1198
+ },
1199
+ {
1200
+ "kind": "field",
1201
+ "name": "_showGeoCodingControl",
1202
+ "type": {
1203
+ "text": "boolean"
655
1204
  },
656
1205
  "privacy": "protected",
657
- "default": "styleParent"
1206
+ "default": "showGeoCodingControl"
658
1207
  },
659
1208
  {
660
1209
  "kind": "field",
661
- "name": "_mapContainer",
1210
+ "name": "_showBoundaryBox",
662
1211
  "type": {
663
- "text": "HTMLElement"
1212
+ "text": "boolean"
664
1213
  },
665
1214
  "privacy": "protected",
666
- "default": "mapContainer"
1215
+ "default": "showBoundaryBox"
1216
+ },
1217
+ {
1218
+ "kind": "field",
1219
+ "name": "_useZoomControls",
1220
+ "type": {
1221
+ "text": "boolean"
1222
+ },
1223
+ "privacy": "protected",
1224
+ "default": "useZoomControls"
1225
+ },
1226
+ {
1227
+ "kind": "field",
1228
+ "name": "_showGeoJson",
1229
+ "type": {
1230
+ "text": "boolean"
1231
+ },
1232
+ "privacy": "protected",
1233
+ "default": "showGeoJson"
1234
+ },
1235
+ {
1236
+ "kind": "field",
1237
+ "name": "_controls",
1238
+ "type": {
1239
+ "text": "(IControl | [IControl, ControlPosition?])[] | undefined"
1240
+ },
1241
+ "privacy": "protected"
1242
+ },
1243
+ {
1244
+ "kind": "field",
1245
+ "name": "_clickHandlers",
1246
+ "type": {
1247
+ "text": "Map<OrMapMarker, (ev: MouseEvent) => void>"
1248
+ },
1249
+ "privacy": "protected",
1250
+ "default": "new Map()"
1251
+ },
1252
+ {
1253
+ "kind": "field",
1254
+ "name": "_geocoder",
1255
+ "type": {
1256
+ "text": "any | undefined"
1257
+ },
1258
+ "privacy": "protected"
1259
+ },
1260
+ {
1261
+ "kind": "method",
1262
+ "name": "setCenter",
1263
+ "privacy": "public",
1264
+ "return": {
1265
+ "type": {
1266
+ "text": "this"
1267
+ }
1268
+ },
1269
+ "parameters": [
1270
+ {
1271
+ "name": "center",
1272
+ "optional": true,
1273
+ "type": {
1274
+ "text": "LngLatLike"
1275
+ }
1276
+ }
1277
+ ]
1278
+ },
1279
+ {
1280
+ "kind": "method",
1281
+ "name": "flyTo",
1282
+ "privacy": "public",
1283
+ "return": {
1284
+ "type": {
1285
+ "text": "this"
1286
+ }
1287
+ },
1288
+ "parameters": [
1289
+ {
1290
+ "name": "coordinates",
1291
+ "optional": true,
1292
+ "type": {
1293
+ "text": "LngLatLike"
1294
+ }
1295
+ },
1296
+ {
1297
+ "name": "zoom",
1298
+ "optional": true,
1299
+ "type": {
1300
+ "text": "number"
1301
+ }
1302
+ }
1303
+ ]
1304
+ },
1305
+ {
1306
+ "kind": "method",
1307
+ "name": "resize",
1308
+ "privacy": "public",
1309
+ "return": {
1310
+ "type": {
1311
+ "text": "this"
1312
+ }
1313
+ }
1314
+ },
1315
+ {
1316
+ "kind": "method",
1317
+ "name": "setZoom",
1318
+ "privacy": "public",
1319
+ "return": {
1320
+ "type": {
1321
+ "text": "this"
1322
+ }
1323
+ },
1324
+ "parameters": [
1325
+ {
1326
+ "name": "zoom",
1327
+ "optional": true,
1328
+ "type": {
1329
+ "text": "number"
1330
+ }
1331
+ }
1332
+ ]
1333
+ },
1334
+ {
1335
+ "kind": "method",
1336
+ "name": "setControls",
1337
+ "privacy": "public",
1338
+ "return": {
1339
+ "type": {
1340
+ "text": "this"
1341
+ }
1342
+ },
1343
+ "parameters": [
1344
+ {
1345
+ "name": "controls",
1346
+ "optional": true,
1347
+ "type": {
1348
+ "text": "(IControl | [IControl, ControlPosition?])[]"
1349
+ }
1350
+ }
1351
+ ]
1352
+ },
1353
+ {
1354
+ "kind": "method",
1355
+ "name": "setGeoJson",
1356
+ "privacy": "public",
1357
+ "return": {
1358
+ "type": {
1359
+ "text": "this"
1360
+ }
1361
+ },
1362
+ "parameters": [
1363
+ {
1364
+ "name": "geoJsonConfig",
1365
+ "optional": true,
1366
+ "type": {
1367
+ "text": "GeoJsonConfig"
1368
+ }
1369
+ }
1370
+ ]
1371
+ },
1372
+ {
1373
+ "kind": "method",
1374
+ "name": "loadViewSettings",
1375
+ "privacy": "public"
1376
+ },
1377
+ {
1378
+ "kind": "method",
1379
+ "name": "build",
1380
+ "privacy": "public",
1381
+ "return": {
1382
+ "type": {
1383
+ "text": "Promise<void>"
1384
+ }
1385
+ },
1386
+ "description": "Build the map based on the map config."
1387
+ },
1388
+ {
1389
+ "kind": "method",
1390
+ "name": "_styleLoaded",
1391
+ "privacy": "protected",
1392
+ "return": {
1393
+ "type": {
1394
+ "text": "Promise<void>"
1395
+ }
1396
+ }
1397
+ },
1398
+ {
1399
+ "kind": "method",
1400
+ "name": "unload",
1401
+ "privacy": "public"
1402
+ },
1403
+ {
1404
+ "kind": "method",
1405
+ "name": "_onMapClick",
1406
+ "privacy": "protected",
1407
+ "parameters": [
1408
+ {
1409
+ "name": "lngLat",
1410
+ "type": {
1411
+ "text": "LngLat"
1412
+ }
1413
+ },
1414
+ {
1415
+ "name": "doubleClicked",
1416
+ "default": "false",
1417
+ "type": {
1418
+ "text": "boolean"
1419
+ }
1420
+ }
1421
+ ]
1422
+ },
1423
+ {
1424
+ "kind": "method",
1425
+ "name": "_loadGeoJSON",
1426
+ "privacy": "protected",
1427
+ "parameters": [
1428
+ {
1429
+ "name": "geoJsonConfig",
1430
+ "optional": true,
1431
+ "type": {
1432
+ "text": "GeoJsonConfig"
1433
+ }
1434
+ }
1435
+ ]
667
1436
  },
668
1437
  {
669
- "kind": "field",
670
- "name": "_loaded",
671
- "type": {
672
- "text": "boolean"
1438
+ "kind": "method",
1439
+ "name": "groupSourcesByGeometryType",
1440
+ "privacy": "public",
1441
+ "return": {
1442
+ "type": {
1443
+ "text": "Map<string, Feature[]> | undefined"
1444
+ }
673
1445
  },
674
- "privacy": "protected",
675
- "default": "false"
1446
+ "parameters": [
1447
+ {
1448
+ "name": "sources",
1449
+ "type": {
1450
+ "text": "FeatureCollection"
1451
+ }
1452
+ }
1453
+ ]
676
1454
  },
677
1455
  {
678
- "kind": "field",
679
- "name": "_markers",
680
- "type": {
681
- "text": "Map<OrMapMarker, Marker>"
1456
+ "kind": "method",
1457
+ "name": "addGeoJSONSource",
1458
+ "privacy": "public",
1459
+ "return": {
1460
+ "type": {
1461
+ "text": "{ source: GeoJSONSourceSpecification, sourceId: string } | undefined"
1462
+ }
682
1463
  },
683
- "privacy": "protected",
684
- "default": "new Map()"
1464
+ "parameters": [
1465
+ {
1466
+ "name": "source",
1467
+ "type": {
1468
+ "text": "GeoJSONSourceSpecification"
1469
+ }
1470
+ }
1471
+ ]
685
1472
  },
686
1473
  {
687
- "kind": "field",
688
- "name": "_geoJsonConfig",
689
- "type": {
690
- "text": "GeoJsonConfig | undefined"
691
- },
692
- "privacy": "protected"
1474
+ "kind": "method",
1475
+ "name": "addGeoJSONLayer",
1476
+ "privacy": "public",
1477
+ "parameters": [
1478
+ {
1479
+ "name": "typeString",
1480
+ "type": {
1481
+ "text": "string"
1482
+ }
1483
+ },
1484
+ {
1485
+ "name": "sourceId",
1486
+ "type": {
1487
+ "text": "string"
1488
+ }
1489
+ }
1490
+ ]
693
1491
  },
694
1492
  {
695
- "kind": "field",
696
- "name": "_geoJsonSources",
697
- "type": {
698
- "text": "string[]"
699
- },
700
- "privacy": "protected",
701
- "default": "[]"
1493
+ "kind": "method",
1494
+ "name": "addMarker",
1495
+ "privacy": "public",
1496
+ "parameters": [
1497
+ {
1498
+ "name": "marker",
1499
+ "type": {
1500
+ "text": "OrMapMarker"
1501
+ }
1502
+ }
1503
+ ]
702
1504
  },
703
1505
  {
704
- "kind": "field",
705
- "name": "_geoJsonLayers",
706
- "type": {
707
- "text": "Map<string, any>"
708
- },
709
- "privacy": "protected",
710
- "default": "new Map()"
1506
+ "kind": "method",
1507
+ "name": "removeMarker",
1508
+ "privacy": "public",
1509
+ "parameters": [
1510
+ {
1511
+ "name": "marker",
1512
+ "type": {
1513
+ "text": "OrMapMarker"
1514
+ }
1515
+ }
1516
+ ]
711
1517
  },
712
1518
  {
713
- "kind": "field",
714
- "name": "_viewSettings",
715
- "type": {
716
- "text": "ViewSettings | undefined"
717
- },
718
- "privacy": "protected"
1519
+ "kind": "method",
1520
+ "name": "onMarkerChanged",
1521
+ "privacy": "public",
1522
+ "parameters": [
1523
+ {
1524
+ "name": "marker",
1525
+ "type": {
1526
+ "text": "OrMapMarker"
1527
+ }
1528
+ },
1529
+ {
1530
+ "name": "prop",
1531
+ "type": {
1532
+ "text": "string"
1533
+ }
1534
+ }
1535
+ ]
719
1536
  },
720
1537
  {
721
- "kind": "field",
722
- "name": "_center",
723
- "type": {
724
- "text": "LngLatLike | undefined"
725
- },
726
- "privacy": "protected"
1538
+ "kind": "method",
1539
+ "name": "_updateMarkerPosition",
1540
+ "privacy": "protected",
1541
+ "parameters": [
1542
+ {
1543
+ "name": "marker",
1544
+ "type": {
1545
+ "text": "OrMapMarker"
1546
+ }
1547
+ }
1548
+ ]
727
1549
  },
728
1550
  {
729
- "kind": "field",
730
- "name": "_zoom",
731
- "type": {
732
- "text": "number | undefined"
733
- },
734
- "privacy": "protected"
1551
+ "kind": "method",
1552
+ "name": "_updateMarkerElement",
1553
+ "privacy": "protected",
1554
+ "parameters": [
1555
+ {
1556
+ "name": "marker",
1557
+ "type": {
1558
+ "text": "OrMapMarker"
1559
+ }
1560
+ },
1561
+ {
1562
+ "name": "doAdd",
1563
+ "type": {
1564
+ "text": "boolean"
1565
+ }
1566
+ }
1567
+ ]
735
1568
  },
736
1569
  {
737
- "kind": "field",
738
- "name": "_showGeoCodingControl",
739
- "type": {
740
- "text": "boolean"
741
- },
1570
+ "kind": "method",
1571
+ "name": "_removeMarkerRadius",
742
1572
  "privacy": "protected",
743
- "default": "showGeoCodingControl"
1573
+ "parameters": [
1574
+ {
1575
+ "name": "marker",
1576
+ "type": {
1577
+ "text": "OrMapMarker"
1578
+ }
1579
+ }
1580
+ ]
744
1581
  },
745
1582
  {
746
- "kind": "field",
747
- "name": "_showBoundaryBox",
748
- "type": {
749
- "text": "boolean"
750
- },
1583
+ "kind": "method",
1584
+ "name": "_createMarkerRadius",
751
1585
  "privacy": "protected",
752
- "default": "showBoundaryBox"
1586
+ "parameters": [
1587
+ {
1588
+ "name": "marker",
1589
+ "type": {
1590
+ "text": "OrMapMarker"
1591
+ }
1592
+ }
1593
+ ]
753
1594
  },
754
1595
  {
755
- "kind": "field",
756
- "name": "_useZoomControls",
757
- "type": {
758
- "text": "boolean"
759
- },
1596
+ "kind": "method",
1597
+ "name": "createBoundaryBox",
1598
+ "privacy": "public",
1599
+ "parameters": [
1600
+ {
1601
+ "name": "boundsArray",
1602
+ "default": "[]",
1603
+ "type": {
1604
+ "text": "string[]"
1605
+ }
1606
+ }
1607
+ ]
1608
+ },
1609
+ {
1610
+ "kind": "method",
1611
+ "name": "_addMarkerClickHandler",
760
1612
  "privacy": "protected",
761
- "default": "useZoomControls"
1613
+ "parameters": [
1614
+ {
1615
+ "name": "marker",
1616
+ "type": {
1617
+ "text": "OrMapMarker"
1618
+ }
1619
+ },
1620
+ {
1621
+ "name": "elem",
1622
+ "type": {
1623
+ "text": "HTMLElement"
1624
+ }
1625
+ }
1626
+ ]
762
1627
  },
763
1628
  {
764
- "kind": "field",
765
- "name": "_showGeoJson",
766
- "type": {
767
- "text": "boolean"
768
- },
1629
+ "kind": "method",
1630
+ "name": "_removeMarkerClickHandler",
769
1631
  "privacy": "protected",
770
- "default": "showGeoJson"
1632
+ "parameters": [
1633
+ {
1634
+ "name": "marker",
1635
+ "type": {
1636
+ "text": "OrMapMarker"
1637
+ }
1638
+ },
1639
+ {
1640
+ "name": "elem",
1641
+ "type": {
1642
+ "text": "HTMLElement"
1643
+ }
1644
+ }
1645
+ ]
771
1646
  },
772
1647
  {
773
- "kind": "field",
774
- "name": "_controls",
775
- "type": {
776
- "text": "(IControl | [IControl, ControlPosition?])[] | undefined"
777
- },
778
- "privacy": "protected"
1648
+ "kind": "method",
1649
+ "name": "_forwardGeocode",
1650
+ "privacy": "protected",
1651
+ "parameters": [
1652
+ {
1653
+ "name": "config",
1654
+ "type": {
1655
+ "text": "any"
1656
+ }
1657
+ }
1658
+ ]
779
1659
  },
780
1660
  {
781
- "kind": "field",
782
- "name": "_clickHandlers",
783
- "type": {
784
- "text": "Map<OrMapMarker, (ev: MouseEvent) => void>"
785
- },
786
- "privacy": "protected",
787
- "default": "new Map()"
1661
+ "kind": "method",
1662
+ "name": "_reverseGeocode",
1663
+ "privacy": "public",
1664
+ "parameters": [
1665
+ {
1666
+ "name": "config",
1667
+ "type": {
1668
+ "text": "{lat: number, lon:number}"
1669
+ }
1670
+ }
1671
+ ]
788
1672
  },
789
1673
  {
790
- "kind": "field",
791
- "name": "_geocoder",
792
- "type": {
793
- "text": "any | undefined"
794
- },
1674
+ "kind": "method",
1675
+ "name": "_initLongPressEvent",
795
1676
  "privacy": "protected"
796
1677
  },
797
1678
  {
798
- "kind": "field",
799
- "name": "_clusterConfig",
800
- "type": {
801
- "text": "ClusterConfig | undefined"
802
- },
1679
+ "kind": "method",
1680
+ "name": "_onLongPress",
803
1681
  "privacy": "protected",
804
- "default": "clusterConfig"
1682
+ "parameters": [
1683
+ {
1684
+ "name": "lngLat",
1685
+ "type": {
1686
+ "text": "LngLat"
1687
+ }
1688
+ }
1689
+ ]
805
1690
  },
806
1691
  {
807
- "kind": "field",
808
- "name": "_pointsMap",
809
- "type": {
810
- "text": "any"
811
- },
1692
+ "kind": "method",
1693
+ "name": "_onGeocodeChange",
812
1694
  "privacy": "protected",
813
- "default": "{ type: \"FeatureCollection\", features: [] }"
814
- },
1695
+ "parameters": [
1696
+ {
1697
+ "name": "geocode",
1698
+ "type": {
1699
+ "text": "any"
1700
+ }
1701
+ }
1702
+ ]
1703
+ }
1704
+ ]
1705
+ }
1706
+ ],
1707
+ "exports": [
1708
+ {
1709
+ "kind": "js",
1710
+ "name": "BaseMap",
1711
+ "declaration": {
1712
+ "name": "BaseMap",
1713
+ "module": "src/base-map.ts"
1714
+ }
1715
+ }
1716
+ ]
1717
+ },
1718
+ {
1719
+ "kind": "javascript-module",
1720
+ "path": "src/index.ts",
1721
+ "declarations": [
1722
+ {
1723
+ "kind": "class",
1724
+ "description": "",
1725
+ "name": "OrMapLoadedEvent",
1726
+ "members": [
815
1727
  {
816
1728
  "kind": "field",
817
- "name": "_assetTypeColors",
1729
+ "name": "NAME",
818
1730
  "type": {
819
- "text": "any"
1731
+ "text": "string"
820
1732
  },
821
- "privacy": "protected",
822
- "default": "{}"
823
- },
1733
+ "privacy": "public",
1734
+ "static": true,
1735
+ "readonly": true,
1736
+ "default": "\"or-map-loaded\""
1737
+ }
1738
+ ],
1739
+ "superclass": {
1740
+ "name": "CustomEvent",
1741
+ "module": "src/index.ts"
1742
+ }
1743
+ },
1744
+ {
1745
+ "kind": "class",
1746
+ "description": "",
1747
+ "name": "OrMapClickedEvent",
1748
+ "members": [
824
1749
  {
825
1750
  "kind": "field",
826
- "name": "_cachedMarkers",
1751
+ "name": "NAME",
827
1752
  "type": {
828
- "text": "Record<string, Marker>"
1753
+ "text": "string"
829
1754
  },
830
- "privacy": "protected",
831
- "default": "{}"
832
- },
1755
+ "privacy": "public",
1756
+ "static": true,
1757
+ "readonly": true,
1758
+ "default": "\"or-map-clicked\""
1759
+ }
1760
+ ],
1761
+ "superclass": {
1762
+ "name": "CustomEvent",
1763
+ "module": "src/index.ts"
1764
+ }
1765
+ },
1766
+ {
1767
+ "kind": "class",
1768
+ "description": "",
1769
+ "name": "OrMapLongPressEvent",
1770
+ "members": [
833
1771
  {
834
1772
  "kind": "field",
835
- "name": "_markersOnScreen",
1773
+ "name": "NAME",
836
1774
  "type": {
837
- "text": "Record<string, Marker>"
1775
+ "text": "string"
838
1776
  },
839
- "privacy": "protected",
840
- "default": "{}"
841
- },
1777
+ "privacy": "public",
1778
+ "static": true,
1779
+ "readonly": true,
1780
+ "default": "\"or-map-long-press\""
1781
+ }
1782
+ ],
1783
+ "superclass": {
1784
+ "name": "CustomEvent",
1785
+ "module": "src/index.ts"
1786
+ }
1787
+ },
1788
+ {
1789
+ "kind": "class",
1790
+ "description": "",
1791
+ "name": "OrMapGeocoderChangeEvent",
1792
+ "members": [
842
1793
  {
843
1794
  "kind": "field",
844
- "name": "_assetsOnScreen",
1795
+ "name": "NAME",
845
1796
  "type": {
846
- "text": "Record<string, AssetWithLocation>"
1797
+ "text": "string"
847
1798
  },
848
- "privacy": "protected",
849
- "default": "{}"
850
- },
851
- {
852
- "kind": "field",
853
- "name": "_onMove",
854
- "privacy": "protected"
855
- },
856
- {
857
- "kind": "field",
858
- "name": "_onMoveEnd",
859
- "privacy": "protected"
860
- },
1799
+ "privacy": "public",
1800
+ "static": true,
1801
+ "readonly": true,
1802
+ "default": "\"or-map-geocoder-change\""
1803
+ }
1804
+ ],
1805
+ "superclass": {
1806
+ "name": "CustomEvent",
1807
+ "module": "src/index.ts"
1808
+ }
1809
+ },
1810
+ {
1811
+ "kind": "class",
1812
+ "description": "",
1813
+ "name": "OrMapMarkersChangedEvent",
1814
+ "members": [
861
1815
  {
862
1816
  "kind": "field",
863
- "name": "_onData",
864
- "privacy": "protected"
865
- },
866
- {
867
- "kind": "method",
868
- "name": "setCenter",
869
- "privacy": "public",
870
- "return": {
871
- "type": {
872
- "text": "this"
873
- }
1817
+ "name": "NAME",
1818
+ "type": {
1819
+ "text": "string"
874
1820
  },
875
- "parameters": [
876
- {
877
- "name": "center",
878
- "optional": true,
879
- "type": {
880
- "text": "LngLatLike"
881
- }
882
- }
883
- ]
884
- },
885
- {
886
- "kind": "method",
887
- "name": "flyTo",
888
1821
  "privacy": "public",
889
- "return": {
890
- "type": {
891
- "text": "this"
892
- }
893
- },
894
- "parameters": [
895
- {
896
- "name": "coordinates",
897
- "optional": true,
898
- "type": {
899
- "text": "LngLatLike"
900
- }
901
- },
902
- {
903
- "name": "zoom",
904
- "optional": true,
905
- "type": {
906
- "text": "number"
907
- }
908
- }
909
- ]
910
- },
1822
+ "static": true,
1823
+ "readonly": true,
1824
+ "default": "\"or-map-markers-changed\""
1825
+ }
1826
+ ],
1827
+ "superclass": {
1828
+ "name": "CustomEvent",
1829
+ "module": "src/index.ts"
1830
+ }
1831
+ },
1832
+ {
1833
+ "kind": "function",
1834
+ "name": "geoJsonPointInputTemplateProvider",
1835
+ "parameters": [
911
1836
  {
912
- "kind": "method",
913
- "name": "resize",
914
- "privacy": "public",
915
- "return": {
916
- "type": {
917
- "text": "this"
918
- }
919
- }
1837
+ "name": "assetDescriptor"
920
1838
  },
921
1839
  {
922
- "kind": "method",
923
- "name": "setZoom",
924
- "privacy": "public",
925
- "return": {
926
- "type": {
927
- "text": "this"
928
- }
929
- },
930
- "parameters": [
931
- {
932
- "name": "zoom",
933
- "optional": true,
934
- "type": {
935
- "text": "number"
936
- }
937
- }
938
- ]
1840
+ "name": "valueHolder"
939
1841
  },
940
1842
  {
941
- "kind": "method",
942
- "name": "setControls",
943
- "privacy": "public",
944
- "return": {
945
- "type": {
946
- "text": "this"
947
- }
948
- },
949
- "parameters": [
950
- {
951
- "name": "controls",
952
- "optional": true,
953
- "type": {
954
- "text": "(IControl | [IControl, ControlPosition?])[]"
955
- }
956
- }
957
- ]
1843
+ "name": "valueHolderDescriptor"
958
1844
  },
959
1845
  {
960
- "kind": "method",
961
- "name": "setGeoJson",
962
- "privacy": "public",
963
- "return": {
964
- "type": {
965
- "text": "this"
966
- }
967
- },
968
- "parameters": [
969
- {
970
- "name": "geoJsonConfig",
971
- "optional": true,
972
- "type": {
973
- "text": "GeoJsonConfig"
974
- }
975
- }
976
- ]
1846
+ "name": "valueDescriptor"
977
1847
  },
978
1848
  {
979
- "kind": "method",
980
- "name": "loadViewSettings",
981
- "privacy": "public"
1849
+ "name": "valueChangeNotifier"
982
1850
  },
983
1851
  {
984
- "kind": "method",
985
- "name": "build",
986
- "privacy": "public",
987
- "return": {
988
- "type": {
989
- "text": "Promise<void>"
990
- }
1852
+ "name": "options"
1853
+ }
1854
+ ]
1855
+ },
1856
+ {
1857
+ "kind": "class",
1858
+ "description": "",
1859
+ "name": "OrMap",
1860
+ "members": [
1861
+ {
1862
+ "kind": "field",
1863
+ "name": "cluster",
1864
+ "type": {
1865
+ "text": "ClusterConfig | undefined"
991
1866
  },
992
- "description": "Build the map based on the map config."
1867
+ "privacy": "public",
1868
+ "attribute": "cluster"
993
1869
  },
994
1870
  {
995
- "kind": "method",
996
- "name": "_styleLoaded",
997
- "privacy": "protected",
998
- "return": {
999
- "type": {
1000
- "text": "Promise<void>"
1001
- }
1002
- }
1871
+ "kind": "field",
1872
+ "name": "center",
1873
+ "type": {
1874
+ "text": "LngLatLike | undefined"
1875
+ },
1876
+ "privacy": "public",
1877
+ "attribute": "center"
1003
1878
  },
1004
1879
  {
1005
- "kind": "method",
1006
- "name": "load",
1880
+ "kind": "field",
1881
+ "name": "zoom",
1882
+ "type": {
1883
+ "text": "number | undefined"
1884
+ },
1007
1885
  "privacy": "public",
1008
- "description": "Load map sources, layers and events"
1886
+ "attribute": "zoom"
1009
1887
  },
1010
1888
  {
1011
- "kind": "method",
1012
- "name": "unload",
1013
- "privacy": "public"
1889
+ "kind": "field",
1890
+ "name": "showGeoCodingControl",
1891
+ "type": {
1892
+ "text": "boolean"
1893
+ },
1894
+ "privacy": "public",
1895
+ "default": "false",
1896
+ "attribute": "showGeoCodingControl"
1014
1897
  },
1015
1898
  {
1016
- "kind": "method",
1017
- "name": "_onMapClick",
1018
- "privacy": "protected",
1019
- "parameters": [
1020
- {
1021
- "name": "lngLat",
1022
- "type": {
1023
- "text": "LngLat"
1024
- }
1025
- },
1026
- {
1027
- "name": "doubleClicked",
1028
- "default": "false",
1029
- "type": {
1030
- "text": "boolean"
1031
- }
1032
- }
1033
- ]
1899
+ "kind": "field",
1900
+ "name": "showBoundaryBoxControl",
1901
+ "type": {
1902
+ "text": "boolean"
1903
+ },
1904
+ "privacy": "public",
1905
+ "default": "false",
1906
+ "attribute": "showBoundaryBoxControl"
1034
1907
  },
1035
1908
  {
1036
- "kind": "method",
1037
- "name": "_loadGeoJSON",
1038
- "privacy": "protected",
1039
- "parameters": [
1040
- {
1041
- "name": "geoJsonConfig",
1042
- "optional": true,
1043
- "type": {
1044
- "text": "GeoJsonConfig"
1045
- }
1046
- }
1047
- ]
1909
+ "kind": "field",
1910
+ "name": "useZoomControl",
1911
+ "type": {
1912
+ "text": "boolean"
1913
+ },
1914
+ "privacy": "public",
1915
+ "default": "true",
1916
+ "attribute": "useZoomControl"
1048
1917
  },
1049
1918
  {
1050
- "kind": "method",
1051
- "name": "groupSourcesByGeometryType",
1052
- "privacy": "public",
1053
- "return": {
1054
- "type": {
1055
- "text": "Map<string, Feature[]> | undefined"
1056
- }
1919
+ "kind": "field",
1920
+ "name": "geoJson",
1921
+ "type": {
1922
+ "text": "GeoJsonConfig | undefined"
1057
1923
  },
1058
- "parameters": [
1059
- {
1060
- "name": "sources",
1061
- "type": {
1062
- "text": "FeatureCollection"
1063
- }
1064
- }
1065
- ]
1924
+ "privacy": "public",
1925
+ "attribute": "geoJson"
1066
1926
  },
1067
1927
  {
1068
- "kind": "method",
1069
- "name": "addGeoJSONSource",
1070
- "privacy": "public",
1071
- "return": {
1072
- "type": {
1073
- "text": "{ source: GeoJSONSourceSpecification, sourceId: string } | undefined"
1074
- }
1928
+ "kind": "field",
1929
+ "name": "showGeoJson",
1930
+ "type": {
1931
+ "text": "boolean"
1075
1932
  },
1076
- "parameters": [
1077
- {
1078
- "name": "source",
1079
- "type": {
1080
- "text": "GeoJSONSourceSpecification"
1081
- }
1082
- }
1083
- ]
1933
+ "privacy": "public",
1934
+ "default": "true",
1935
+ "attribute": "showGeoJson"
1084
1936
  },
1085
1937
  {
1086
- "kind": "method",
1087
- "name": "addGeoJSONLayer",
1938
+ "kind": "field",
1939
+ "name": "boundary",
1940
+ "type": {
1941
+ "text": "string[]"
1942
+ },
1088
1943
  "privacy": "public",
1089
- "parameters": [
1090
- {
1091
- "name": "typeString",
1092
- "type": {
1093
- "text": "string"
1094
- }
1095
- },
1096
- {
1097
- "name": "sourceId",
1098
- "type": {
1099
- "text": "string"
1100
- }
1101
- }
1102
- ]
1944
+ "default": "[]",
1945
+ "attribute": "boundary"
1103
1946
  },
1104
1947
  {
1105
- "kind": "method",
1106
- "name": "addMarker",
1107
- "privacy": "public",
1108
- "parameters": [
1109
- {
1110
- "name": "marker",
1111
- "type": {
1112
- "text": "OrMapMarker"
1113
- }
1114
- }
1115
- ]
1948
+ "kind": "field",
1949
+ "name": "controls",
1950
+ "type": {
1951
+ "text": "(IControl | [IControl, ControlPosition?])[] | undefined"
1952
+ },
1953
+ "privacy": "public"
1116
1954
  },
1117
1955
  {
1118
- "kind": "method",
1119
- "name": "_clearMarker",
1956
+ "kind": "field",
1957
+ "name": "_initCallback",
1958
+ "type": {
1959
+ "text": "EventCallback | undefined"
1960
+ },
1961
+ "privacy": "protected"
1962
+ },
1963
+ {
1964
+ "kind": "field",
1965
+ "name": "_map",
1966
+ "type": {
1967
+ "text": "AssetMap | undefined"
1968
+ },
1969
+ "privacy": "protected"
1970
+ },
1971
+ {
1972
+ "kind": "field",
1973
+ "name": "_loaded",
1974
+ "type": {
1975
+ "text": "boolean"
1976
+ },
1120
1977
  "privacy": "protected",
1121
- "parameters": [
1122
- {
1123
- "name": "id",
1124
- "type": {
1125
- "text": "string"
1126
- }
1127
- }
1128
- ]
1978
+ "default": "false"
1129
1979
  },
1130
1980
  {
1131
- "kind": "method",
1132
- "name": "_updateMarkers",
1981
+ "kind": "field",
1982
+ "name": "_resizeObserver",
1983
+ "type": {
1984
+ "text": "ResizeObserver | undefined"
1985
+ },
1133
1986
  "privacy": "protected"
1134
1987
  },
1135
1988
  {
1136
- "kind": "method",
1137
- "name": "addAssetMarker",
1138
- "privacy": "public",
1139
- "parameters": [
1140
- {
1141
- "name": "assetId",
1142
- "type": {
1143
- "text": "string"
1144
- }
1145
- },
1146
- {
1147
- "name": "assetName",
1148
- "type": {
1149
- "text": "string"
1150
- }
1151
- },
1152
- {
1153
- "name": "assetType",
1154
- "type": {
1155
- "text": "string"
1156
- }
1157
- },
1158
- {
1159
- "name": "long",
1160
- "type": {
1161
- "text": "number"
1162
- }
1163
- },
1164
- {
1165
- "name": "lat",
1166
- "type": {
1167
- "text": "number"
1168
- }
1169
- },
1170
- {
1171
- "name": "asset",
1172
- "type": {
1173
- "text": "Asset"
1174
- }
1175
- }
1176
- ]
1989
+ "kind": "field",
1990
+ "name": "_mapContainer",
1991
+ "type": {
1992
+ "text": "HTMLElement | undefined"
1993
+ },
1994
+ "privacy": "protected"
1177
1995
  },
1178
1996
  {
1179
- "kind": "method",
1180
- "name": "cleanUpAssetMarkers",
1181
- "privacy": "public",
1182
- "return": {
1183
- "type": {
1184
- "text": "void"
1185
- }
1186
- }
1997
+ "kind": "field",
1998
+ "name": "_slotElement",
1999
+ "type": {
2000
+ "text": "HTMLSlotElement | undefined"
2001
+ },
2002
+ "privacy": "protected"
1187
2003
  },
1188
2004
  {
1189
2005
  "kind": "method",
1190
- "name": "removeMarker",
2006
+ "name": "addAsset",
1191
2007
  "privacy": "public",
1192
2008
  "parameters": [
1193
2009
  {
1194
- "name": "marker",
2010
+ "name": "asset",
1195
2011
  "type": {
1196
- "text": "OrMapMarker"
2012
+ "text": "AssetWithLocation"
1197
2013
  }
1198
2014
  }
1199
- ]
2015
+ ],
2016
+ "type": {
2017
+ "text": "addAsset(asset: AssetWithLocation) => void"
2018
+ }
1200
2019
  },
1201
2020
  {
1202
2021
  "kind": "method",
1203
- "name": "onMarkerChanged",
2022
+ "name": "addAssets",
1204
2023
  "privacy": "public",
1205
2024
  "parameters": [
1206
2025
  {
1207
- "name": "marker",
1208
- "type": {
1209
- "text": "OrMapMarker"
1210
- }
1211
- },
1212
- {
1213
- "name": "prop",
2026
+ "name": "assets",
1214
2027
  "type": {
1215
- "text": "string"
2028
+ "text": "AssetWithLocation[]"
1216
2029
  }
1217
2030
  }
1218
- ]
2031
+ ],
2032
+ "type": {
2033
+ "text": "addAssets(assets: AssetWithLocation[]) => void"
2034
+ }
1219
2035
  },
1220
2036
  {
1221
2037
  "kind": "method",
1222
- "name": "_updateMarkerPosition",
1223
- "privacy": "protected",
2038
+ "name": "updateAttribute",
2039
+ "privacy": "public",
1224
2040
  "parameters": [
1225
2041
  {
1226
- "name": "marker",
2042
+ "name": "event",
1227
2043
  "type": {
1228
- "text": "OrMapMarker"
2044
+ "text": "AttributeEvent"
1229
2045
  }
1230
2046
  }
1231
- ]
2047
+ ],
2048
+ "type": {
2049
+ "text": "updateAttribute(event: AttributeEvent) => void"
2050
+ }
1232
2051
  },
1233
2052
  {
1234
2053
  "kind": "method",
1235
- "name": "_updateMarkerElement",
1236
- "privacy": "protected",
2054
+ "name": "removeAssets",
2055
+ "privacy": "public",
1237
2056
  "parameters": [
1238
2057
  {
1239
- "name": "marker",
1240
- "type": {
1241
- "text": "OrMapMarker"
1242
- }
1243
- },
1244
- {
1245
- "name": "doAdd",
2058
+ "name": "ids",
1246
2059
  "type": {
1247
- "text": "boolean"
2060
+ "text": "string[]"
1248
2061
  }
1249
2062
  }
1250
- ]
2063
+ ],
2064
+ "type": {
2065
+ "text": "removeAssets(ids: string[]) => void"
2066
+ }
1251
2067
  },
1252
2068
  {
1253
2069
  "kind": "method",
1254
- "name": "_removeMarkerRadius",
1255
- "privacy": "protected",
1256
- "parameters": [
1257
- {
1258
- "name": "marker",
1259
- "type": {
1260
- "text": "OrMapMarker"
1261
- }
2070
+ "name": "removeAllAssets",
2071
+ "privacy": "public",
2072
+ "return": {
2073
+ "type": {
2074
+ "text": "void"
1262
2075
  }
1263
- ]
2076
+ },
2077
+ "type": {
2078
+ "text": "removeAllAssets() => void"
2079
+ }
1264
2080
  },
1265
2081
  {
1266
2082
  "kind": "method",
1267
- "name": "_createMarkerRadius",
1268
- "privacy": "protected",
1269
- "parameters": [
1270
- {
1271
- "name": "marker",
1272
- "type": {
1273
- "text": "OrMapMarker"
1274
- }
1275
- }
1276
- ]
2083
+ "name": "refresh",
2084
+ "privacy": "public",
2085
+ "type": {
2086
+ "text": "refresh() => void"
2087
+ }
1277
2088
  },
1278
2089
  {
1279
2090
  "kind": "method",
1280
- "name": "createBoundaryBox",
2091
+ "name": "loadMap",
1281
2092
  "privacy": "public",
1282
- "parameters": [
1283
- {
1284
- "name": "boundsArray",
1285
- "default": "[]",
1286
- "type": {
1287
- "text": "string[]"
1288
- }
1289
- }
1290
- ]
2093
+ "type": {
2094
+ "text": "loadMap() => void"
2095
+ }
1291
2096
  },
1292
2097
  {
1293
2098
  "kind": "method",
1294
- "name": "_addMarkerClickHandler",
1295
- "privacy": "protected",
1296
- "parameters": [
1297
- {
1298
- "name": "marker",
1299
- "type": {
1300
- "text": "OrMapMarker"
1301
- }
1302
- },
1303
- {
1304
- "name": "elem",
1305
- "type": {
1306
- "text": "HTMLElement"
1307
- }
1308
- }
1309
- ]
2099
+ "name": "resize",
2100
+ "privacy": "public",
2101
+ "type": {
2102
+ "text": "resize() => void"
2103
+ }
1310
2104
  },
1311
2105
  {
1312
2106
  "kind": "method",
1313
- "name": "_removeMarkerClickHandler",
1314
- "privacy": "protected",
2107
+ "name": "flyTo",
2108
+ "privacy": "public",
1315
2109
  "parameters": [
1316
2110
  {
1317
- "name": "marker",
2111
+ "name": "coordinates",
2112
+ "optional": true,
1318
2113
  "type": {
1319
- "text": "OrMapMarker"
2114
+ "text": "LngLatLike"
1320
2115
  }
1321
2116
  },
1322
2117
  {
1323
- "name": "elem",
1324
- "type": {
1325
- "text": "HTMLElement"
1326
- }
1327
- }
1328
- ]
1329
- },
1330
- {
1331
- "kind": "method",
1332
- "name": "_forwardGeocode",
1333
- "privacy": "protected",
1334
- "parameters": [
1335
- {
1336
- "name": "config",
1337
- "type": {
1338
- "text": "any"
1339
- }
1340
- }
1341
- ]
1342
- },
1343
- {
1344
- "kind": "method",
1345
- "name": "_reverseGeocode",
1346
- "privacy": "public",
1347
- "parameters": [
1348
- {
1349
- "name": "config",
2118
+ "name": "zoom",
2119
+ "optional": true,
1350
2120
  "type": {
1351
- "text": "{lat: number, lon:number}"
2121
+ "text": "number"
1352
2122
  }
1353
2123
  }
1354
- ]
1355
- },
1356
- {
1357
- "kind": "method",
1358
- "name": "_initLongPressEvent",
1359
- "privacy": "protected"
2124
+ ],
2125
+ "type": {
2126
+ "text": "flyTo(coordinates?: LngLatLike, zoom?: number) => void"
2127
+ }
1360
2128
  },
1361
2129
  {
1362
2130
  "kind": "method",
1363
- "name": "_onLongPress",
1364
- "privacy": "protected",
2131
+ "name": "_removeMarker",
2132
+ "privacy": "public",
1365
2133
  "parameters": [
1366
2134
  {
1367
- "name": "lngLat",
2135
+ "name": "marker",
1368
2136
  "type": {
1369
- "text": "LngLat"
2137
+ "text": "OrMapMarker"
1370
2138
  }
1371
2139
  }
1372
- ]
2140
+ ],
2141
+ "type": {
2142
+ "text": "_removeMarker(marker: OrMapMarker) => void"
2143
+ }
1373
2144
  },
1374
2145
  {
1375
2146
  "kind": "method",
1376
- "name": "_onGeocodeChange",
2147
+ "name": "_onMarkerChangedEvent",
1377
2148
  "privacy": "protected",
1378
2149
  "parameters": [
1379
2150
  {
1380
- "name": "geocode",
2151
+ "name": "evt",
1381
2152
  "type": {
1382
- "text": "any"
2153
+ "text": "OrMapMarkerChangedEvent"
1383
2154
  }
1384
2155
  }
1385
2156
  ]
1386
2157
  }
1387
- ]
2158
+ ],
2159
+ "attributes": [
2160
+ {
2161
+ "name": "cluster",
2162
+ "type": {
2163
+ "text": "ClusterConfig | undefined"
2164
+ },
2165
+ "fieldName": "cluster"
2166
+ },
2167
+ {
2168
+ "name": "center",
2169
+ "type": {
2170
+ "text": "LngLatLike | undefined"
2171
+ },
2172
+ "fieldName": "center"
2173
+ },
2174
+ {
2175
+ "name": "zoom",
2176
+ "type": {
2177
+ "text": "number | undefined"
2178
+ },
2179
+ "fieldName": "zoom"
2180
+ },
2181
+ {
2182
+ "name": "showGeoCodingControl",
2183
+ "type": {
2184
+ "text": "boolean"
2185
+ },
2186
+ "default": "false",
2187
+ "fieldName": "showGeoCodingControl"
2188
+ },
2189
+ {
2190
+ "name": "showBoundaryBoxControl",
2191
+ "type": {
2192
+ "text": "boolean"
2193
+ },
2194
+ "default": "false",
2195
+ "fieldName": "showBoundaryBoxControl"
2196
+ },
2197
+ {
2198
+ "name": "useZoomControl",
2199
+ "type": {
2200
+ "text": "boolean"
2201
+ },
2202
+ "default": "true",
2203
+ "fieldName": "useZoomControl"
2204
+ },
2205
+ {
2206
+ "name": "geoJson",
2207
+ "type": {
2208
+ "text": "GeoJsonConfig | undefined"
2209
+ },
2210
+ "fieldName": "geoJson"
2211
+ },
2212
+ {
2213
+ "name": "showGeoJson",
2214
+ "type": {
2215
+ "text": "boolean"
2216
+ },
2217
+ "default": "true",
2218
+ "fieldName": "showGeoJson"
2219
+ },
2220
+ {
2221
+ "name": "boundary",
2222
+ "type": {
2223
+ "text": "string[]"
2224
+ },
2225
+ "default": "[]",
2226
+ "fieldName": "boundary"
2227
+ }
2228
+ ],
2229
+ "superclass": {
2230
+ "name": "LitElement",
2231
+ "package": "lit"
2232
+ },
2233
+ "tagName": "or-map",
2234
+ "customElement": true,
2235
+ "modulePath": "src/index.ts",
2236
+ "definitionPath": "src/index.ts"
1388
2237
  }
1389
2238
  ],
1390
2239
  "exports": [
1391
2240
  {
1392
2241
  "kind": "js",
1393
- "name": "MapWidget",
2242
+ "name": "Util",
2243
+ "declaration": {
2244
+ "name": "Util",
2245
+ "module": "src/index.ts"
2246
+ }
2247
+ },
2248
+ {
2249
+ "kind": "js",
2250
+ "name": "LngLatLike",
2251
+ "declaration": {
2252
+ "name": "LngLatLike",
2253
+ "module": "src/index.ts"
2254
+ }
2255
+ },
2256
+ {
2257
+ "kind": "js",
2258
+ "name": "LngLat",
2259
+ "declaration": {
2260
+ "name": "LngLat",
2261
+ "module": "src/index.ts"
2262
+ }
2263
+ },
2264
+ {
2265
+ "kind": "js",
2266
+ "name": "*",
2267
+ "declaration": {
2268
+ "name": "*",
2269
+ "module": "src/markers/or-map-marker"
2270
+ }
2271
+ },
2272
+ {
2273
+ "kind": "js",
2274
+ "name": "*",
2275
+ "declaration": {
2276
+ "name": "*",
2277
+ "module": "src/markers/or-map-marker-asset"
2278
+ }
2279
+ },
2280
+ {
2281
+ "kind": "js",
2282
+ "name": "*",
2283
+ "declaration": {
2284
+ "name": "*",
2285
+ "module": "src/markers/or-cluster-marker"
2286
+ }
2287
+ },
2288
+ {
2289
+ "kind": "js",
2290
+ "name": "IControl",
2291
+ "declaration": {
2292
+ "name": "IControl",
2293
+ "module": "maplibre-gl"
2294
+ }
2295
+ },
2296
+ {
2297
+ "kind": "js",
2298
+ "name": "*",
2299
+ "declaration": {
2300
+ "name": "*",
2301
+ "module": "src/or-map-asset-card"
2302
+ }
2303
+ },
2304
+ {
2305
+ "kind": "js",
2306
+ "name": "*",
2307
+ "declaration": {
2308
+ "name": "*",
2309
+ "module": "src/or-map-legend"
2310
+ }
2311
+ },
2312
+ {
2313
+ "kind": "js",
2314
+ "name": "*",
2315
+ "declaration": {
2316
+ "name": "*",
2317
+ "module": "src/types"
2318
+ }
2319
+ },
2320
+ {
2321
+ "kind": "js",
2322
+ "name": "OrMapLoadedEvent",
2323
+ "declaration": {
2324
+ "name": "OrMapLoadedEvent",
2325
+ "module": "src/index.ts"
2326
+ }
2327
+ },
2328
+ {
2329
+ "kind": "js",
2330
+ "name": "OrMapClickedEvent",
2331
+ "declaration": {
2332
+ "name": "OrMapClickedEvent",
2333
+ "module": "src/index.ts"
2334
+ }
2335
+ },
2336
+ {
2337
+ "kind": "js",
2338
+ "name": "OrMapLongPressEvent",
2339
+ "declaration": {
2340
+ "name": "OrMapLongPressEvent",
2341
+ "module": "src/index.ts"
2342
+ }
2343
+ },
2344
+ {
2345
+ "kind": "js",
2346
+ "name": "OrMapGeocoderChangeEvent",
2347
+ "declaration": {
2348
+ "name": "OrMapGeocoderChangeEvent",
2349
+ "module": "src/index.ts"
2350
+ }
2351
+ },
2352
+ {
2353
+ "kind": "js",
2354
+ "name": "OrMapMarkersChangedEvent",
2355
+ "declaration": {
2356
+ "name": "OrMapMarkersChangedEvent",
2357
+ "module": "src/index.ts"
2358
+ }
2359
+ },
2360
+ {
2361
+ "kind": "js",
2362
+ "name": "geoJsonPointInputTemplateProvider",
2363
+ "declaration": {
2364
+ "name": "geoJsonPointInputTemplateProvider",
2365
+ "module": "src/index.ts"
2366
+ }
2367
+ },
2368
+ {
2369
+ "kind": "js",
2370
+ "name": "OrMap",
2371
+ "declaration": {
2372
+ "name": "OrMap",
2373
+ "module": "src/index.ts"
2374
+ }
2375
+ },
2376
+ {
2377
+ "kind": "custom-element-definition",
2378
+ "name": "or-map",
1394
2379
  "declaration": {
1395
- "name": "MapWidget",
1396
- "module": "src/mapwidget.ts"
2380
+ "name": "OrMap",
2381
+ "module": "src/index.ts"
1397
2382
  }
1398
2383
  }
1399
2384
  ]
@@ -1684,20 +2669,21 @@
1684
2669
  },
1685
2670
  {
1686
2671
  "kind": "field",
1687
- "name": "_assetTypesInfo",
2672
+ "name": "excludedTypes",
1688
2673
  "type": {
1689
- "text": "any"
2674
+ "text": "string[]"
1690
2675
  },
1691
- "privacy": "protected"
2676
+ "privacy": "public",
2677
+ "default": "[]",
2678
+ "attribute": "excludedTypes"
1692
2679
  },
1693
2680
  {
1694
2681
  "kind": "field",
1695
- "name": "_excludedTypes",
2682
+ "name": "_assetTypesInfo",
1696
2683
  "type": {
1697
- "text": "string[]"
2684
+ "text": "any"
1698
2685
  },
1699
- "privacy": "protected",
1700
- "default": "[]"
2686
+ "privacy": "protected"
1701
2687
  },
1702
2688
  {
1703
2689
  "kind": "field",
@@ -1728,6 +2714,14 @@
1728
2714
  },
1729
2715
  "default": "[]",
1730
2716
  "fieldName": "assetTypes"
2717
+ },
2718
+ {
2719
+ "name": "excludedTypes",
2720
+ "type": {
2721
+ "text": "string[]"
2722
+ },
2723
+ "default": "[]",
2724
+ "fieldName": "excludedTypes"
1731
2725
  }
1732
2726
  ],
1733
2727
  "superclass": {
@@ -1845,6 +2839,12 @@
1845
2839
  }
1846
2840
  }
1847
2841
  ]
2842
+ },
2843
+ {
2844
+ "kind": "javascript-module",
2845
+ "path": "src/types.ts",
2846
+ "declarations": [],
2847
+ "exports": []
1848
2848
  }
1849
2849
  ]
1850
2850
  }