@octostar/map-component 0.7.0 → 0.8.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 (50) hide show
  1. package/README.md +49 -0
  2. package/dist/index.mjs +1537 -1062
  3. package/dist/index.mjs.map +1 -1
  4. package/dist/types/components/action-panel.d.ts.map +1 -1
  5. package/dist/types/components/cluster-pie-chart.d.ts +1 -1
  6. package/dist/types/components/cluster-pie-chart.d.ts.map +1 -1
  7. package/dist/types/components/drawing-toolbar.d.ts.map +1 -1
  8. package/dist/types/components/icon-picker.d.ts.map +1 -1
  9. package/dist/types/components/ingest-progress-overlay.d.ts.map +1 -1
  10. package/dist/types/components/layers-panel.d.ts +3 -0
  11. package/dist/types/components/layers-panel.d.ts.map +1 -1
  12. package/dist/types/components/map-drop-zone.d.ts.map +1 -1
  13. package/dist/types/components/map-editor-canvas.d.ts.map +1 -1
  14. package/dist/types/components/properties-panel.d.ts +1 -1
  15. package/dist/types/components/properties-panel.d.ts.map +1 -1
  16. package/dist/types/components/status-indicator.d.ts.map +1 -1
  17. package/dist/types/components/timebar.d.ts +3 -7
  18. package/dist/types/components/timebar.d.ts.map +1 -1
  19. package/dist/types/index.d.ts +2 -0
  20. package/dist/types/index.d.ts.map +1 -1
  21. package/dist/types/lib/custom-layer-stack.d.ts +2 -0
  22. package/dist/types/lib/custom-layer-stack.d.ts.map +1 -1
  23. package/dist/types/lib/feature-cap.d.ts +25 -1
  24. package/dist/types/lib/feature-cap.d.ts.map +1 -1
  25. package/dist/types/lib/feature-stack.d.ts +0 -2
  26. package/dist/types/lib/feature-stack.d.ts.map +1 -1
  27. package/dist/types/lib/icon-catalog.d.ts +654 -0
  28. package/dist/types/lib/icon-catalog.d.ts.map +1 -1
  29. package/dist/types/lib/ingest-client.d.ts +9 -0
  30. package/dist/types/lib/ingest-client.d.ts.map +1 -1
  31. package/dist/types/lib/ingest-progress.d.ts +4 -3
  32. package/dist/types/lib/ingest-progress.d.ts.map +1 -1
  33. package/dist/types/lib/label-pinning.d.ts +1 -1
  34. package/dist/types/lib/label-pinning.d.ts.map +1 -1
  35. package/dist/types/lib/layer-colors.d.ts +2 -0
  36. package/dist/types/lib/layer-colors.d.ts.map +1 -1
  37. package/dist/types/lib/map-editor-api.d.ts +12 -1
  38. package/dist/types/lib/map-editor-api.d.ts.map +1 -1
  39. package/dist/types/lib/map-endpoints.d.ts +2 -1
  40. package/dist/types/lib/map-endpoints.d.ts.map +1 -1
  41. package/dist/types/lib/map-labels.d.ts +890 -0
  42. package/dist/types/lib/map-labels.d.ts.map +1 -0
  43. package/dist/types/lib/paint-feature.d.ts.map +1 -1
  44. package/dist/types/lib/property-utils.d.ts +3 -1
  45. package/dist/types/lib/property-utils.d.ts.map +1 -1
  46. package/dist/types/lib/selection-overlay.d.ts +1 -1
  47. package/dist/types/lib/selection-overlay.d.ts.map +1 -1
  48. package/dist/types/lib/shard-registry.d.ts +2 -0
  49. package/dist/types/lib/shard-registry.d.ts.map +1 -1
  50. package/package.json +1 -1
