@acorex/components 22.0.0-next.1 → 22.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-components-conversation.mjs +2 -2
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +41 -9
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +320 -310
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +11 -1
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +2 -2
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-file-viewer.mjs +328 -107
- package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +1170 -13712
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +388 -78
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/package.json +3 -7
- package/types/acorex-components-datetime-box.d.ts +14 -4
- package/types/acorex-components-datetime-input.d.ts +51 -67
- package/types/acorex-components-file-viewer.d.ts +109 -17
- package/types/acorex-components-map.d.ts +299 -45
- package/types/acorex-components-popup.d.ts +143 -35
- package/fesm2022/acorex-components-modal-acorex-components-modal-Djl-uo9b.mjs +0 -388
- package/fesm2022/acorex-components-modal-acorex-components-modal-Djl-uo9b.mjs.map +0 -1
- package/fesm2022/acorex-components-modal-modal-content.component-BpUsCI8D.mjs +0 -247
- package/fesm2022/acorex-components-modal-modal-content.component-BpUsCI8D.mjs.map +0 -1
- package/fesm2022/acorex-components-modal.mjs +0 -2
- package/fesm2022/acorex-components-modal.mjs.map +0 -1
- package/modal/README.md +0 -3
- package/types/acorex-components-modal.d.ts +0 -132
|
@@ -59,10 +59,45 @@ interface AXMapPolygon {
|
|
|
59
59
|
points: AXMapLatLng[];
|
|
60
60
|
title?: string;
|
|
61
61
|
color?: string;
|
|
62
|
+
/**
|
|
63
|
+
* If true, the polygon cannot be deleted or edited via draw interactions
|
|
64
|
+
*/
|
|
65
|
+
isLocked?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Optional unique identifier for id-based operations
|
|
68
|
+
*/
|
|
69
|
+
id?: string | number;
|
|
70
|
+
}
|
|
71
|
+
interface AXMapPolyline {
|
|
72
|
+
points: AXMapLatLng[];
|
|
73
|
+
title?: string;
|
|
74
|
+
color?: string;
|
|
75
|
+
isLocked?: boolean;
|
|
76
|
+
id?: string | number;
|
|
77
|
+
}
|
|
78
|
+
interface AXMapRectangle {
|
|
79
|
+
southWest: AXMapLatLng;
|
|
80
|
+
northEast: AXMapLatLng;
|
|
81
|
+
title?: string;
|
|
82
|
+
color?: string;
|
|
83
|
+
isLocked?: boolean;
|
|
84
|
+
id?: string | number;
|
|
85
|
+
}
|
|
86
|
+
interface AXMapCircle {
|
|
87
|
+
center: AXMapLatLng;
|
|
88
|
+
/** Radius in meters */
|
|
89
|
+
radius: number;
|
|
90
|
+
title?: string;
|
|
91
|
+
color?: string;
|
|
92
|
+
isLocked?: boolean;
|
|
93
|
+
id?: string | number;
|
|
62
94
|
}
|
|
63
95
|
interface AXMapData {
|
|
64
96
|
markers: AXMapMarker[];
|
|
65
97
|
polygons: AXMapPolygon[];
|
|
98
|
+
polylines: AXMapPolyline[];
|
|
99
|
+
rectangles: AXMapRectangle[];
|
|
100
|
+
circles: AXMapCircle[];
|
|
66
101
|
pois: AXPoiMarker[];
|
|
67
102
|
}
|
|
68
103
|
type AXMapControlPlace = 'topleft' | 'topright' | 'bottomleft' | 'bottomright';
|
|
@@ -105,6 +140,24 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
105
140
|
* @default 0
|
|
106
141
|
*/
|
|
107
142
|
maxPolygon: _angular_core.InputSignal<number>;
|
|
143
|
+
/**
|
|
144
|
+
* @description
|
|
145
|
+
* Maximum number of polylines allowed on the map.
|
|
146
|
+
* @default 0
|
|
147
|
+
*/
|
|
148
|
+
maxPolyline: _angular_core.InputSignal<number>;
|
|
149
|
+
/**
|
|
150
|
+
* @description
|
|
151
|
+
* Maximum number of rectangles allowed on the map.
|
|
152
|
+
* @default 0
|
|
153
|
+
*/
|
|
154
|
+
maxRectangle: _angular_core.InputSignal<number>;
|
|
155
|
+
/**
|
|
156
|
+
* @description
|
|
157
|
+
* Maximum number of circles allowed on the map.
|
|
158
|
+
* @default 0
|
|
159
|
+
*/
|
|
160
|
+
maxCircle: _angular_core.InputSignal<number>;
|
|
108
161
|
/**
|
|
109
162
|
* @description
|
|
110
163
|
* Whether the map should have a marker control.
|
|
@@ -183,6 +236,24 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
183
236
|
* @default undefined
|
|
184
237
|
*/
|
|
185
238
|
polygons: _angular_core.InputSignal<AXMapPolygon | AXMapPolygon[]>;
|
|
239
|
+
/**
|
|
240
|
+
* @description
|
|
241
|
+
* Array or single polyline(s) to be placed on the map.
|
|
242
|
+
* @default undefined
|
|
243
|
+
*/
|
|
244
|
+
polylines: _angular_core.InputSignal<AXMapPolyline | AXMapPolyline[]>;
|
|
245
|
+
/**
|
|
246
|
+
* @description
|
|
247
|
+
* Array or single rectangle(s) to be placed on the map.
|
|
248
|
+
* @default undefined
|
|
249
|
+
*/
|
|
250
|
+
rectangles: _angular_core.InputSignal<AXMapRectangle | AXMapRectangle[]>;
|
|
251
|
+
/**
|
|
252
|
+
* @description
|
|
253
|
+
* Array or single circle(s) to be placed on the map.
|
|
254
|
+
* @default undefined
|
|
255
|
+
*/
|
|
256
|
+
circles: _angular_core.InputSignal<AXMapCircle | AXMapCircle[]>;
|
|
186
257
|
/**
|
|
187
258
|
* @description
|
|
188
259
|
* Array or single POI marker(s) to be placed on the map.
|
|
@@ -219,6 +290,51 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
219
290
|
* Event triggered when polygon positions are changed on the map.
|
|
220
291
|
*/
|
|
221
292
|
onPolygonChanged: _angular_core.OutputEmitterRef<AXMapPolygon[]>;
|
|
293
|
+
/**
|
|
294
|
+
* @description
|
|
295
|
+
* Event triggered when a new polyline is added to the map.
|
|
296
|
+
*/
|
|
297
|
+
onPolylineAdded: _angular_core.OutputEmitterRef<AXMapPolyline>;
|
|
298
|
+
/**
|
|
299
|
+
* @description
|
|
300
|
+
* Event triggered when a polyline is clicked on the map.
|
|
301
|
+
*/
|
|
302
|
+
onPolylineClick: _angular_core.OutputEmitterRef<AXMapPolyline>;
|
|
303
|
+
/**
|
|
304
|
+
* @description
|
|
305
|
+
* Event triggered when polyline positions are changed on the map.
|
|
306
|
+
*/
|
|
307
|
+
onPolylineChanged: _angular_core.OutputEmitterRef<AXMapPolyline[]>;
|
|
308
|
+
/**
|
|
309
|
+
* @description
|
|
310
|
+
* Event triggered when a new rectangle is added to the map.
|
|
311
|
+
*/
|
|
312
|
+
onRectangleAdded: _angular_core.OutputEmitterRef<AXMapRectangle>;
|
|
313
|
+
/**
|
|
314
|
+
* @description
|
|
315
|
+
* Event triggered when a rectangle is clicked on the map.
|
|
316
|
+
*/
|
|
317
|
+
onRectangleClick: _angular_core.OutputEmitterRef<AXMapRectangle>;
|
|
318
|
+
/**
|
|
319
|
+
* @description
|
|
320
|
+
* Event triggered when rectangle bounds are changed on the map.
|
|
321
|
+
*/
|
|
322
|
+
onRectangleChanged: _angular_core.OutputEmitterRef<AXMapRectangle[]>;
|
|
323
|
+
/**
|
|
324
|
+
* @description
|
|
325
|
+
* Event triggered when a new circle is added to the map.
|
|
326
|
+
*/
|
|
327
|
+
onCircleAdded: _angular_core.OutputEmitterRef<AXMapCircle>;
|
|
328
|
+
/**
|
|
329
|
+
* @description
|
|
330
|
+
* Event triggered when a circle is clicked on the map.
|
|
331
|
+
*/
|
|
332
|
+
onCircleClick: _angular_core.OutputEmitterRef<AXMapCircle>;
|
|
333
|
+
/**
|
|
334
|
+
* @description
|
|
335
|
+
* Event triggered when circle data is changed on the map.
|
|
336
|
+
*/
|
|
337
|
+
onCircleChanged: _angular_core.OutputEmitterRef<AXMapCircle[]>;
|
|
222
338
|
/**
|
|
223
339
|
* @description
|
|
224
340
|
* Event triggered when a location is found via the location control.
|
|
@@ -257,6 +373,15 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
257
373
|
private onPolygonChangedSubscription?;
|
|
258
374
|
private onPolygonAddedSubscription?;
|
|
259
375
|
private onPolygonClickSubscription?;
|
|
376
|
+
private onPolylineChangedSubscription?;
|
|
377
|
+
private onPolylineAddedSubscription?;
|
|
378
|
+
private onPolylineClickSubscription?;
|
|
379
|
+
private onRectangleChangedSubscription?;
|
|
380
|
+
private onRectangleAddedSubscription?;
|
|
381
|
+
private onRectangleClickSubscription?;
|
|
382
|
+
private onCircleChangedSubscription?;
|
|
383
|
+
private onCircleAddedSubscription?;
|
|
384
|
+
private onCircleClickSubscription?;
|
|
260
385
|
private onPoiChangedSubscription?;
|
|
261
386
|
private onPoiAddedSubscription?;
|
|
262
387
|
/**
|
|
@@ -283,6 +408,36 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
283
408
|
* Removes polygons by id or geometry; if not provided removes all polygons
|
|
284
409
|
*/
|
|
285
410
|
removePolygon(location?: AXMapPolygon | AXMapPolygon[]): void;
|
|
411
|
+
/**
|
|
412
|
+
* @description
|
|
413
|
+
* Adds a polyline to the map.
|
|
414
|
+
*/
|
|
415
|
+
addPolyline(location: AXMapPolyline | AXMapPolyline[], emitEvents?: boolean): void;
|
|
416
|
+
/**
|
|
417
|
+
* @description
|
|
418
|
+
* Removes polylines by id or geometry; if not provided removes all polylines
|
|
419
|
+
*/
|
|
420
|
+
removePolyline(location?: AXMapPolyline | AXMapPolyline[]): void;
|
|
421
|
+
/**
|
|
422
|
+
* @description
|
|
423
|
+
* Adds a rectangle to the map.
|
|
424
|
+
*/
|
|
425
|
+
addRectangle(location: AXMapRectangle | AXMapRectangle[], emitEvents?: boolean): void;
|
|
426
|
+
/**
|
|
427
|
+
* @description
|
|
428
|
+
* Removes rectangles by id or geometry; if not provided removes all rectangles
|
|
429
|
+
*/
|
|
430
|
+
removeRectangle(location?: AXMapRectangle | AXMapRectangle[]): void;
|
|
431
|
+
/**
|
|
432
|
+
* @description
|
|
433
|
+
* Adds a circle to the map.
|
|
434
|
+
*/
|
|
435
|
+
addCircle(location: AXMapCircle | AXMapCircle[], emitEvents?: boolean): void;
|
|
436
|
+
/**
|
|
437
|
+
* @description
|
|
438
|
+
* Removes circles by id or geometry; if not provided removes all circles
|
|
439
|
+
*/
|
|
440
|
+
removeCircle(location?: AXMapCircle | AXMapCircle[]): void;
|
|
286
441
|
/**
|
|
287
442
|
* @description
|
|
288
443
|
* Retrieves all markers currently placed on the map.
|
|
@@ -295,6 +450,21 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
295
450
|
* @returns An array of `AXMapPolygon` representing all polygons.
|
|
296
451
|
*/
|
|
297
452
|
getPolygons(): AXMapPolygon[];
|
|
453
|
+
/**
|
|
454
|
+
* @description
|
|
455
|
+
* Retrieves all polylines currently placed on the map.
|
|
456
|
+
*/
|
|
457
|
+
getPolylines(): AXMapPolyline[];
|
|
458
|
+
/**
|
|
459
|
+
* @description
|
|
460
|
+
* Retrieves all rectangles currently placed on the map.
|
|
461
|
+
*/
|
|
462
|
+
getRectangles(): AXMapRectangle[];
|
|
463
|
+
/**
|
|
464
|
+
* @description
|
|
465
|
+
* Retrieves all circles currently placed on the map.
|
|
466
|
+
*/
|
|
467
|
+
getCircles(): AXMapCircle[];
|
|
298
468
|
/**
|
|
299
469
|
* @description
|
|
300
470
|
* Retrieves all POI markers currently placed on the map.
|
|
@@ -361,6 +531,9 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
361
531
|
* Setup polygon event subscriptions
|
|
362
532
|
*/
|
|
363
533
|
private setupPolygonEventSubscriptions;
|
|
534
|
+
private setupPolylineEventSubscriptions;
|
|
535
|
+
private setupRectangleEventSubscriptions;
|
|
536
|
+
private setupCircleEventSubscriptions;
|
|
364
537
|
/**
|
|
365
538
|
* Setup POI event subscriptions
|
|
366
539
|
*/
|
|
@@ -377,6 +550,9 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
377
550
|
* Unsubscribe from polygon events
|
|
378
551
|
*/
|
|
379
552
|
private unsubscribePolygonEvents;
|
|
553
|
+
private unsubscribePolylineEvents;
|
|
554
|
+
private unsubscribeRectangleEvents;
|
|
555
|
+
private unsubscribeCircleEvents;
|
|
380
556
|
/**
|
|
381
557
|
* Unsubscribe from POI events
|
|
382
558
|
*/
|
|
@@ -421,7 +597,7 @@ declare class AXMapComponent extends NXComponent implements OnDestroy {
|
|
|
421
597
|
*/
|
|
422
598
|
private unsubscribeFromMapEvents;
|
|
423
599
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMapComponent, never>;
|
|
424
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXMapComponent, "ax-map", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; "isSignal": true; }; "latitude": { "alias": "latitude"; "required": false; "isSignal": true; }; "longitude": { "alias": "longitude"; "required": false; "isSignal": true; }; "maxMarker": { "alias": "maxMarker"; "required": false; "isSignal": true; }; "maxPolygon": { "alias": "maxPolygon"; "required": false; "isSignal": true; }; "hasDraw": { "alias": "hasDraw"; "required": false; "isSignal": true; }; "hasLocator": { "alias": "hasLocator"; "required": false; "isSignal": true; }; "fitToDraw": { "alias": "fitToDraw"; "required": false; "isSignal": true; }; "limitDraw": { "alias": "limitDraw"; "required": false; "isSignal": true; }; "addPoiToFitDraw": { "alias": "addPoiToFitDraw"; "required": false; "isSignal": true; }; "addMarkerOnTap": { "alias": "addMarkerOnTap"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "markerPlace": { "alias": "markerPlace"; "required": false; "isSignal": true; }; "locatePlace": { "alias": "locatePlace"; "required": false; "isSignal": true; }; "poiMinZoom": { "alias": "poiMinZoom"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "polygons": { "alias": "polygons"; "required": false; "isSignal": true; }; "pois": { "alias": "pois"; "required": false; "isSignal": true; }; }, { "zoomLevel": "zoomLevelChange"; "latitude": "latitudeChange"; "longitude": "longitudeChange"; "onMarkerAdded": "onMarkerAdded"; "onMarkerClick": "onMarkerClick"; "onMarkerChanged": "onMarkerChanged"; "onPolygonAdded": "onPolygonAdded"; "onPolygonClick": "onPolygonClick"; "onPolygonChanged": "onPolygonChanged"; "onLocationFound": "onLocationFound"; "onPoiChanged": "onPoiChanged"; "onPoiAdded": "onPoiAdded"; "onMapReady": "onMapReady"; "onLoadError": "onLoadError"; }, never, never, true, never>;
|
|
600
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXMapComponent, "ax-map", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; "isSignal": true; }; "latitude": { "alias": "latitude"; "required": false; "isSignal": true; }; "longitude": { "alias": "longitude"; "required": false; "isSignal": true; }; "maxMarker": { "alias": "maxMarker"; "required": false; "isSignal": true; }; "maxPolygon": { "alias": "maxPolygon"; "required": false; "isSignal": true; }; "maxPolyline": { "alias": "maxPolyline"; "required": false; "isSignal": true; }; "maxRectangle": { "alias": "maxRectangle"; "required": false; "isSignal": true; }; "maxCircle": { "alias": "maxCircle"; "required": false; "isSignal": true; }; "hasDraw": { "alias": "hasDraw"; "required": false; "isSignal": true; }; "hasLocator": { "alias": "hasLocator"; "required": false; "isSignal": true; }; "fitToDraw": { "alias": "fitToDraw"; "required": false; "isSignal": true; }; "limitDraw": { "alias": "limitDraw"; "required": false; "isSignal": true; }; "addPoiToFitDraw": { "alias": "addPoiToFitDraw"; "required": false; "isSignal": true; }; "addMarkerOnTap": { "alias": "addMarkerOnTap"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "markerPlace": { "alias": "markerPlace"; "required": false; "isSignal": true; }; "locatePlace": { "alias": "locatePlace"; "required": false; "isSignal": true; }; "poiMinZoom": { "alias": "poiMinZoom"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "polygons": { "alias": "polygons"; "required": false; "isSignal": true; }; "polylines": { "alias": "polylines"; "required": false; "isSignal": true; }; "rectangles": { "alias": "rectangles"; "required": false; "isSignal": true; }; "circles": { "alias": "circles"; "required": false; "isSignal": true; }; "pois": { "alias": "pois"; "required": false; "isSignal": true; }; }, { "zoomLevel": "zoomLevelChange"; "latitude": "latitudeChange"; "longitude": "longitudeChange"; "onMarkerAdded": "onMarkerAdded"; "onMarkerClick": "onMarkerClick"; "onMarkerChanged": "onMarkerChanged"; "onPolygonAdded": "onPolygonAdded"; "onPolygonClick": "onPolygonClick"; "onPolygonChanged": "onPolygonChanged"; "onPolylineAdded": "onPolylineAdded"; "onPolylineClick": "onPolylineClick"; "onPolylineChanged": "onPolylineChanged"; "onRectangleAdded": "onRectangleAdded"; "onRectangleClick": "onRectangleClick"; "onRectangleChanged": "onRectangleChanged"; "onCircleAdded": "onCircleAdded"; "onCircleClick": "onCircleClick"; "onCircleChanged": "onCircleChanged"; "onLocationFound": "onLocationFound"; "onPoiChanged": "onPoiChanged"; "onPoiAdded": "onPoiAdded"; "onMapReady": "onMapReady"; "onLoadError": "onLoadError"; }, never, never, true, never>;
|
|
425
601
|
}
|
|
426
602
|
|
|
427
603
|
interface AXMapConfig {
|
|
@@ -454,17 +630,26 @@ declare class AXLeafletService {
|
|
|
454
630
|
private position;
|
|
455
631
|
private maxMarkers;
|
|
456
632
|
private maxPolygons;
|
|
457
|
-
private
|
|
633
|
+
private maxPolylines;
|
|
634
|
+
private maxRectangles;
|
|
635
|
+
private maxCircles;
|
|
636
|
+
private shapeColor;
|
|
458
637
|
private poiMinZoom;
|
|
459
638
|
private poiMarkers;
|
|
460
639
|
protected L: typeof leaflet;
|
|
461
640
|
private map?;
|
|
462
641
|
private drawControl?;
|
|
463
642
|
private locateControl?;
|
|
643
|
+
private markerLayer;
|
|
644
|
+
private polygonLayer;
|
|
645
|
+
private polylineLayer;
|
|
646
|
+
private rectangleLayer;
|
|
647
|
+
private circleLayer;
|
|
648
|
+
private poiLayer;
|
|
649
|
+
private boundaryLayer;
|
|
650
|
+
/** Composite group for leaflet-draw edit/delete across all editable layers */
|
|
464
651
|
private drawnItems;
|
|
465
|
-
private poiLayer?;
|
|
466
652
|
private boundary;
|
|
467
|
-
private boundaryLayer;
|
|
468
653
|
private _addMarkerOnTapEnabled;
|
|
469
654
|
private _isCurrentlyDrawing;
|
|
470
655
|
private _hasDrawControl;
|
|
@@ -523,6 +708,42 @@ declare class AXLeafletService {
|
|
|
523
708
|
* Emits when a polygon is clicked.
|
|
524
709
|
*/
|
|
525
710
|
onPolygonClick: EventEmitter<AXMapPolygon>;
|
|
711
|
+
/**
|
|
712
|
+
* Emits when polyline data changes.
|
|
713
|
+
*/
|
|
714
|
+
onPolylineChanged: EventEmitter<AXMapPolyline[]>;
|
|
715
|
+
/**
|
|
716
|
+
* Emits when a polyline is added.
|
|
717
|
+
*/
|
|
718
|
+
onPolylineAdded: EventEmitter<AXMapPolyline>;
|
|
719
|
+
/**
|
|
720
|
+
* Emits when a polyline is clicked.
|
|
721
|
+
*/
|
|
722
|
+
onPolylineClick: EventEmitter<AXMapPolyline>;
|
|
723
|
+
/**
|
|
724
|
+
* Emits when rectangle data changes.
|
|
725
|
+
*/
|
|
726
|
+
onRectangleChanged: EventEmitter<AXMapRectangle[]>;
|
|
727
|
+
/**
|
|
728
|
+
* Emits when a rectangle is added.
|
|
729
|
+
*/
|
|
730
|
+
onRectangleAdded: EventEmitter<AXMapRectangle>;
|
|
731
|
+
/**
|
|
732
|
+
* Emits when a rectangle is clicked.
|
|
733
|
+
*/
|
|
734
|
+
onRectangleClick: EventEmitter<AXMapRectangle>;
|
|
735
|
+
/**
|
|
736
|
+
* Emits when circle data changes.
|
|
737
|
+
*/
|
|
738
|
+
onCircleChanged: EventEmitter<AXMapCircle[]>;
|
|
739
|
+
/**
|
|
740
|
+
* Emits when a circle is added.
|
|
741
|
+
*/
|
|
742
|
+
onCircleAdded: EventEmitter<AXMapCircle>;
|
|
743
|
+
/**
|
|
744
|
+
* Emits when a circle is clicked.
|
|
745
|
+
*/
|
|
746
|
+
onCircleClick: EventEmitter<AXMapCircle>;
|
|
526
747
|
/**
|
|
527
748
|
* Loads the Leaflet library and its plugins.
|
|
528
749
|
*/
|
|
@@ -536,6 +757,11 @@ declare class AXLeafletService {
|
|
|
536
757
|
initMap(mapElement: HTMLElement, location: AXMapLatLng, zoom?: number): Promise<void>;
|
|
537
758
|
private handleZoomChange;
|
|
538
759
|
private handleCenterChange;
|
|
760
|
+
private initMapLayers;
|
|
761
|
+
private get editableTypeLayers();
|
|
762
|
+
private resolveEditableLayer;
|
|
763
|
+
private forEachEditableLayer;
|
|
764
|
+
private getAllEditableLayers;
|
|
539
765
|
/**
|
|
540
766
|
* Creates a custom icon from SVG string or URL using the icon resolver if possible
|
|
541
767
|
* @param iconSrc Path to the icon, SVG string, or icon key
|
|
@@ -586,19 +812,27 @@ declare class AXLeafletService {
|
|
|
586
812
|
* @returns An array of AXMapPolygon objects.
|
|
587
813
|
*/
|
|
588
814
|
getPolygons(): AXMapPolygon[];
|
|
815
|
+
/**
|
|
816
|
+
* Gets all polylines currently on the map.
|
|
817
|
+
*/
|
|
818
|
+
getPolylines(): AXMapPolyline[];
|
|
819
|
+
/**
|
|
820
|
+
* Gets all rectangles currently on the map.
|
|
821
|
+
*/
|
|
822
|
+
getRectangles(): AXMapRectangle[];
|
|
823
|
+
/**
|
|
824
|
+
* Gets all circles currently on the map.
|
|
825
|
+
*/
|
|
826
|
+
getCircles(): AXMapCircle[];
|
|
589
827
|
/**
|
|
590
828
|
* Gets POI markers from the POI layer.
|
|
591
829
|
* @returns Array of POI markers.
|
|
592
830
|
*/
|
|
593
831
|
getPois(): AXPoiMarker[];
|
|
594
832
|
/**
|
|
595
|
-
* Adds a draw control to the map for creating markers and
|
|
596
|
-
* @param position The position of the control on the map. Defaults to 'topleft'.
|
|
597
|
-
* @param maxMarkers The maximum number of markers allowed. Defaults to 1.
|
|
598
|
-
* @param maxPolygons The maximum number of polygons allowed. Defaults to 1.
|
|
599
|
-
* @param PolygonColor The default color for polygons.
|
|
833
|
+
* Adds a draw control to the map for creating markers, polygons, polylines, rectangles, and circles.
|
|
600
834
|
*/
|
|
601
|
-
addDrawControl(position?: AXMapControlPlace, maxMarkers?: number, maxPolygons?: number,
|
|
835
|
+
addDrawControl(position?: AXMapControlPlace, maxMarkers?: number, maxPolygons?: number, maxPolylines?: number, maxRectangles?: number, maxCircles?: number, shapeColor?: string): void;
|
|
602
836
|
/**
|
|
603
837
|
* Adds a locate control to the map.
|
|
604
838
|
* @param position The position of the control on the map. Defaults to 'bottomright'.
|
|
@@ -625,8 +859,7 @@ declare class AXLeafletService {
|
|
|
625
859
|
*/
|
|
626
860
|
getDrawItem(): AXMapData;
|
|
627
861
|
/**
|
|
628
|
-
* Sets the drawn items
|
|
629
|
-
* @param data An object containing arrays of markers and polygons.
|
|
862
|
+
* Sets the drawn items on the map.
|
|
630
863
|
*/
|
|
631
864
|
setDrawItem(data: AXMapData): Promise<void>;
|
|
632
865
|
/**
|
|
@@ -685,6 +918,18 @@ declare class AXLeafletService {
|
|
|
685
918
|
* @param clickCallback Optional callback function to be executed on polygon click.
|
|
686
919
|
*/
|
|
687
920
|
addPolygon(polygons: AXMapPolygon | AXMapPolygon[], emitEvents?: boolean): void;
|
|
921
|
+
/**
|
|
922
|
+
* Adds a polyline or polylines to the map.
|
|
923
|
+
*/
|
|
924
|
+
addPolyline(polylines: AXMapPolyline | AXMapPolyline[], emitEvents?: boolean): void;
|
|
925
|
+
/**
|
|
926
|
+
* Adds a rectangle or rectangles to the map.
|
|
927
|
+
*/
|
|
928
|
+
addRectangle(rectangles: AXMapRectangle | AXMapRectangle[], emitEvents?: boolean): void;
|
|
929
|
+
/**
|
|
930
|
+
* Adds a circle or circles to the map.
|
|
931
|
+
*/
|
|
932
|
+
addCircle(circles: AXMapCircle | AXMapCircle[], emitEvents?: boolean): void;
|
|
688
933
|
/**
|
|
689
934
|
* Adds a POI marker to the map.
|
|
690
935
|
* @param locations One or more POI markers to add.
|
|
@@ -738,6 +983,40 @@ declare class AXLeafletService {
|
|
|
738
983
|
removePolygon(locations?: AXMapPolygon | AXMapPolygon[]): void;
|
|
739
984
|
setMaxMarkers(maxMarkers: number): void;
|
|
740
985
|
setMaxPolygons(maxPolygons: number): void;
|
|
986
|
+
setMaxPolylines(maxPolylines: number): void;
|
|
987
|
+
setMaxRectangles(maxRectangles: number): void;
|
|
988
|
+
setMaxCircles(maxCircles: number): void;
|
|
989
|
+
private refreshDrawControl;
|
|
990
|
+
private canDrawMoreMarkers;
|
|
991
|
+
private canDrawMorePolygons;
|
|
992
|
+
private canDrawMorePolylines;
|
|
993
|
+
private canDrawMoreRectangles;
|
|
994
|
+
private canDrawMoreCircles;
|
|
995
|
+
private isPolygonLayer;
|
|
996
|
+
private isPolylineLayer;
|
|
997
|
+
private isRectangleLayer;
|
|
998
|
+
private isCircleLayer;
|
|
999
|
+
private arePointsWithinBoundary;
|
|
1000
|
+
private getRectangleCornerPoints;
|
|
1001
|
+
/**
|
|
1002
|
+
* Removes polylines by id or geometry. If not provided, removes all polylines.
|
|
1003
|
+
*/
|
|
1004
|
+
removePolyline(locations?: AXMapPolyline | AXMapPolyline[]): void;
|
|
1005
|
+
/**
|
|
1006
|
+
* Removes rectangles by id or geometry. If not provided, removes all rectangles.
|
|
1007
|
+
*/
|
|
1008
|
+
removeRectangle(locations?: AXMapRectangle | AXMapRectangle[]): void;
|
|
1009
|
+
/**
|
|
1010
|
+
* Removes circles by id or geometry. If not provided, removes all circles.
|
|
1011
|
+
*/
|
|
1012
|
+
removeCircle(locations?: AXMapCircle | AXMapCircle[]): void;
|
|
1013
|
+
private layerToPolyline;
|
|
1014
|
+
private layerToRectangle;
|
|
1015
|
+
private layerToCircle;
|
|
1016
|
+
private polylinesEqualByPoints;
|
|
1017
|
+
private rectanglesEqual;
|
|
1018
|
+
private circlesEqual;
|
|
1019
|
+
private setPathLayerInteractive;
|
|
741
1020
|
/**
|
|
742
1021
|
* Sets the readonly state of the map.
|
|
743
1022
|
* When readonly, map is movable and zoomable but all functionality (drawing, adding markers, controls) is disabled.
|
|
@@ -750,41 +1029,16 @@ declare class AXLeafletService {
|
|
|
750
1029
|
* @param disabled Whether to disable the map completely
|
|
751
1030
|
*/
|
|
752
1031
|
setDisabled(disabled: boolean): void;
|
|
1032
|
+
/**
|
|
1033
|
+
* Fixes leaflet-draw strict-mode bug where `type` is used without declaration
|
|
1034
|
+
* in GeometryUtil.readableArea (affects rectangle/polygon area tooltips).
|
|
1035
|
+
* @see https://github.com/Leaflet/Leaflet.draw/issues/898
|
|
1036
|
+
*/
|
|
1037
|
+
private patchLeafletDraw;
|
|
753
1038
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXLeafletService, never>;
|
|
754
1039
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXLeafletService>;
|
|
755
1040
|
}
|
|
756
1041
|
|
|
757
|
-
declare function AXConvertGeoJSONToAXMapPolygons(geoJSON: any): AXMapPolygon[];
|
|
758
|
-
|
|
759
|
-
declare const AX_WORLD_GEO_JSON: {
|
|
760
|
-
type: string;
|
|
761
|
-
features: ({
|
|
762
|
-
type: string;
|
|
763
|
-
id: string;
|
|
764
|
-
properties: {
|
|
765
|
-
name: string;
|
|
766
|
-
};
|
|
767
|
-
geometry: {
|
|
768
|
-
type: string;
|
|
769
|
-
coordinates: number[][][];
|
|
770
|
-
};
|
|
771
|
-
} | {
|
|
772
|
-
type: string;
|
|
773
|
-
id: string;
|
|
774
|
-
properties: {
|
|
775
|
-
name: string;
|
|
776
|
-
};
|
|
777
|
-
geometry: {
|
|
778
|
-
type: string;
|
|
779
|
-
coordinates: number[][][][];
|
|
780
|
-
};
|
|
781
|
-
})[];
|
|
782
|
-
};
|
|
783
|
-
declare const AX_WORLD_COUNTRIES: {
|
|
784
|
-
id: string;
|
|
785
|
-
text: string;
|
|
786
|
-
}[];
|
|
787
|
-
|
|
788
1042
|
interface AXPoiProvider {
|
|
789
1043
|
get key(): string;
|
|
790
1044
|
provide(): Promise<AXPoiMarker[]>;
|
|
@@ -798,5 +1052,5 @@ declare class AXPoiProviderService {
|
|
|
798
1052
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPoiProviderService>;
|
|
799
1053
|
}
|
|
800
1054
|
|
|
801
|
-
export {
|
|
802
|
-
export type { AXMapConfig, AXMapControlPlace, AXMapData, AXMapLatLng, AXMapLocation, AXMapMarker, AXMapPolygon, AXPoiMarker, AXPoiProvider, PartialMapConfig };
|
|
1055
|
+
export { AXLeafletService, AXMapComponent, AXMapDefaultConfig, AXMapModule, AXPoiProviderService, AX_MAP_CONFIG, AX_MAP_POI_PROVIDER, baseUrl, mapConfig };
|
|
1056
|
+
export type { AXMapCircle, AXMapConfig, AXMapControlPlace, AXMapData, AXMapLatLng, AXMapLocation, AXMapMarker, AXMapPolygon, AXMapPolyline, AXMapRectangle, AXPoiMarker, AXPoiProvider, PartialMapConfig };
|