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