@@ -0,0 +1,890 @@
1
+ /**
2
+ * Layer names the map writes into data stay English: hosts match layers by
3
+ * name across users' maps (share links), whatever language each user reads.
4
+ */
5
+ export declare const DEFAULT_LAYER_ID = "default";
6
+ export declare const DEFAULT_LAYER_NAME = "Default Layer";
7
+ /**
8
+ * Every string the map draws itself, in English. A host that localizes passes
9
+ * a complete `MapLabels` through `MapEditorCanvas`'s `labels` prop.
10
+ */
11
+ export declare const DEFAULT_MAP_LABELS: {
12
+ canvas: {
13
+ defaultLayerName: string;
14
+ newTextLabel: string;
15
+ clusterOther: string;
16
+ mapInitFailedTitle: string;
17
+ mapInitFailedSubtitle: string;
18
+ mapInitFailedFallback: string;
19
+ refreshPage: string;
20
+ measureDistance: string;
21
+ measureArea: string;
22
+ measureDistanceHint: string;
23
+ measureAreaHint: string;
24
+ measureClearHint: string;
25
+ timelineToggle: string;
26
+ layersToggle: string;
27
+ layersToggleAriaLabel: string;
28
+ unsavedCount: (count: number) => string;
29
+ createPointFeature: string;
30
+ noEditableLayer: string;
31
+ tooltipId: string;
32
+ morePointsHint: string;
33
+ traceDuration: string;
34
+ traceDistance: string;
35
+ traceAvgSpeed: string;
36
+ traceGroup: (group: string) => string;
37
+ statusFeatureCount: (count: number) => string;
38
+ statusSelectedCount: (count: number) => string;
39
+ };
40
+ toasts: {
41
+ screenshotFailed: string;
42
+ screenshotMapNotReady: string;
43
+ screenshotNotRendered: string;
44
+ noVisibleLayers: string;
45
+ noVisibleLayersDescription: string;
46
+ noLayerSelected: string;
47
+ noLayerSelectedDescription: string;
48
+ cannotClearHpLayer: string;
49
+ cannotClearHpLayerDescription: string;
50
+ layerEmpty: string;
51
+ layerEmptyDescription: string;
52
+ layerCleared: string;
53
+ layerClearedDescription: (layerName: string) => string;
54
+ terrainUnavailable: string;
55
+ terrainUnavailableDescription: string;
56
+ terrainEnabled: string;
57
+ terrainEnabledDescription: string;
58
+ exportFailed: string;
59
+ exportFailedDescription: string;
60
+ featuresAdded: string;
61
+ featuresAddedDescription: ({ count, layerName }: {
62
+ count: number;
63
+ layerName: string;
64
+ }) => string;
65
+ layerCreated: string;
66
+ searchFailed: string;
67
+ searchFailedDescription: string;
68
+ mapRestored: string;
69
+ mapRestoredDescription: ({ layerCount, featureCount }: {
70
+ layerCount: number;
71
+ featureCount: number;
72
+ }) => string;
73
+ featuresLoaded: string;
74
+ featuresLoadedDescription: (count: number) => string;
75
+ loadFailed: string;
76
+ loadFailedDescription: string;
77
+ saved: string;
78
+ savedDescription: string;
79
+ saveFailed: string;
80
+ saveFailedDescription: string;
81
+ noFeatures: string;
82
+ noFeaturesDescription: string;
83
+ geojsonLoadFailed: string;
84
+ invalidFile: string;
85
+ emptyGeojson: string;
86
+ /** `reprojectedFrom` is the source CRS when the file was reprojected, otherwise null. */
87
+ hpLayerCreatedDescription: ({ layerName, count, reprojectedFrom }: {
88
+ layerName: string;
89
+ count: number;
90
+ reprojectedFrom: string | null;
91
+ }) => string;
92
+ dataViewingLayer: string;
93
+ dataViewingLayerDescription: string;
94
+ hostOwnedLayer: string;
95
+ hostOwnedLayerDescription: string;
96
+ noLayerToLoadInto: string;
97
+ noLayerToLoadIntoDescription: string;
98
+ geojsonLoaded: string;
99
+ geojsonLoadedDescription: ({ count, reprojectedFrom, layerHidden }: {
100
+ count: number;
101
+ reprojectedFrom: string | null;
102
+ layerHidden: boolean;
103
+ }) => string;
104
+ layerAdded: string;
105
+ layerAddedDescription: ({ layerName, count, reprojectedFrom }: {
106
+ layerName: string;
107
+ count: number;
108
+ reprojectedFrom: string | null;
109
+ }) => string;
110
+ };
111
+ featureCap: {
112
+ title: string;
113
+ layersOverLimit: ({ layerCount, max, dropped }: {
114
+ layerCount: number;
115
+ max: number;
116
+ dropped: number;
117
+ }) => string;
118
+ layerAlreadyHeld: ({ layerName, existing, max, kept, dropped }: {
119
+ layerName: string;
120
+ existing: number;
121
+ max: number;
122
+ kept: number;
123
+ dropped: number;
124
+ }) => string;
125
+ firstFeaturesAdded: ({ kept, sourceCount, layerName, dropped }: {
126
+ kept: number;
127
+ sourceCount: number;
128
+ layerName: string;
129
+ dropped: number;
130
+ }) => string;
131
+ restoreNote: string;
132
+ };
133
+ ingest: {
134
+ importing: (name: string) => string;
135
+ rendering: (name: string) => string;
136
+ preparingDownload: (name: string) => string;
137
+ progress: ({ received, total }: {
138
+ received: number;
139
+ total: number;
140
+ }) => string;
141
+ invalidFormat: string;
142
+ noFeatures: string;
143
+ workerUnresponsive: string;
144
+ workerCrashed: string;
145
+ };
146
+ dropZone: {
147
+ title: string;
148
+ subtitle: string;
149
+ };
150
+ mapOptions: {
151
+ title: string;
152
+ load: string;
153
+ uploadMap: string;
154
+ loadFromWorkspace: string;
155
+ save: string;
156
+ downloadMap: string;
157
+ saveToWorkspace: string;
158
+ autoShowLabels: string;
159
+ autoLabelThreshold: string;
160
+ visibleFeatures: string;
161
+ labelsShown: string;
162
+ labelsHidden: string;
163
+ fitToAllFeatures: string;
164
+ terrain3d: string;
165
+ basemapStreets: string;
166
+ basemapSatellite: string;
167
+ basemapDark: string;
168
+ };
169
+ layersPanel: {
170
+ title: string;
171
+ createLayer: string;
172
+ loadAsNewLayer: string;
173
+ searchAndAdd: string;
174
+ groupLayerCount: (count: number) => string;
175
+ unsavedCount: (count: number) => string;
176
+ hpLayerTitle: string;
177
+ hpLayerDescription: string;
178
+ editingThisLayer: string;
179
+ clickToEditLayer: string;
180
+ loadGeojson: string;
181
+ saveGeojson: string;
182
+ neverHideLabels: string;
183
+ labelsOffForLayer: string;
184
+ neverHideLabelsHint: string;
185
+ fitMapToLayer: string;
186
+ deleteLayer: string;
187
+ deleteLayerConfirmTitle: (layerName: string) => string;
188
+ deleteLayerConfirmContent: string;
189
+ deleteLayerConfirmOk: string;
190
+ deleteLayerConfirmCancel: string;
191
+ moveSelectedHere: (count: number) => string;
192
+ };
193
+ layerSettings: {
194
+ pointFeatures: string;
195
+ traceLines: string;
196
+ connectAllPoints: string;
197
+ groupBy: (field: string) => string;
198
+ heatmap: string;
199
+ intensity: string;
200
+ radius: string;
201
+ clustering: string;
202
+ simpleCount: string;
203
+ pieBy: (field: string) => string;
204
+ showPointDots: string;
205
+ countByField: string;
206
+ selectNumericField: string;
207
+ colorBubblesByValue: string;
208
+ altitudeDisplay: string;
209
+ altitude3d: string;
210
+ altitudeFlat: string;
211
+ altitudeBoth: string;
212
+ visualSettings: string;
213
+ labels: string;
214
+ labelFromName: string;
215
+ labelFromField: string;
216
+ labelFixedText: string;
217
+ selectField: string;
218
+ enterLabelText: string;
219
+ size: string;
220
+ defaultSize: string;
221
+ sizeByField: string;
222
+ overrideSize: string;
223
+ color: string;
224
+ useFeatureColor: string;
225
+ colorByField: string;
226
+ fixedColor: string;
227
+ categories: string;
228
+ gradient: string;
229
+ pointIcon: string;
230
+ legend: string;
231
+ legendTop: (count: number) => string;
232
+ legendSampled: string;
233
+ filterValues: string;
234
+ noMatches: string;
235
+ showLess: string;
236
+ showAll: (count: number) => string;
237
+ };
238
+ drawingToolbar: {
239
+ drawingTools: string;
240
+ clickSelect: string;
241
+ rectangleSelect: string;
242
+ polygonSelect: string;
243
+ circleSelect: string;
244
+ selectTool: string;
245
+ switchSelectionMode: string;
246
+ filterArea: string;
247
+ clearFilter: string;
248
+ measureDistance: string;
249
+ measureArea: string;
250
+ switchMeasureMode: string;
251
+ searchAndNavigate: string;
252
+ fitToData: string;
253
+ noEditableLayer: string;
254
+ noEditableLayerHint: string;
255
+ editMode: string;
256
+ searchAndAdd: string;
257
+ dropPoint: string;
258
+ drawLine: string;
259
+ drawPolygon: string;
260
+ drawRectangle: string;
261
+ drawPolygonOrRectangle: string;
262
+ drawPolygonOrRectangleAriaLabel: string;
263
+ addText: string;
264
+ drawArrow: string;
265
+ drawCircle: string;
266
+ undo: string;
267
+ redo: string;
268
+ deleteSelected: (count: number) => string;
269
+ deleteSelectedAriaLabel: string;
270
+ clearAll: (count: number) => string;
271
+ moreTools: string;
272
+ clearAllConfirmTitle: string;
273
+ clearAllConfirmContent: (count: number) => string;
274
+ clearAllConfirmOk: string;
275
+ clearAllConfirmCancel: string;
276
+ };
277
+ navigate: {
278
+ title: string;
279
+ addressPlaceholder: string;
280
+ searchAddress: string;
281
+ orCoordinates: string;
282
+ latitude: string;
283
+ longitude: string;
284
+ latitudePlaceholder: string;
285
+ longitudePlaceholder: string;
286
+ dropPoint: string;
287
+ goToCoordinates: string;
288
+ locationNotFound: string;
289
+ locationNotFoundDescription: string;
290
+ searchError: string;
291
+ searchErrorDescription: string;
292
+ };
293
+ coordinates: {
294
+ invalidCoordinates: string;
295
+ invalidCoordinatesDescription: string;
296
+ invalidLatitude: string;
297
+ invalidLongitude: string;
298
+ latitudeOutOfRange: string;
299
+ longitudeOutOfRange: string;
300
+ notANumber: string;
301
+ };
302
+ featureSearch: {
303
+ title: string;
304
+ placeholder: string;
305
+ titlesMode: string;
306
+ fullJsonMode: string;
307
+ /** `more` is true when the result list stopped at its cap. */
308
+ resultCount: ({ count, more }: {
309
+ count: number;
310
+ more: boolean;
311
+ }) => string;
312
+ totalCount: (count: number) => string;
313
+ noResults: string;
314
+ typeToSearch: (count: number) => string;
315
+ untitledFeature: string;
316
+ unknownGeometry: string;
317
+ };
318
+ propertiesPanel: {
319
+ showingFirstSelected: ({ shown, total }: {
320
+ shown: number;
321
+ total: number;
322
+ }) => string;
323
+ previousOverlappingPoint: string;
324
+ nextOverlappingPoint: string;
325
+ selectedFeatures: (count: number) => string;
326
+ untitledFeature: string;
327
+ hpLayerHint: string;
328
+ hpBadge: string;
329
+ viewBadge: string;
330
+ openInNewTab: string;
331
+ actions: string;
332
+ copyToLayer: string;
333
+ moveToLayer: string;
334
+ untitledLayer: string;
335
+ newLayer: string;
336
+ newLayerPrompt: string;
337
+ changeIcon: string;
338
+ setIcon: string;
339
+ deleteFeatures: (count: number) => string;
340
+ deleteFeature: string;
341
+ entityCards: string;
342
+ entityCardsCount: (count: number) => string;
343
+ properties: string;
344
+ noEntityCardProvider: string;
345
+ selectSingleToSeeProperties: string;
346
+ selectSingleToEdit: string;
347
+ pointDetail: string;
348
+ layer: string;
349
+ octostarRecord: string;
350
+ localMapFeature: string;
351
+ unsaved: string;
352
+ createEntity: string;
353
+ untitledRecord: string;
354
+ refreshFromRecord: string;
355
+ recordFields: string;
356
+ id: string;
357
+ featureSaved: string;
358
+ savedTo: (workspace: string) => string;
359
+ saveFailed: string;
360
+ saveFeatureFailed: string;
361
+ refreshed: string;
362
+ refreshedDescription: string;
363
+ refreshFailed: string;
364
+ };
365
+ featureFields: {
366
+ label: string;
367
+ name: string;
368
+ enterLabel: string;
369
+ featureName: string;
370
+ noName: string;
371
+ icon: string;
372
+ type: string;
373
+ noType: string;
374
+ latLng: string;
375
+ centroidHint: string;
376
+ latitude: string;
377
+ longitude: string;
378
+ temporal: string;
379
+ dateCount: (count: number) => string;
380
+ start: string;
381
+ end: string;
382
+ style: string;
383
+ fontSize: string;
384
+ fontColor: string;
385
+ fontWeight: string;
386
+ fontWeightNormal: string;
387
+ fontWeightBold: string;
388
+ arrowSize: string;
389
+ stroke: string;
390
+ strokeColor: string;
391
+ strokeWidth: string;
392
+ strokeOpacity: string;
393
+ fill: string;
394
+ fillColor: string;
395
+ fillOpacity: string;
396
+ resetFillToStroke: string;
397
+ iconSize: string;
398
+ propertyKey: string;
399
+ propertyValue: string;
400
+ newProperty: string;
401
+ };
402
+ iconPicker: {
403
+ title: string;
404
+ searchPlaceholder: string;
405
+ allCategories: (count: number) => string;
406
+ categoryWithCount: ({ category, count }: {
407
+ category: string;
408
+ count: number;
409
+ }) => string;
410
+ noIconsFound: (query: string) => string;
411
+ noIconSelected: string;
412
+ clearIcon: string;
413
+ cancel: string;
414
+ emptyTrigger: string;
415
+ };
416
+ iconCategories: Record<"time" | "places" | "transport" | "food" | "nature" | "symbols" | "activities" | "work" | "shopping" | "communication" | "people" | "maritime" | "security" | "shapes" | "arrows", string>;
417
+ iconNames: Record<"search" | "map-pin" | "home" | "building" | "store" | "factory" | "construction" | "church" | "hospital" | "school" | "graduation" | "library" | "landmark" | "castle" | "mosque" | "stadium" | "tent" | "car" | "bus" | "train" | "plane" | "ship" | "bike" | "fuel" | "helicopter" | "rocket" | "motorcycle" | "taxi" | "truck" | "utensils" | "coffee" | "beer" | "wine" | "pizza" | "ice-cream" | "apple" | "cake" | "hamburger" | "trees" | "mountain" | "waves" | "sun" | "cloud" | "umbrella" | "flower" | "leaf" | "rainbow" | "snowflake" | "fire" | "volcano" | "heart" | "star" | "flag" | "alert" | "info" | "check" | "x-mark" | "zap" | "bell" | "peace" | "recycle" | "radioactive" | "biohazard" | "camera" | "music" | "film" | "gamepad" | "trophy" | "medal" | "sports" | "basketball" | "fishing" | "art" | "briefcase" | "wrench" | "hammer" | "gear" | "microscope" | "test-tube" | "computer" | "cart" | "gift" | "package" | "money" | "credit-card" | "phone" | "mail" | "globe" | "satellite" | "radio" | "tv" | "user" | "users" | "baby" | "dog" | "cat" | "bird" | "horse" | "fish" | "anchor" | "compass" | "lighthouse" | "sailboat" | "lock" | "key" | "shield" | "eye" | "police" | "siren" | "clock" | "calendar" | "bookmark" | "tag" | "pushpin" | "red-circle" | "blue-circle" | "green-circle" | "yellow-circle" | "orange-circle" | "purple-circle" | "white-circle" | "black-circle" | "red-square" | "blue-square" | "diamond" | "arrow-up" | "arrow-down" | "arrow-left" | "arrow-right" | "target", string>;
418
+ timebar: {
419
+ play: string;
420
+ pause: string;
421
+ reset: string;
422
+ cumulative: string;
423
+ toggle: string;
424
+ featureCount: (count: number) => string;
425
+ selectedCount: ({ selected, total }: {
426
+ selected: number;
427
+ total: number;
428
+ }) => string;
429
+ binEvents: (count: number) => string;
430
+ binEventsWithSelection: ({ count, selected }: {
431
+ count: number;
432
+ selected: number;
433
+ }) => string;
434
+ };
435
+ actionPanel: {
436
+ groupLabel: string;
437
+ saveTooltip: string;
438
+ saveAriaLabel: string;
439
+ save: string;
440
+ loadTooltip: string;
441
+ loadAriaLabel: string;
442
+ load: string;
443
+ };
444
+ };
445
+ /** Every user-facing string of the map component; see `DEFAULT_MAP_LABELS` for the English text. */
446
+ export type MapLabels = typeof DEFAULT_MAP_LABELS;
447
+ export declare const MapLabelsContext: import("react").Context<{
448
+ canvas: {
449
+ defaultLayerName: string;
450
+ newTextLabel: string;
451
+ clusterOther: string;
452
+ mapInitFailedTitle: string;
453
+ mapInitFailedSubtitle: string;
454
+ mapInitFailedFallback: string;
455
+ refreshPage: string;
456
+ measureDistance: string;
457
+ measureArea: string;
458
+ measureDistanceHint: string;
459
+ measureAreaHint: string;
460
+ measureClearHint: string;
461
+ timelineToggle: string;
462
+ layersToggle: string;
463
+ layersToggleAriaLabel: string;
464
+ unsavedCount: (count: number) => string;
465
+ createPointFeature: string;
466
+ noEditableLayer: string;
467
+ tooltipId: string;
468
+ morePointsHint: string;
469
+ traceDuration: string;
470
+ traceDistance: string;
471
+ traceAvgSpeed: string;
472
+ traceGroup: (group: string) => string;
473
+ statusFeatureCount: (count: number) => string;
474
+ statusSelectedCount: (count: number) => string;
475
+ };
476
+ toasts: {
477
+ screenshotFailed: string;
478
+ screenshotMapNotReady: string;
479
+ screenshotNotRendered: string;
480
+ noVisibleLayers: string;
481
+ noVisibleLayersDescription: string;
482
+ noLayerSelected: string;
483
+ noLayerSelectedDescription: string;
484
+ cannotClearHpLayer: string;
485
+ cannotClearHpLayerDescription: string;
486
+ layerEmpty: string;
487
+ layerEmptyDescription: string;
488
+ layerCleared: string;
489
+ layerClearedDescription: (layerName: string) => string;
490
+ terrainUnavailable: string;
491
+ terrainUnavailableDescription: string;
492
+ terrainEnabled: string;
493
+ terrainEnabledDescription: string;
494
+ exportFailed: string;
495
+ exportFailedDescription: string;
496
+ featuresAdded: string;
497
+ featuresAddedDescription: ({ count, layerName }: {
498
+ count: number;
499
+ layerName: string;
500
+ }) => string;
501
+ layerCreated: string;
502
+ searchFailed: string;
503
+ searchFailedDescription: string;
504
+ mapRestored: string;
505
+ mapRestoredDescription: ({ layerCount, featureCount }: {
506
+ layerCount: number;
507
+ featureCount: number;
508
+ }) => string;
509
+ featuresLoaded: string;
510
+ featuresLoadedDescription: (count: number) => string;
511
+ loadFailed: string;
512
+ loadFailedDescription: string;
513
+ saved: string;
514
+ savedDescription: string;
515
+ saveFailed: string;
516
+ saveFailedDescription: string;
517
+ noFeatures: string;
518
+ noFeaturesDescription: string;
519
+ geojsonLoadFailed: string;
520
+ invalidFile: string;
521
+ emptyGeojson: string;
522
+ /** `reprojectedFrom` is the source CRS when the file was reprojected, otherwise null. */
523
+ hpLayerCreatedDescription: ({ layerName, count, reprojectedFrom }: {
524
+ layerName: string;
525
+ count: number;
526
+ reprojectedFrom: string | null;
527
+ }) => string;
528
+ dataViewingLayer: string;
529
+ dataViewingLayerDescription: string;
530
+ hostOwnedLayer: string;
531
+ hostOwnedLayerDescription: string;
532
+ noLayerToLoadInto: string;
533
+ noLayerToLoadIntoDescription: string;
534
+ geojsonLoaded: string;
535
+ geojsonLoadedDescription: ({ count, reprojectedFrom, layerHidden }: {
536
+ count: number;
537
+ reprojectedFrom: string | null;
538
+ layerHidden: boolean;
539
+ }) => string;
540
+ layerAdded: string;
541
+ layerAddedDescription: ({ layerName, count, reprojectedFrom }: {
542
+ layerName: string;
543
+ count: number;
544
+ reprojectedFrom: string | null;
545
+ }) => string;
546
+ };
547
+ featureCap: {
548
+ title: string;
549
+ layersOverLimit: ({ layerCount, max, dropped }: {
550
+ layerCount: number;
551
+ max: number;
552
+ dropped: number;
553
+ }) => string;
554
+ layerAlreadyHeld: ({ layerName, existing, max, kept, dropped }: {
555
+ layerName: string;
556
+ existing: number;
557
+ max: number;
558
+ kept: number;
559
+ dropped: number;
560
+ }) => string;
561
+ firstFeaturesAdded: ({ kept, sourceCount, layerName, dropped }: {
562
+ kept: number;
563
+ sourceCount: number;
564
+ layerName: string;
565
+ dropped: number;
566
+ }) => string;
567
+ restoreNote: string;
568
+ };
569
+ ingest: {
570
+ importing: (name: string) => string;
571
+ rendering: (name: string) => string;
572
+ preparingDownload: (name: string) => string;
573
+ progress: ({ received, total }: {
574
+ received: number;
575
+ total: number;
576
+ }) => string;
577
+ invalidFormat: string;
578
+ noFeatures: string;
579
+ workerUnresponsive: string;
580
+ workerCrashed: string;
581
+ };
582
+ dropZone: {
583
+ title: string;
584
+ subtitle: string;
585
+ };
586
+ mapOptions: {
587
+ title: string;
588
+ load: string;
589
+ uploadMap: string;
590
+ loadFromWorkspace: string;
591
+ save: string;
592
+ downloadMap: string;
593
+ saveToWorkspace: string;
594
+ autoShowLabels: string;
595
+ autoLabelThreshold: string;
596
+ visibleFeatures: string;
597
+ labelsShown: string;
598
+ labelsHidden: string;
599
+ fitToAllFeatures: string;
600
+ terrain3d: string;
601
+ basemapStreets: string;
602
+ basemapSatellite: string;
603
+ basemapDark: string;
604
+ };
605
+ layersPanel: {
606
+ title: string;
607
+ createLayer: string;
608
+ loadAsNewLayer: string;
609
+ searchAndAdd: string;
610
+ groupLayerCount: (count: number) => string;
611
+ unsavedCount: (count: number) => string;
612
+ hpLayerTitle: string;
613
+ hpLayerDescription: string;
614
+ editingThisLayer: string;
615
+ clickToEditLayer: string;
616
+ loadGeojson: string;
617
+ saveGeojson: string;
618
+ neverHideLabels: string;
619
+ labelsOffForLayer: string;
620
+ neverHideLabelsHint: string;
621
+ fitMapToLayer: string;
622
+ deleteLayer: string;
623
+ deleteLayerConfirmTitle: (layerName: string) => string;
624
+ deleteLayerConfirmContent: string;
625
+ deleteLayerConfirmOk: string;
626
+ deleteLayerConfirmCancel: string;
627
+ moveSelectedHere: (count: number) => string;
628
+ };
629
+ layerSettings: {
630
+ pointFeatures: string;
631
+ traceLines: string;
632
+ connectAllPoints: string;
633
+ groupBy: (field: string) => string;
634
+ heatmap: string;
635
+ intensity: string;
636
+ radius: string;
637
+ clustering: string;
638
+ simpleCount: string;
639
+ pieBy: (field: string) => string;
640
+ showPointDots: string;
641
+ countByField: string;
642
+ selectNumericField: string;
643
+ colorBubblesByValue: string;
644
+ altitudeDisplay: string;
645
+ altitude3d: string;
646
+ altitudeFlat: string;
647
+ altitudeBoth: string;
648
+ visualSettings: string;
649
+ labels: string;
650
+ labelFromName: string;
651
+ labelFromField: string;
652
+ labelFixedText: string;
653
+ selectField: string;
654
+ enterLabelText: string;
655
+ size: string;
656
+ defaultSize: string;
657
+ sizeByField: string;
658
+ overrideSize: string;
659
+ color: string;
660
+ useFeatureColor: string;
661
+ colorByField: string;
662
+ fixedColor: string;
663
+ categories: string;
664
+ gradient: string;
665
+ pointIcon: string;
666
+ legend: string;
667
+ legendTop: (count: number) => string;
668
+ legendSampled: string;
669
+ filterValues: string;
670
+ noMatches: string;
671
+ showLess: string;
672
+ showAll: (count: number) => string;
673
+ };
674
+ drawingToolbar: {
675
+ drawingTools: string;
676
+ clickSelect: string;
677
+ rectangleSelect: string;
678
+ polygonSelect: string;
679
+ circleSelect: string;
680
+ selectTool: string;
681
+ switchSelectionMode: string;
682
+ filterArea: string;
683
+ clearFilter: string;
684
+ measureDistance: string;
685
+ measureArea: string;
686
+ switchMeasureMode: string;
687
+ searchAndNavigate: string;
688
+ fitToData: string;
689
+ noEditableLayer: string;
690
+ noEditableLayerHint: string;
691
+ editMode: string;
692
+ searchAndAdd: string;
693
+ dropPoint: string;
694
+ drawLine: string;
695
+ drawPolygon: string;
696
+ drawRectangle: string;
697
+ drawPolygonOrRectangle: string;
698
+ drawPolygonOrRectangleAriaLabel: string;
699
+ addText: string;
700
+ drawArrow: string;
701
+ drawCircle: string;
702
+ undo: string;
703
+ redo: string;
704
+ deleteSelected: (count: number) => string;
705
+ deleteSelectedAriaLabel: string;
706
+ clearAll: (count: number) => string;
707
+ moreTools: string;
708
+ clearAllConfirmTitle: string;
709
+ clearAllConfirmContent: (count: number) => string;
710
+ clearAllConfirmOk: string;
711
+ clearAllConfirmCancel: string;
712
+ };
713
+ navigate: {
714
+ title: string;
715
+ addressPlaceholder: string;
716
+ searchAddress: string;
717
+ orCoordinates: string;
718
+ latitude: string;
719
+ longitude: string;
720
+ latitudePlaceholder: string;
721
+ longitudePlaceholder: string;
722
+ dropPoint: string;
723
+ goToCoordinates: string;
724
+ locationNotFound: string;
725
+ locationNotFoundDescription: string;
726
+ searchError: string;
727
+ searchErrorDescription: string;
728
+ };
729
+ coordinates: {
730
+ invalidCoordinates: string;
731
+ invalidCoordinatesDescription: string;
732
+ invalidLatitude: string;
733
+ invalidLongitude: string;
734
+ latitudeOutOfRange: string;
735
+ longitudeOutOfRange: string;
736
+ notANumber: string;
737
+ };
738
+ featureSearch: {
739
+ title: string;
740
+ placeholder: string;
741
+ titlesMode: string;
742
+ fullJsonMode: string;
743
+ /** `more` is true when the result list stopped at its cap. */
744
+ resultCount: ({ count, more }: {
745
+ count: number;
746
+ more: boolean;
747
+ }) => string;
748
+ totalCount: (count: number) => string;
749
+ noResults: string;
750
+ typeToSearch: (count: number) => string;
751
+ untitledFeature: string;
752
+ unknownGeometry: string;
753
+ };
754
+ propertiesPanel: {
755
+ showingFirstSelected: ({ shown, total }: {
756
+ shown: number;
757
+ total: number;
758
+ }) => string;
759
+ previousOverlappingPoint: string;
760
+ nextOverlappingPoint: string;
761
+ selectedFeatures: (count: number) => string;
762
+ untitledFeature: string;
763
+ hpLayerHint: string;
764
+ hpBadge: string;
765
+ viewBadge: string;
766
+ openInNewTab: string;
767
+ actions: string;
768
+ copyToLayer: string;
769
+ moveToLayer: string;
770
+ untitledLayer: string;
771
+ newLayer: string;
772
+ newLayerPrompt: string;
773
+ changeIcon: string;
774
+ setIcon: string;
775
+ deleteFeatures: (count: number) => string;
776
+ deleteFeature: string;
777
+ entityCards: string;
778
+ entityCardsCount: (count: number) => string;
779
+ properties: string;
780
+ noEntityCardProvider: string;
781
+ selectSingleToSeeProperties: string;
782
+ selectSingleToEdit: string;
783
+ pointDetail: string;
784
+ layer: string;
785
+ octostarRecord: string;
786
+ localMapFeature: string;
787
+ unsaved: string;
788
+ createEntity: string;
789
+ untitledRecord: string;
790
+ refreshFromRecord: string;
791
+ recordFields: string;
792
+ id: string;
793
+ featureSaved: string;
794
+ savedTo: (workspace: string) => string;
795
+ saveFailed: string;
796
+ saveFeatureFailed: string;
797
+ refreshed: string;
798
+ refreshedDescription: string;
799
+ refreshFailed: string;
800
+ };
801
+ featureFields: {
802
+ label: string;
803
+ name: string;
804
+ enterLabel: string;
805
+ featureName: string;
806
+ noName: string;
807
+ icon: string;
808
+ type: string;
809
+ noType: string;
810
+ latLng: string;
811
+ centroidHint: string;
812
+ latitude: string;
813
+ longitude: string;
814
+ temporal: string;
815
+ dateCount: (count: number) => string;
816
+ start: string;
817
+ end: string;
818
+ style: string;
819
+ fontSize: string;
820
+ fontColor: string;
821
+ fontWeight: string;
822
+ fontWeightNormal: string;
823
+ fontWeightBold: string;
824
+ arrowSize: string;
825
+ stroke: string;
826
+ strokeColor: string;
827
+ strokeWidth: string;
828
+ strokeOpacity: string;
829
+ fill: string;
830
+ fillColor: string;
831
+ fillOpacity: string;
832
+ resetFillToStroke: string;
833
+ iconSize: string;
834
+ propertyKey: string;
835
+ propertyValue: string;
836
+ newProperty: string;
837
+ };
838
+ iconPicker: {
839
+ title: string;
840
+ searchPlaceholder: string;
841
+ allCategories: (count: number) => string;
842
+ categoryWithCount: ({ category, count }: {
843
+ category: string;
844
+ count: number;
845
+ }) => string;
846
+ noIconsFound: (query: string) => string;
847
+ noIconSelected: string;
848
+ clearIcon: string;
849
+ cancel: string;
850
+ emptyTrigger: string;
851
+ };
852
+ iconCategories: Record<"time" | "places" | "transport" | "food" | "nature" | "symbols" | "activities" | "work" | "shopping" | "communication" | "people" | "maritime" | "security" | "shapes" | "arrows", string>;
853
+ iconNames: Record<"search" | "map-pin" | "home" | "building" | "store" | "factory" | "construction" | "church" | "hospital" | "school" | "graduation" | "library" | "landmark" | "castle" | "mosque" | "stadium" | "tent" | "car" | "bus" | "train" | "plane" | "ship" | "bike" | "fuel" | "helicopter" | "rocket" | "motorcycle" | "taxi" | "truck" | "utensils" | "coffee" | "beer" | "wine" | "pizza" | "ice-cream" | "apple" | "cake" | "hamburger" | "trees" | "mountain" | "waves" | "sun" | "cloud" | "umbrella" | "flower" | "leaf" | "rainbow" | "snowflake" | "fire" | "volcano" | "heart" | "star" | "flag" | "alert" | "info" | "check" | "x-mark" | "zap" | "bell" | "peace" | "recycle" | "radioactive" | "biohazard" | "camera" | "music" | "film" | "gamepad" | "trophy" | "medal" | "sports" | "basketball" | "fishing" | "art" | "briefcase" | "wrench" | "hammer" | "gear" | "microscope" | "test-tube" | "computer" | "cart" | "gift" | "package" | "money" | "credit-card" | "phone" | "mail" | "globe" | "satellite" | "radio" | "tv" | "user" | "users" | "baby" | "dog" | "cat" | "bird" | "horse" | "fish" | "anchor" | "compass" | "lighthouse" | "sailboat" | "lock" | "key" | "shield" | "eye" | "police" | "siren" | "clock" | "calendar" | "bookmark" | "tag" | "pushpin" | "red-circle" | "blue-circle" | "green-circle" | "yellow-circle" | "orange-circle" | "purple-circle" | "white-circle" | "black-circle" | "red-square" | "blue-square" | "diamond" | "arrow-up" | "arrow-down" | "arrow-left" | "arrow-right" | "target", string>;
854
+ timebar: {
855
+ play: string;
856
+ pause: string;
857
+ reset: string;
858
+ cumulative: string;
859
+ toggle: string;
860
+ featureCount: (count: number) => string;
861
+ selectedCount: ({ selected, total }: {
862
+ selected: number;
863
+ total: number;
864
+ }) => string;
865
+ binEvents: (count: number) => string;
866
+ binEventsWithSelection: ({ count, selected }: {
867
+ count: number;
868
+ selected: number;
869
+ }) => string;
870
+ };
871
+ actionPanel: {
872
+ groupLabel: string;
873
+ saveTooltip: string;
874
+ saveAriaLabel: string;
875
+ save: string;
876
+ loadTooltip: string;
877
+ loadAriaLabel: string;
878
+ load: string;
879
+ };
880
+ }>;
881
+ /**
882
+ * A layer's name as shown: a layer still called "Default Layer" takes the host's wording, any other name shows
883
+ * as stored. Matched by name alone because restoring a saved map gives every layer a new id.
884
+ */
885
+ export declare function shownLayerName(layer: {
886
+ id: string;
887
+ name: string;
888
+ }, labels: MapLabels['canvas']): string;
889
+ export declare function useMapLabels(): MapLabels;
890
+ //# sourceMappingURL=map-labels.d.ts.map