@progress/kendo-angular-map 19.1.2-develop.2 → 19.1.2-develop.3
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/directives.d.ts +2 -2
- package/esm2022/directives.mjs +2 -2
- package/esm2022/events/before-reset-event.mjs +2 -1
- package/esm2022/events/map-click-event.mjs +3 -2
- package/esm2022/events/marker-activate-event.mjs +2 -1
- package/esm2022/events/marker-click-event.mjs +2 -1
- package/esm2022/events/marker-created-event.mjs +3 -2
- package/esm2022/events/pan-end-event.mjs +3 -2
- package/esm2022/events/pan-event.mjs +3 -2
- package/esm2022/events/reset-event.mjs +2 -1
- package/esm2022/events/shape-click-event.mjs +3 -2
- package/esm2022/events/shape-created-event.mjs +3 -2
- package/esm2022/events/shape-feature-created-event.mjs +4 -3
- package/esm2022/events/shape-mouse-enter-event.mjs +5 -4
- package/esm2022/events/shape-mouse-leave-event.mjs +5 -4
- package/esm2022/events/zoom-end-event.mjs +3 -2
- package/esm2022/events/zoom-start-event.mjs +4 -4
- package/esm2022/map/bubble-layer.component.mjs +33 -11
- package/esm2022/map/layers.component.mjs +20 -1
- package/esm2022/map/marker-layer.component.mjs +29 -9
- package/esm2022/map/shape-layer.component.mjs +22 -3
- package/esm2022/map/tile-layer.component.mjs +24 -6
- package/esm2022/map.component.mjs +70 -69
- package/esm2022/map.module.mjs +18 -18
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/tooltip/bubble-tooltip-template.directive.mjs +21 -0
- package/esm2022/tooltip/bubble-tooltip.component.mjs +24 -1
- package/esm2022/tooltip/marker-tooltip-template.directive.mjs +21 -0
- package/esm2022/tooltip/marker-tooltip.component.mjs +24 -1
- package/esm2022/tooltip/shape-tooltip-template.directive.mjs +21 -0
- package/esm2022/tooltip/shape-tooltip.component.mjs +24 -1
- package/events/before-reset-event.d.ts +2 -1
- package/events/map-click-event.d.ts +3 -2
- package/events/marker-activate-event.d.ts +2 -1
- package/events/marker-click-event.d.ts +2 -1
- package/events/marker-created-event.d.ts +3 -2
- package/events/pan-end-event.d.ts +3 -2
- package/events/pan-event.d.ts +3 -2
- package/events/reset-event.d.ts +2 -1
- package/events/shape-click-event.d.ts +3 -2
- package/events/shape-created-event.d.ts +3 -2
- package/events/shape-feature-created-event.d.ts +4 -3
- package/events/shape-mouse-enter-event.d.ts +5 -4
- package/events/shape-mouse-leave-event.d.ts +5 -4
- package/events/zoom-end-event.d.ts +3 -2
- package/events/zoom-start-event.d.ts +4 -4
- package/fesm2022/progress-kendo-angular-map.mjs +402 -157
- package/map/bubble-layer.component.d.ts +33 -11
- package/map/layers.component.d.ts +20 -1
- package/map/marker-layer.component.d.ts +29 -9
- package/map/shape-layer.component.d.ts +22 -3
- package/map/tile-layer.component.d.ts +24 -6
- package/map.component.d.ts +70 -69
- package/map.module.d.ts +18 -18
- package/package.json +7 -7
- package/schematics/ngAdd/index.js +1 -1
- package/tooltip/bubble-tooltip-template.directive.d.ts +21 -0
- package/tooltip/bubble-tooltip.component.d.ts +24 -1
- package/tooltip/marker-tooltip-template.directive.d.ts +21 -0
- package/tooltip/marker-tooltip.component.d.ts +24 -1
- package/tooltip/popup-settings.interface.d.ts +3 -3
- package/tooltip/shape-tooltip-template.directive.d.ts +21 -0
- package/tooltip/shape-tooltip.component.d.ts +24 -1
|
@@ -351,44 +351,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
351
351
|
}] } });
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
*
|
|
354
|
+
* Represents the Kendo UI BubbleLayer component for Angular. Displays data as bubbles on vector shape layers for bubble maps.
|
|
355
|
+
*
|
|
356
|
+
* @example
|
|
357
|
+
* ```typescript
|
|
358
|
+
* @Component({
|
|
359
|
+
* selector: 'my-app',
|
|
360
|
+
* template: `
|
|
361
|
+
* <kendo-map>
|
|
362
|
+
* <kendo-map-bubble-layer
|
|
363
|
+
* [data]="bubbleData"
|
|
364
|
+
* locationField="location"
|
|
365
|
+
* valueField="population"
|
|
366
|
+
* [maxSize]="50"
|
|
367
|
+
* [minSize]="10">
|
|
368
|
+
* </kendo-map-bubble-layer>
|
|
369
|
+
* </kendo-map>
|
|
370
|
+
* `
|
|
371
|
+
* })
|
|
372
|
+
* export class AppComponent {
|
|
373
|
+
* public bubbleData = [
|
|
374
|
+
* { location: [40.7128, -74.0060], population: 8000000 }
|
|
375
|
+
* ];
|
|
376
|
+
* }
|
|
377
|
+
* ```
|
|
355
378
|
*/
|
|
356
379
|
class BubbleLayerComponent extends LayerComponent {
|
|
357
380
|
configurationService;
|
|
358
381
|
collectionService;
|
|
359
382
|
sanitizer;
|
|
360
383
|
/**
|
|
361
|
-
*
|
|
384
|
+
* Sets the array of data items for this layer.
|
|
362
385
|
*/
|
|
363
386
|
data;
|
|
364
387
|
/**
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
* The field should be an array with two numbers - latitude and longitude in decimal degrees.
|
|
388
|
+
* Sets the data item field which contains the symbol location.
|
|
389
|
+
* The field should be an array with two numbers — latitude and longitude in decimal degrees.
|
|
368
390
|
*/
|
|
369
391
|
locationField;
|
|
370
392
|
/**
|
|
371
|
-
*
|
|
393
|
+
* Sets the value field for the symbols used to determine their relative size.
|
|
372
394
|
* The data item field should be a number.
|
|
373
395
|
*/
|
|
374
396
|
valueField;
|
|
375
397
|
/**
|
|
376
|
-
*
|
|
398
|
+
* Sets the symbol to use for bubble layers.
|
|
377
399
|
*/
|
|
378
400
|
symbol;
|
|
379
401
|
/**
|
|
380
|
-
*
|
|
402
|
+
* Sets the default style for symbols.
|
|
381
403
|
*/
|
|
382
404
|
style;
|
|
383
405
|
/**
|
|
384
|
-
*
|
|
406
|
+
* Sets the maximum symbol size for bubble layer symbols.
|
|
385
407
|
*
|
|
386
408
|
* @default 100
|
|
387
409
|
*/
|
|
388
410
|
maxSize;
|
|
389
411
|
/**
|
|
390
|
-
*
|
|
391
|
-
* Setting non-zero value will distort symbol area to value ratio.
|
|
412
|
+
* Sets the minimum symbol size for bubble layer symbols.
|
|
413
|
+
* Setting a non-zero value will distort the symbol area to value ratio.
|
|
392
414
|
*
|
|
393
415
|
* @default 0
|
|
394
416
|
*/
|
|
@@ -489,7 +511,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
489
511
|
}], ctorParameters: function () { return [{ type: undefined }]; } });
|
|
490
512
|
|
|
491
513
|
/**
|
|
492
|
-
*
|
|
514
|
+
* Arguments for the `beforeReset` event.
|
|
515
|
+
* Fires immediately before the map resets. Layer implementers typically use this event for cleanup.
|
|
493
516
|
*/
|
|
494
517
|
class BeforeResetEvent extends BaseEvent {
|
|
495
518
|
/**
|
|
@@ -501,7 +524,8 @@ class BeforeResetEvent extends BaseEvent {
|
|
|
501
524
|
}
|
|
502
525
|
|
|
503
526
|
/**
|
|
504
|
-
*
|
|
527
|
+
* Arguments for the `mapClick` event.
|
|
528
|
+
* Fires when you click on the map.
|
|
505
529
|
*/
|
|
506
530
|
class MapClickEvent extends BaseEvent {
|
|
507
531
|
/**
|
|
@@ -509,7 +533,7 @@ class MapClickEvent extends BaseEvent {
|
|
|
509
533
|
*/
|
|
510
534
|
location;
|
|
511
535
|
/**
|
|
512
|
-
* The source DOM event instance
|
|
536
|
+
* The source DOM event instance.
|
|
513
537
|
*/
|
|
514
538
|
originalEvent;
|
|
515
539
|
/**
|
|
@@ -523,7 +547,8 @@ class MapClickEvent extends BaseEvent {
|
|
|
523
547
|
}
|
|
524
548
|
|
|
525
549
|
/**
|
|
526
|
-
*
|
|
550
|
+
* Arguments for the `markerActivate` event.
|
|
551
|
+
* Fires when a marker displays and has a DOM element assigned.
|
|
527
552
|
*/
|
|
528
553
|
class MarkerActivateEvent extends BaseEvent {
|
|
529
554
|
/**
|
|
@@ -545,7 +570,8 @@ class MarkerActivateEvent extends BaseEvent {
|
|
|
545
570
|
}
|
|
546
571
|
|
|
547
572
|
/**
|
|
548
|
-
*
|
|
573
|
+
* Arguments for the `markerClick` event.
|
|
574
|
+
* Fires when the user clicks or taps a marker.
|
|
549
575
|
*/
|
|
550
576
|
class MarkerClickEvent extends BaseEvent {
|
|
551
577
|
/**
|
|
@@ -597,9 +623,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
597
623
|
}] });
|
|
598
624
|
|
|
599
625
|
/**
|
|
600
|
-
*
|
|
626
|
+
* Arguments for the `markerCreated` event.
|
|
627
|
+
* Fires once the map has created a marker, and just before the map displays it.
|
|
601
628
|
*
|
|
602
|
-
* Cancelling the event
|
|
629
|
+
* Cancelling the event prevents displaying the marker.
|
|
603
630
|
*/
|
|
604
631
|
class MarkerCreatedEvent extends PreventableEvent {
|
|
605
632
|
/**
|
|
@@ -621,7 +648,8 @@ class MarkerCreatedEvent extends PreventableEvent {
|
|
|
621
648
|
}
|
|
622
649
|
|
|
623
650
|
/**
|
|
624
|
-
*
|
|
651
|
+
* Arguments for the `panEnd` event.
|
|
652
|
+
* Fires after the map viewport completes panning.
|
|
625
653
|
*/
|
|
626
654
|
class PanEndEvent extends BaseEvent {
|
|
627
655
|
/**
|
|
@@ -633,7 +661,7 @@ class PanEndEvent extends BaseEvent {
|
|
|
633
661
|
*/
|
|
634
662
|
center;
|
|
635
663
|
/**
|
|
636
|
-
* The source DOM event instance
|
|
664
|
+
* The source DOM event instance.
|
|
637
665
|
*/
|
|
638
666
|
originalEvent;
|
|
639
667
|
/**
|
|
@@ -648,7 +676,8 @@ class PanEndEvent extends BaseEvent {
|
|
|
648
676
|
}
|
|
649
677
|
|
|
650
678
|
/**
|
|
651
|
-
*
|
|
679
|
+
* Arguments for the `pan` event.
|
|
680
|
+
* Fires while the map viewport is being moved.
|
|
652
681
|
*/
|
|
653
682
|
class PanEvent extends BaseEvent {
|
|
654
683
|
/**
|
|
@@ -660,7 +689,7 @@ class PanEvent extends BaseEvent {
|
|
|
660
689
|
*/
|
|
661
690
|
center;
|
|
662
691
|
/**
|
|
663
|
-
* The source DOM event instance
|
|
692
|
+
* The source DOM event instance.
|
|
664
693
|
*/
|
|
665
694
|
originalEvent;
|
|
666
695
|
/**
|
|
@@ -675,7 +704,8 @@ class PanEvent extends BaseEvent {
|
|
|
675
704
|
}
|
|
676
705
|
|
|
677
706
|
/**
|
|
678
|
-
*
|
|
707
|
+
* Arguments for the `reset` event.
|
|
708
|
+
* Fires when the map resets.
|
|
679
709
|
*
|
|
680
710
|
* This typically occurs on initial load and after a zoom/center change.
|
|
681
711
|
*/
|
|
@@ -689,7 +719,8 @@ class ResetEvent extends BaseEvent {
|
|
|
689
719
|
}
|
|
690
720
|
|
|
691
721
|
/**
|
|
692
|
-
*
|
|
722
|
+
* Arguments for the `shapeClick` event.
|
|
723
|
+
* Fires when a shape is clicked or tapped.
|
|
693
724
|
*/
|
|
694
725
|
class ShapeClickEvent extends BaseEvent {
|
|
695
726
|
/**
|
|
@@ -701,7 +732,7 @@ class ShapeClickEvent extends BaseEvent {
|
|
|
701
732
|
*/
|
|
702
733
|
shape;
|
|
703
734
|
/**
|
|
704
|
-
* The source DOM event instance
|
|
735
|
+
* The source DOM event instance.
|
|
705
736
|
*/
|
|
706
737
|
originalEvent;
|
|
707
738
|
/**
|
|
@@ -716,7 +747,8 @@ class ShapeClickEvent extends BaseEvent {
|
|
|
716
747
|
}
|
|
717
748
|
|
|
718
749
|
/**
|
|
719
|
-
*
|
|
750
|
+
* Arguments for the `shapeCreated` event.
|
|
751
|
+
* Fires when a shape is created, but is not rendered yet.
|
|
720
752
|
*/
|
|
721
753
|
class ShapeCreatedEvent extends BaseEvent {
|
|
722
754
|
/**
|
|
@@ -732,7 +764,7 @@ class ShapeCreatedEvent extends BaseEvent {
|
|
|
732
764
|
*/
|
|
733
765
|
dataItem;
|
|
734
766
|
/**
|
|
735
|
-
* The shape location
|
|
767
|
+
* The shape location.
|
|
736
768
|
*/
|
|
737
769
|
location;
|
|
738
770
|
/**
|
|
@@ -748,11 +780,12 @@ class ShapeCreatedEvent extends BaseEvent {
|
|
|
748
780
|
}
|
|
749
781
|
|
|
750
782
|
/**
|
|
751
|
-
*
|
|
783
|
+
* Arguments for the `shapeFeatureCreated` event.
|
|
784
|
+
* Fires when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
|
|
752
785
|
*/
|
|
753
786
|
class ShapeFeatureCreatedEvent extends BaseEvent {
|
|
754
787
|
/**
|
|
755
|
-
* The original data item for this Feature.
|
|
788
|
+
* The original data item for this Feature. Includes `geometries` and `properties` members.
|
|
756
789
|
*/
|
|
757
790
|
dataItem;
|
|
758
791
|
/**
|
|
@@ -760,7 +793,7 @@ class ShapeFeatureCreatedEvent extends BaseEvent {
|
|
|
760
793
|
*/
|
|
761
794
|
layer;
|
|
762
795
|
/**
|
|
763
|
-
* The group
|
|
796
|
+
* The group that contains feature shape instances.
|
|
764
797
|
*/
|
|
765
798
|
group;
|
|
766
799
|
/**
|
|
@@ -780,10 +813,11 @@ class ShapeFeatureCreatedEvent extends BaseEvent {
|
|
|
780
813
|
}
|
|
781
814
|
|
|
782
815
|
/**
|
|
783
|
-
*
|
|
816
|
+
* Arguments for the `shapeMouseEnter` event.
|
|
817
|
+
* Fires when the mouse enters a shape.
|
|
784
818
|
*
|
|
785
|
-
* > This event
|
|
786
|
-
* >
|
|
819
|
+
* > This event fires reliably only for shapes that have a set fill color.
|
|
820
|
+
* > You can still set the opacity to 0 so the shapes appear to have no fill.
|
|
787
821
|
*/
|
|
788
822
|
class ShapeMouseEnterEvent extends BaseEvent {
|
|
789
823
|
/**
|
|
@@ -795,7 +829,7 @@ class ShapeMouseEnterEvent extends BaseEvent {
|
|
|
795
829
|
*/
|
|
796
830
|
shape;
|
|
797
831
|
/**
|
|
798
|
-
* The source DOM event instance
|
|
832
|
+
* The source DOM event instance.
|
|
799
833
|
*/
|
|
800
834
|
originalEvent;
|
|
801
835
|
/**
|
|
@@ -810,10 +844,11 @@ class ShapeMouseEnterEvent extends BaseEvent {
|
|
|
810
844
|
}
|
|
811
845
|
|
|
812
846
|
/**
|
|
813
|
-
*
|
|
847
|
+
* Arguments for the `shapeMouseLeave` event.
|
|
848
|
+
* Fires when the mouse leaves a shape.
|
|
814
849
|
*
|
|
815
|
-
* > This event
|
|
816
|
-
* >
|
|
850
|
+
* > This event fires reliably only for shapes that have a set fill color.
|
|
851
|
+
* > You can still set the opacity to 0 so the shapes appear to have no fill.
|
|
817
852
|
*/
|
|
818
853
|
class ShapeMouseLeaveEvent extends BaseEvent {
|
|
819
854
|
/**
|
|
@@ -825,7 +860,7 @@ class ShapeMouseLeaveEvent extends BaseEvent {
|
|
|
825
860
|
*/
|
|
826
861
|
shape;
|
|
827
862
|
/**
|
|
828
|
-
* The source DOM event instance
|
|
863
|
+
* The source DOM event instance.
|
|
829
864
|
*/
|
|
830
865
|
originalEvent;
|
|
831
866
|
/**
|
|
@@ -840,11 +875,12 @@ class ShapeMouseLeaveEvent extends BaseEvent {
|
|
|
840
875
|
}
|
|
841
876
|
|
|
842
877
|
/**
|
|
843
|
-
*
|
|
878
|
+
* Arguments for the `zoomEnd` event.
|
|
879
|
+
* Fires when the map zoom level changes.
|
|
844
880
|
*/
|
|
845
881
|
class ZoomEndEvent extends BaseEvent {
|
|
846
882
|
/**
|
|
847
|
-
* The source DOM event instance
|
|
883
|
+
* The source DOM event instance.
|
|
848
884
|
*/
|
|
849
885
|
originalEvent;
|
|
850
886
|
/**
|
|
@@ -857,13 +893,13 @@ class ZoomEndEvent extends BaseEvent {
|
|
|
857
893
|
}
|
|
858
894
|
|
|
859
895
|
/**
|
|
860
|
-
*
|
|
861
|
-
*
|
|
862
|
-
*
|
|
896
|
+
* Arguments for the `zoomStart` event.
|
|
897
|
+
* Fires when the map zoom level is about to change.
|
|
898
|
+
* Cancel the event to prevent the user action.
|
|
863
899
|
*/
|
|
864
900
|
class ZoomStartEvent extends PreventableEvent {
|
|
865
901
|
/**
|
|
866
|
-
* The source DOM event instance
|
|
902
|
+
* The source DOM event instance.
|
|
867
903
|
*/
|
|
868
904
|
originalEvent;
|
|
869
905
|
/**
|
|
@@ -911,8 +947,8 @@ const packageMetadata = {
|
|
|
911
947
|
productName: 'Kendo UI for Angular',
|
|
912
948
|
productCode: 'KENDOUIANGULAR',
|
|
913
949
|
productCodes: ['KENDOUIANGULAR'],
|
|
914
|
-
publishDate:
|
|
915
|
-
version: '19.1.2-develop.
|
|
950
|
+
publishDate: 1750152817,
|
|
951
|
+
version: '19.1.2-develop.3',
|
|
916
952
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
917
953
|
};
|
|
918
954
|
|
|
@@ -1159,11 +1195,14 @@ const svgIcons = {
|
|
|
1159
1195
|
/**
|
|
1160
1196
|
* Represents the [Kendo UI Map component for Angular]({% slug overview_map %}).
|
|
1161
1197
|
*
|
|
1198
|
+
* Use this component to display interactive maps with markers, layers, and controls.
|
|
1199
|
+
* Configure zoom levels, center coordinates, and user interactions like panning and zooming.
|
|
1200
|
+
*
|
|
1162
1201
|
* @example
|
|
1163
1202
|
* ```ts
|
|
1164
1203
|
* import { Component } from '@angular/core';
|
|
1165
1204
|
*
|
|
1166
|
-
*
|
|
1205
|
+
* @Component({
|
|
1167
1206
|
* selector: 'my-app',
|
|
1168
1207
|
* template: `
|
|
1169
1208
|
* <kendo-map [center]="center" [zoom]="15">
|
|
@@ -1192,7 +1231,6 @@ const svgIcons = {
|
|
|
1192
1231
|
* center = [30.2675, -97.7409];
|
|
1193
1232
|
* markers = [{ latlng: [30.2675, -97.7409], name: "Zevo Toys" }];
|
|
1194
1233
|
* }
|
|
1195
|
-
*
|
|
1196
1234
|
* ```
|
|
1197
1235
|
*/
|
|
1198
1236
|
class MapComponent {
|
|
@@ -1207,18 +1245,16 @@ class MapComponent {
|
|
|
1207
1245
|
/**
|
|
1208
1246
|
* Limits the automatic resizing of the Map. Sets the maximum number of times per second
|
|
1209
1247
|
* that the component redraws its content when the size of its container changes.
|
|
1210
|
-
*
|
|
1248
|
+
* To disable the automatic resizing, set it to `0`.
|
|
1249
|
+
*
|
|
1250
|
+
* @default 10
|
|
1211
1251
|
*
|
|
1212
1252
|
* @example
|
|
1213
1253
|
* ```ts
|
|
1214
|
-
*
|
|
1254
|
+
* @Component({
|
|
1215
1255
|
* selector: 'my-app',
|
|
1216
1256
|
* template: `
|
|
1217
1257
|
* <kendo-map [resizeRateLimit]="2">
|
|
1218
|
-
* <!-- ^^^^^^^^^^^^^^^^^^^^^^
|
|
1219
|
-
* Will update the size of the Map up to two times a second.
|
|
1220
|
-
* Resize the example pane or window to try it out.
|
|
1221
|
-
* -->
|
|
1222
1258
|
* </kendo-map>
|
|
1223
1259
|
* `
|
|
1224
1260
|
* })
|
|
@@ -1228,11 +1264,12 @@ class MapComponent {
|
|
|
1228
1264
|
*/
|
|
1229
1265
|
resizeRateLimit = 10;
|
|
1230
1266
|
/**
|
|
1231
|
-
*
|
|
1267
|
+
* Specifies the map center coordinates.
|
|
1268
|
+
* Provide coordinates as `[Latitude, Longitude]`.
|
|
1232
1269
|
*/
|
|
1233
1270
|
center;
|
|
1234
1271
|
/**
|
|
1235
|
-
*
|
|
1272
|
+
* Specifies the configuration for built-in map controls.
|
|
1236
1273
|
*/
|
|
1237
1274
|
controls;
|
|
1238
1275
|
/**
|
|
@@ -1270,101 +1307,98 @@ class MapComponent {
|
|
|
1270
1307
|
*/
|
|
1271
1308
|
wraparound;
|
|
1272
1309
|
/**
|
|
1273
|
-
*
|
|
1274
|
-
*
|
|
1275
|
-
*
|
|
1276
|
-
*
|
|
1277
|
-
* The map size is derived from the zoom level and minScale options: `size = (2 ^ zoom) * minSize`
|
|
1278
|
-
*
|
|
1279
|
-
* > Map zoom rounds floating point numbers. This is done so as the majority of web maps use the whole [`zoom levels`](https://wiki.openstreetmap.org/wiki/Zoom_levels) 0 through to 19.
|
|
1310
|
+
* Specifies the initial zoom level.
|
|
1311
|
+
* Use values from 0 (whole world) to 19 (sub-meter features).
|
|
1312
|
+
* The map size derives from the zoom level and `minScale` options: `size = (2 ^ zoom) * minSize`.
|
|
1313
|
+
* Map zoom rounds floating point numbers to use whole [`zoom levels`](https://wiki.openstreetmap.org/wiki/Zoom_levels) 0 through 19.
|
|
1280
1314
|
*
|
|
1281
1315
|
* @default 3
|
|
1282
1316
|
*/
|
|
1283
1317
|
zoom = 3;
|
|
1284
1318
|
/**
|
|
1285
|
-
*
|
|
1319
|
+
* Determines whether users can change the map zoom level.
|
|
1286
1320
|
*
|
|
1287
1321
|
* @default true
|
|
1288
1322
|
*/
|
|
1289
1323
|
zoomable;
|
|
1290
1324
|
/**
|
|
1291
|
-
*
|
|
1325
|
+
* Fires immediately before the map resets. This event is typically used for cleanup by layer implementers.
|
|
1292
1326
|
*/
|
|
1293
1327
|
beforeReset = new EventEmitter();
|
|
1294
1328
|
/**
|
|
1295
|
-
*
|
|
1329
|
+
* Fires when the user clicks on the map.
|
|
1296
1330
|
*/
|
|
1297
1331
|
mapClick = new EventEmitter();
|
|
1298
1332
|
/**
|
|
1299
|
-
*
|
|
1333
|
+
* Fires when a marker appears on the map and its DOM element becomes available.
|
|
1300
1334
|
*/
|
|
1301
1335
|
markerActivate = new EventEmitter();
|
|
1302
1336
|
/**
|
|
1303
|
-
*
|
|
1337
|
+
* Fires when the user clicks or taps a marker.
|
|
1304
1338
|
*/
|
|
1305
1339
|
markerClick = new EventEmitter();
|
|
1306
1340
|
/**
|
|
1307
|
-
*
|
|
1341
|
+
* Fires once the map has created a marker, and just before the map displays it.
|
|
1308
1342
|
*
|
|
1309
|
-
* Cancelling the event
|
|
1343
|
+
* Cancelling the event prevents displaying the marker.
|
|
1310
1344
|
*/
|
|
1311
1345
|
markerCreated = new EventEmitter();
|
|
1312
1346
|
/**
|
|
1313
|
-
* Fires after the map viewport
|
|
1347
|
+
* Fires after the map viewport completes panning.
|
|
1314
1348
|
*/
|
|
1315
1349
|
panEnd = new EventEmitter();
|
|
1316
1350
|
/**
|
|
1317
|
-
*
|
|
1351
|
+
* Fires while the map viewport is being moved.
|
|
1318
1352
|
*/
|
|
1319
1353
|
pan = new EventEmitter();
|
|
1320
1354
|
/**
|
|
1321
|
-
*
|
|
1355
|
+
* Fires when the map resets.
|
|
1322
1356
|
*
|
|
1323
1357
|
* This typically occurs on initial load and after a zoom/center change.
|
|
1324
1358
|
*/
|
|
1325
1359
|
reset = new EventEmitter();
|
|
1326
1360
|
/**
|
|
1327
|
-
*
|
|
1361
|
+
* Fires when a shape is clicked or tapped.
|
|
1328
1362
|
*/
|
|
1329
1363
|
shapeClick = new EventEmitter();
|
|
1330
1364
|
/**
|
|
1331
|
-
*
|
|
1365
|
+
* Fires when a shape is created, but is not rendered yet.
|
|
1332
1366
|
*/
|
|
1333
1367
|
shapeCreated = new EventEmitter();
|
|
1334
1368
|
/**
|
|
1335
|
-
*
|
|
1369
|
+
* Fires when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
|
|
1336
1370
|
*/
|
|
1337
1371
|
shapeFeatureCreated = new EventEmitter();
|
|
1338
1372
|
/**
|
|
1339
|
-
*
|
|
1373
|
+
* Fires when the mouse enters a shape.
|
|
1340
1374
|
*
|
|
1341
1375
|
* > This event will fire reliably only for shapes that have set fill color.
|
|
1342
1376
|
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
1343
1377
|
*/
|
|
1344
1378
|
shapeMouseEnter = new EventEmitter();
|
|
1345
1379
|
/**
|
|
1346
|
-
*
|
|
1380
|
+
* Fires when the mouse leaves a shape.
|
|
1347
1381
|
*
|
|
1348
1382
|
* > This event will fire reliably only for shapes that have set fill color.
|
|
1349
1383
|
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
1350
1384
|
*/
|
|
1351
1385
|
shapeMouseLeave = new EventEmitter();
|
|
1352
1386
|
/**
|
|
1353
|
-
*
|
|
1387
|
+
* Fires when the map zoom level is about to change.
|
|
1354
1388
|
*
|
|
1355
1389
|
* Cancelling the event will prevent the user action.
|
|
1356
1390
|
*/
|
|
1357
1391
|
zoomStart = new EventEmitter();
|
|
1358
1392
|
/**
|
|
1359
|
-
*
|
|
1393
|
+
* Fires when the map zoom level changes.
|
|
1360
1394
|
*/
|
|
1361
1395
|
zoomEnd = new EventEmitter();
|
|
1362
1396
|
/**
|
|
1363
|
-
*
|
|
1397
|
+
* Fires when the map center has been changed.
|
|
1364
1398
|
*/
|
|
1365
1399
|
centerChange = new EventEmitter();
|
|
1366
1400
|
/**
|
|
1367
|
-
*
|
|
1401
|
+
* Fires when the map zoom level has been changed.
|
|
1368
1402
|
*/
|
|
1369
1403
|
zoomChange = new EventEmitter();
|
|
1370
1404
|
tooltipInstance;
|
|
@@ -1451,7 +1485,7 @@ class MapComponent {
|
|
|
1451
1485
|
}
|
|
1452
1486
|
}
|
|
1453
1487
|
/**
|
|
1454
|
-
*
|
|
1488
|
+
* Gets the marker layers instances.
|
|
1455
1489
|
*/
|
|
1456
1490
|
get layers() {
|
|
1457
1491
|
return this.instance?.layers;
|
|
@@ -1469,92 +1503,95 @@ class MapComponent {
|
|
|
1469
1503
|
this.instance?.extent(extent);
|
|
1470
1504
|
}
|
|
1471
1505
|
/**
|
|
1472
|
-
* Detects the size
|
|
1473
|
-
* Resizing
|
|
1506
|
+
* Detects the container size and redraws the Map.
|
|
1507
|
+
* Resizing happens automatically unless you set `resizeRateLimit` to `0`.
|
|
1474
1508
|
*/
|
|
1475
1509
|
resize() {
|
|
1476
1510
|
//this.instance?.resize();
|
|
1477
1511
|
}
|
|
1478
1512
|
/**
|
|
1479
|
-
*
|
|
1513
|
+
* Gets the size of the visible map area.
|
|
1480
1514
|
*
|
|
1481
|
-
* @returns The
|
|
1515
|
+
* @returns {Object} The width and height of the visible map area.
|
|
1482
1516
|
*/
|
|
1483
1517
|
viewSize() {
|
|
1484
1518
|
return this.instance?.viewSize();
|
|
1485
1519
|
}
|
|
1486
1520
|
/**
|
|
1487
|
-
*
|
|
1521
|
+
* Gets event coordinates relative to the map element.
|
|
1522
|
+
* Offset coordinates do not sync to a specific map location.
|
|
1488
1523
|
*
|
|
1489
|
-
* @param e The mouse event.
|
|
1490
|
-
* @returns The event coordinates relative to the map element.
|
|
1524
|
+
* @param {any} e The mouse event.
|
|
1525
|
+
* @returns {geometry.Point} The event coordinates relative to the map element.
|
|
1491
1526
|
*/
|
|
1492
1527
|
eventOffset(e) {
|
|
1493
1528
|
return this.instance?.eventOffset(e);
|
|
1494
1529
|
}
|
|
1495
1530
|
/**
|
|
1496
|
-
*
|
|
1531
|
+
* Gets projected layer coordinates for this mouse event.
|
|
1532
|
+
* Layer coordinates are absolute and change only when zoom level changes.
|
|
1497
1533
|
*
|
|
1498
|
-
* @param e The mouse event.
|
|
1499
|
-
* @returns The projected
|
|
1534
|
+
* @param {any} e The mouse event.
|
|
1535
|
+
* @returns {geometry.Point} The projected layer coordinates for this event.
|
|
1500
1536
|
*/
|
|
1501
1537
|
eventToLayer(e) {
|
|
1502
1538
|
return this.instance?.eventToLayer(e);
|
|
1503
1539
|
}
|
|
1504
1540
|
/**
|
|
1505
|
-
*
|
|
1541
|
+
* Gets the geographic location for this mouse event.
|
|
1506
1542
|
*
|
|
1507
|
-
* @param e The mouse event.
|
|
1508
|
-
* @returns The geographic location
|
|
1543
|
+
* @param {any} e The mouse event.
|
|
1544
|
+
* @returns {geometry.Point} The geographic location for this mouse event.
|
|
1509
1545
|
*/
|
|
1510
1546
|
eventToLocation(e) {
|
|
1511
1547
|
return this.instance?.eventToLocation(e);
|
|
1512
1548
|
}
|
|
1513
1549
|
/**
|
|
1514
|
-
*
|
|
1515
|
-
*
|
|
1550
|
+
* Gets relative view coordinates for this mouse event.
|
|
1551
|
+
* Layer elements positioned on these coordinates appear under the mouse cursor.
|
|
1552
|
+
* View coordinates become invalid after a map reset.
|
|
1516
1553
|
*
|
|
1517
|
-
* @param e The mouse event.
|
|
1518
|
-
* @returns The relative
|
|
1554
|
+
* @param {any} e The mouse event.
|
|
1555
|
+
* @returns {geometry.Point} The relative view coordinates for this mouse event.
|
|
1519
1556
|
*/
|
|
1520
1557
|
eventToView(e) {
|
|
1521
1558
|
return this.instance?.eventToView(e);
|
|
1522
1559
|
}
|
|
1523
1560
|
/**
|
|
1524
|
-
*
|
|
1561
|
+
* Converts layer coordinates to geographic location.
|
|
1525
1562
|
*
|
|
1526
|
-
* @param point The layer
|
|
1527
|
-
* @param zoom Optional.
|
|
1528
|
-
* @returns The geographic location
|
|
1563
|
+
* @param {geometry.Point | number[]} point The layer coordinates. Arrays use x, y order.
|
|
1564
|
+
* @param {number} zoom Optional. Zoom level to use. Defaults to current zoom level.
|
|
1565
|
+
* @returns {Location} The geographic location for the layer coordinates.
|
|
1529
1566
|
*/
|
|
1530
1567
|
layerToLocation(point, zoom) {
|
|
1531
1568
|
return this.instance?.layerToLocation(point, zoom);
|
|
1532
1569
|
}
|
|
1533
1570
|
/**
|
|
1534
|
-
*
|
|
1571
|
+
* Gets layer coordinates for a geographic location.
|
|
1535
1572
|
*
|
|
1536
|
-
* @param location The geographic location.
|
|
1537
|
-
* @param zoom Optional.
|
|
1538
|
-
* @returns The layer
|
|
1573
|
+
* @param {Location | number[]} location The geographic location. Arrays use [Latitude, Longitude] order.
|
|
1574
|
+
* @param {number} zoom Optional. Zoom level to use. Defaults to current zoom level.
|
|
1575
|
+
* @returns {geometry.Point} The layer coordinates.
|
|
1539
1576
|
*/
|
|
1540
1577
|
locationToLayer(location, zoom) {
|
|
1541
1578
|
return this.instance?.locationToLayer(location, zoom);
|
|
1542
1579
|
}
|
|
1543
1580
|
/**
|
|
1544
|
-
*
|
|
1581
|
+
* Gets view coordinates for a geographic location.
|
|
1545
1582
|
*
|
|
1546
|
-
* @param location The geographic location.
|
|
1547
|
-
* @returns The view coordinates
|
|
1583
|
+
* @param {Location | number[]} location The geographic location. Arrays use [Latitude, Longitude] order.
|
|
1584
|
+
* @returns {geometry.Point} The view coordinates for the geographic location.
|
|
1548
1585
|
*/
|
|
1549
1586
|
locationToView(location) {
|
|
1550
1587
|
return this.instance?.locationToView(location);
|
|
1551
1588
|
}
|
|
1552
1589
|
/**
|
|
1553
|
-
*
|
|
1590
|
+
* Gets the geographic location for view coordinates.
|
|
1554
1591
|
*
|
|
1555
|
-
* @param point The view coordinates.
|
|
1556
|
-
* @param zoom Optional.
|
|
1557
|
-
* @returns The geographic location
|
|
1592
|
+
* @param {geometry.Point | number[]} point The view coordinates. Arrays use x, y order.
|
|
1593
|
+
* @param {number} zoom Optional. Zoom level to use. Defaults to current zoom level.
|
|
1594
|
+
* @returns {Location} The geographic location for the view coordinates.
|
|
1558
1595
|
*/
|
|
1559
1596
|
viewToLocation(point, zoom) {
|
|
1560
1597
|
return this.instance?.viewToLocation(point, zoom);
|
|
@@ -1865,7 +1902,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1865
1902
|
}] } });
|
|
1866
1903
|
|
|
1867
1904
|
/**
|
|
1868
|
-
*
|
|
1905
|
+
* Represents the Kendo UI Layers component for Angular. Contains a collection of one or more map layers.
|
|
1906
|
+
*
|
|
1907
|
+
* @example
|
|
1908
|
+
* ```typescript
|
|
1909
|
+
* @Component({
|
|
1910
|
+
* selector: 'my-app',
|
|
1911
|
+
* template: `
|
|
1912
|
+
* <kendo-map>
|
|
1913
|
+
* <kendo-map-layers>
|
|
1914
|
+
* <kendo-map-tile-layer [urlTemplate]="tileUrl"></kendo-map-tile-layer>
|
|
1915
|
+
* <kendo-map-shape-layer [data]="shapeData"></kendo-map-shape-layer>
|
|
1916
|
+
* </kendo-map-layers>
|
|
1917
|
+
* </kendo-map>
|
|
1918
|
+
* `
|
|
1919
|
+
* })
|
|
1920
|
+
* export class AppComponent {
|
|
1921
|
+
* public tileUrl = (args: any) => `https://tile.openstreetmap.org/${args.z}/${args.x}/${args.y}.png`;
|
|
1922
|
+
* public shapeData = [];
|
|
1923
|
+
* }
|
|
1924
|
+
* ```
|
|
1869
1925
|
*/
|
|
1870
1926
|
class LayersComponent extends CollectionComponent {
|
|
1871
1927
|
configurationService;
|
|
@@ -1890,30 +1946,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1890
1946
|
}], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionService }]; } });
|
|
1891
1947
|
|
|
1892
1948
|
/**
|
|
1893
|
-
*
|
|
1949
|
+
* Represents the Kendo UI MarkerLayer component for Angular. Displays data as markers on vector shape layers for marker maps.
|
|
1950
|
+
*
|
|
1951
|
+
* @example
|
|
1952
|
+
* ```typescript
|
|
1953
|
+
* @Component({
|
|
1954
|
+
* selector: 'my-app',
|
|
1955
|
+
* template: `
|
|
1956
|
+
* <kendo-map>
|
|
1957
|
+
* <kendo-map-marker-layer
|
|
1958
|
+
* [data]="markerData"
|
|
1959
|
+
* locationField="location"
|
|
1960
|
+
* titleField="title"
|
|
1961
|
+
* shape="pin">
|
|
1962
|
+
* </kendo-map-marker-layer>
|
|
1963
|
+
* </kendo-map>
|
|
1964
|
+
* `
|
|
1965
|
+
* })
|
|
1966
|
+
* export class AppComponent {
|
|
1967
|
+
* public markerData = [
|
|
1968
|
+
* { location: [40.7128, -74.0060], title: "New York" }
|
|
1969
|
+
* ];
|
|
1970
|
+
* }
|
|
1971
|
+
* ```
|
|
1894
1972
|
*/
|
|
1895
1973
|
class MarkerLayerComponent extends LayerComponent {
|
|
1896
1974
|
configurationService;
|
|
1897
1975
|
collectionService;
|
|
1898
1976
|
sanitizer;
|
|
1899
1977
|
/**
|
|
1900
|
-
*
|
|
1978
|
+
* Sets the array of data items for this layer.
|
|
1901
1979
|
*/
|
|
1902
1980
|
data;
|
|
1903
1981
|
/**
|
|
1904
|
-
*
|
|
1905
|
-
*
|
|
1906
|
-
* The field should be an array with two numbers - latitude and longitude in decimal degrees.
|
|
1982
|
+
* Sets the data item field which contains the marker location.
|
|
1983
|
+
* The field should be an array with two numbers — latitude and longitude in decimal degrees.
|
|
1907
1984
|
*/
|
|
1908
1985
|
locationField;
|
|
1909
1986
|
/**
|
|
1910
|
-
*
|
|
1987
|
+
* Sets the data item field which contains the marker title.
|
|
1911
1988
|
*/
|
|
1912
1989
|
titleField;
|
|
1913
1990
|
/**
|
|
1914
|
-
*
|
|
1915
|
-
*
|
|
1916
|
-
* Marker shapes are implemented as CSS classes on the marker element (`span.k-marker`). For example "pinTarget" is rendered as `k-marker-pin-target`.
|
|
1991
|
+
* Sets the default marker shape for data-bound markers. Supported marker shapes are `pinTarget` and `pin`.
|
|
1992
|
+
* Marker shapes are implemented as CSS classes on the marker element (`span.k-marker`). For example `pinTarget` is rendered as `k-marker-pin-target`.
|
|
1917
1993
|
*/
|
|
1918
1994
|
shape;
|
|
1919
1995
|
constructor(configurationService, collectionService, sanitizer) {
|
|
@@ -1957,18 +2033,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1957
2033
|
}] } });
|
|
1958
2034
|
|
|
1959
2035
|
/**
|
|
1960
|
-
* Defines a vector shape layer bound to GeoJSON data.
|
|
2036
|
+
* Represents the Kendo UI ShapeLayer component for Angular. Defines a vector shape layer bound to GeoJSON data.
|
|
2037
|
+
*
|
|
2038
|
+
* @example
|
|
2039
|
+
* ```typescript
|
|
2040
|
+
* @Component({
|
|
2041
|
+
* selector: 'my-app',
|
|
2042
|
+
* template: `
|
|
2043
|
+
* <kendo-map>
|
|
2044
|
+
* <kendo-map-shape-layer
|
|
2045
|
+
* [data]="geoJsonData"
|
|
2046
|
+
* [style]="shapeStyle">
|
|
2047
|
+
* </kendo-map-shape-layer>
|
|
2048
|
+
* </kendo-map>
|
|
2049
|
+
* `
|
|
2050
|
+
* })
|
|
2051
|
+
* export class AppComponent {
|
|
2052
|
+
* public geoJsonData = { type: "FeatureCollection", features: [] };
|
|
2053
|
+
* public shapeStyle = { fill: { color: "#007acc" }, stroke: { color: "#ffffff" } };
|
|
2054
|
+
* }
|
|
2055
|
+
* ```
|
|
1961
2056
|
*/
|
|
1962
2057
|
class ShapeLayerComponent extends LayerComponent {
|
|
1963
2058
|
configurationService;
|
|
1964
2059
|
collectionService;
|
|
1965
2060
|
sanitizer;
|
|
1966
2061
|
/**
|
|
1967
|
-
*
|
|
2062
|
+
* Sets the array of data items for this layer.
|
|
1968
2063
|
*/
|
|
1969
2064
|
data;
|
|
1970
2065
|
/**
|
|
1971
|
-
*
|
|
2066
|
+
* Sets the default style for shapes.
|
|
1972
2067
|
*/
|
|
1973
2068
|
style;
|
|
1974
2069
|
constructor(configurationService, collectionService, sanitizer) {
|
|
@@ -2008,26 +2103,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2008
2103
|
}] } });
|
|
2009
2104
|
|
|
2010
2105
|
/**
|
|
2011
|
-
*
|
|
2106
|
+
* Represents the Kendo UI TileLayer component for Angular. Displays raster map tiles from various sources.
|
|
2107
|
+
*
|
|
2108
|
+
* @example
|
|
2109
|
+
* ```typescript
|
|
2110
|
+
* @Component({
|
|
2111
|
+
* selector: 'my-app',
|
|
2112
|
+
* template: `
|
|
2113
|
+
* <kendo-map>
|
|
2114
|
+
* <kendo-map-tile-layer
|
|
2115
|
+
* [urlTemplate]="tileUrlTemplate"
|
|
2116
|
+
* [subdomains]="['a', 'b', 'c']"
|
|
2117
|
+
* [tileSize]="256">
|
|
2118
|
+
* </kendo-map-tile-layer>
|
|
2119
|
+
* </kendo-map>
|
|
2120
|
+
* `
|
|
2121
|
+
* })
|
|
2122
|
+
* export class AppComponent {
|
|
2123
|
+
* public tileUrlTemplate = (args: any) => `https://${args.subdomain}.tile.openstreetmap.org/${args.z}/${args.x}/${args.y}.png`;
|
|
2124
|
+
* }
|
|
2125
|
+
* ```
|
|
2012
2126
|
*/
|
|
2013
2127
|
class TileLayerComponent extends LayerComponent {
|
|
2014
2128
|
configurationService;
|
|
2015
2129
|
collectionService;
|
|
2016
2130
|
sanitizer;
|
|
2017
2131
|
/**
|
|
2018
|
-
*
|
|
2132
|
+
* Sets the size of the image tile in pixels.
|
|
2019
2133
|
*
|
|
2020
2134
|
* @default 256
|
|
2021
2135
|
*/
|
|
2022
2136
|
tileSize;
|
|
2023
2137
|
/**
|
|
2024
|
-
*
|
|
2025
|
-
*
|
|
2026
|
-
* Alternating between different subdomains allows more requests to be executed in parallel.
|
|
2138
|
+
* Sets a list of subdomains to use for loading tiles.
|
|
2139
|
+
* Alternating between different subdomains allows more requests to execute in parallel.
|
|
2027
2140
|
*/
|
|
2028
2141
|
subdomains;
|
|
2029
2142
|
/**
|
|
2030
|
-
*
|
|
2143
|
+
* Sets a function that returns an image URL for each tile position.
|
|
2031
2144
|
*/
|
|
2032
2145
|
urlTemplate;
|
|
2033
2146
|
constructor(configurationService, collectionService, sanitizer) {
|
|
@@ -2078,6 +2191,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2078
2191
|
* * `layerIndex: number`—The index of the layer for the tooltip.
|
|
2079
2192
|
* * `location: Location`—The location of the bubble.
|
|
2080
2193
|
* * `value: number`—The value of the bubble.
|
|
2194
|
+
*
|
|
2195
|
+
* @example
|
|
2196
|
+
* ```typescript
|
|
2197
|
+
* @Component({
|
|
2198
|
+
* selector: 'my-app',
|
|
2199
|
+
* template: `
|
|
2200
|
+
* <kendo-map>
|
|
2201
|
+
* <kendo-map-layer type="bubble" [data]="data">
|
|
2202
|
+
* <kendo-map-bubble-layer-tooltip>
|
|
2203
|
+
* <ng-template kendoMapBubbleTooltipTemplate let-dataItem="dataItem" let-value="value">
|
|
2204
|
+
* <div>{{ dataItem.name }}: {{ value }}</div>
|
|
2205
|
+
* </ng-template>
|
|
2206
|
+
* </kendo-map-bubble-layer-tooltip>
|
|
2207
|
+
* </kendo-map-layer>
|
|
2208
|
+
* </kendo-map>
|
|
2209
|
+
* `
|
|
2210
|
+
* })
|
|
2211
|
+
* export class AppComponent {
|
|
2212
|
+
* public data = [{ name: 'City', value: 100000 }];
|
|
2213
|
+
* }
|
|
2214
|
+
* ```
|
|
2081
2215
|
*/
|
|
2082
2216
|
class BubbleTooltipTemplateDirective {
|
|
2083
2217
|
templateRef;
|
|
@@ -2106,6 +2240,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2106
2240
|
* * `title: string`—The marker title.
|
|
2107
2241
|
* * `layerIndex: number`—The index of the layer for the tooltip.
|
|
2108
2242
|
* * `location: Location`—The marker location.
|
|
2243
|
+
*
|
|
2244
|
+
* @example
|
|
2245
|
+
* ```typescript
|
|
2246
|
+
* @Component({
|
|
2247
|
+
* selector: 'my-app',
|
|
2248
|
+
* template: `
|
|
2249
|
+
* <kendo-map>
|
|
2250
|
+
* <kendo-map-layer type="marker" [data]="markers">
|
|
2251
|
+
* <kendo-map-marker-layer-tooltip>
|
|
2252
|
+
* <ng-template kendoMapMarkerTooltipTemplate let-title="title" let-location="location">
|
|
2253
|
+
* <div>{{ title }} at {{ location.lat }}, {{ location.lng }}</div>
|
|
2254
|
+
* </ng-template>
|
|
2255
|
+
* </kendo-map-marker-layer-tooltip>
|
|
2256
|
+
* </kendo-map-layer>
|
|
2257
|
+
* </kendo-map>
|
|
2258
|
+
* `
|
|
2259
|
+
* })
|
|
2260
|
+
* export class AppComponent {
|
|
2261
|
+
* public markers = [{ title: 'Office', location: [42.6977, 23.3219] }];
|
|
2262
|
+
* }
|
|
2263
|
+
* ```
|
|
2109
2264
|
*/
|
|
2110
2265
|
class MarkerTooltipTemplateDirective {
|
|
2111
2266
|
templateRef;
|
|
@@ -2134,6 +2289,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2134
2289
|
* * `dataItem: any`—The original data item used to create the shape.
|
|
2135
2290
|
* * `layerIndex: number`—The index of the layer for the tooltip.
|
|
2136
2291
|
* * `location: Location`—The location of the center of the shape.
|
|
2292
|
+
*
|
|
2293
|
+
* @example
|
|
2294
|
+
* ```typescript
|
|
2295
|
+
* @Component({
|
|
2296
|
+
* selector: 'my-app',
|
|
2297
|
+
* template: `
|
|
2298
|
+
* <kendo-map>
|
|
2299
|
+
* <kendo-map-layer type="shape" [data]="data">
|
|
2300
|
+
* <kendo-map-shape-layer-tooltip>
|
|
2301
|
+
* <ng-template kendoMapShapeTooltipTemplate let-dataItem="dataItem" let-layerIndex="layerIndex">
|
|
2302
|
+
* <div>Shape: {{ dataItem.properties.name }} (Layer {{ layerIndex }})</div>
|
|
2303
|
+
* </ng-template>
|
|
2304
|
+
* </kendo-map-shape-layer-tooltip>
|
|
2305
|
+
* </kendo-map-layer>
|
|
2306
|
+
* </kendo-map>
|
|
2307
|
+
* `
|
|
2308
|
+
* })
|
|
2309
|
+
* export class AppComponent {
|
|
2310
|
+
* public data = [ ... ]; // GeoJSON data for shapes
|
|
2311
|
+
* }
|
|
2312
|
+
* ```
|
|
2137
2313
|
*/
|
|
2138
2314
|
class ShapeTooltipTemplateDirective {
|
|
2139
2315
|
templateRef;
|
|
@@ -2154,7 +2330,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2154
2330
|
}] }]; } });
|
|
2155
2331
|
|
|
2156
2332
|
/**
|
|
2157
|
-
*
|
|
2333
|
+
* Represents the Kendo UI BubbleTooltip component for Angular.
|
|
2334
|
+
*
|
|
2335
|
+
* Configures the [Bubble Layer Tooltip](slug:bubble_layers_map#toc-tooltips).
|
|
2336
|
+
*
|
|
2337
|
+
* @example
|
|
2338
|
+
* ```typescript
|
|
2339
|
+
* @Component({
|
|
2340
|
+
* selector: 'my-app',
|
|
2341
|
+
* template: `
|
|
2342
|
+
* <kendo-map>
|
|
2343
|
+
* <kendo-map-layer type="bubble" [data]="bubbleData">
|
|
2344
|
+
* <kendo-map-bubble-layer-tooltip>
|
|
2345
|
+
* <ng-template kendoMapBubbleTooltipTemplate let-dataItem="dataItem" let-value="value">
|
|
2346
|
+
* <div>{{ dataItem.name }}: {{ value }}</div>
|
|
2347
|
+
* </ng-template>
|
|
2348
|
+
* </kendo-map-bubble-layer-tooltip>
|
|
2349
|
+
* </kendo-map-layer>
|
|
2350
|
+
* </kendo-map>
|
|
2351
|
+
* `
|
|
2352
|
+
* })
|
|
2353
|
+
* export class AppComponent {
|
|
2354
|
+
* public bubbleData = [{ name: 'Population', value: 50000 }];
|
|
2355
|
+
* }
|
|
2356
|
+
* ```
|
|
2158
2357
|
*/
|
|
2159
2358
|
class BubbleTooltipComponent extends SettingsComponent {
|
|
2160
2359
|
configurationService;
|
|
@@ -2186,7 +2385,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2186
2385
|
}] } });
|
|
2187
2386
|
|
|
2188
2387
|
/**
|
|
2189
|
-
*
|
|
2388
|
+
* Represents the Kendo UI MarkerTooltip component for Angular.
|
|
2389
|
+
*
|
|
2390
|
+
* Configures the [Marker Layer Tooltip](slug:marker_layers_map#toc-tooltips).
|
|
2391
|
+
*
|
|
2392
|
+
* @example
|
|
2393
|
+
* ```typescript
|
|
2394
|
+
* @Component({
|
|
2395
|
+
* selector: 'my-app',
|
|
2396
|
+
* template: `
|
|
2397
|
+
* <kendo-map>
|
|
2398
|
+
* <kendo-map-layer type="marker" [data]="markers">
|
|
2399
|
+
* <kendo-map-marker-layer-tooltip>
|
|
2400
|
+
* <ng-template kendoMapMarkerTooltipTemplate let-title="title">
|
|
2401
|
+
* <div>Marker: {{ title }}</div>
|
|
2402
|
+
* </ng-template>
|
|
2403
|
+
* </kendo-map-marker-layer-tooltip>
|
|
2404
|
+
* </kendo-map-layer>
|
|
2405
|
+
* </kendo-map>
|
|
2406
|
+
* `
|
|
2407
|
+
* })
|
|
2408
|
+
* export class AppComponent {
|
|
2409
|
+
* public markers = [{ title: 'Location A' }];
|
|
2410
|
+
* }
|
|
2411
|
+
* ```
|
|
2190
2412
|
*/
|
|
2191
2413
|
class MarkerTooltipComponent extends SettingsComponent {
|
|
2192
2414
|
configurationService;
|
|
@@ -2218,7 +2440,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2218
2440
|
}] } });
|
|
2219
2441
|
|
|
2220
2442
|
/**
|
|
2221
|
-
*
|
|
2443
|
+
* Represents the Kendo UI ShapeTooltip component for Angular.
|
|
2444
|
+
*
|
|
2445
|
+
* Configures the [Shape Layer Tooltip](slug:shape_layers_map#toc-tooltips).
|
|
2446
|
+
*
|
|
2447
|
+
* @example
|
|
2448
|
+
* ```typescript
|
|
2449
|
+
* @Component({
|
|
2450
|
+
* selector: 'my-app',
|
|
2451
|
+
* template: `
|
|
2452
|
+
* <kendo-map>
|
|
2453
|
+
* <kendo-map-layer type="shape" [data]="shapeData">
|
|
2454
|
+
* <kendo-map-shape-layer-tooltip>
|
|
2455
|
+
* <ng-template kendoMapShapeTooltipTemplate let-dataItem="dataItem">
|
|
2456
|
+
* <div>{{ dataItem.properties.name }}</div>
|
|
2457
|
+
* </ng-template>
|
|
2458
|
+
* </kendo-map-shape-layer-tooltip>
|
|
2459
|
+
* </kendo-map-layer>
|
|
2460
|
+
* </kendo-map>
|
|
2461
|
+
* `
|
|
2462
|
+
* })
|
|
2463
|
+
* export class AppComponent {
|
|
2464
|
+
* public shapeData = [ ... ]; // GeoJSON data for shapes
|
|
2465
|
+
* }
|
|
2466
|
+
* ```
|
|
2222
2467
|
*/
|
|
2223
2468
|
class ShapeTooltipComponent extends SettingsComponent {
|
|
2224
2469
|
configurationService;
|
|
@@ -2250,8 +2495,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2250
2495
|
}] } });
|
|
2251
2496
|
|
|
2252
2497
|
/**
|
|
2253
|
-
* Utility array that contains all `Map` related components and directives.
|
|
2254
|
-
*/
|
|
2498
|
+
* Utility array that contains all `Map` related components and directives.
|
|
2499
|
+
*/
|
|
2255
2500
|
const KENDO_MAP = [
|
|
2256
2501
|
BubbleLayerComponent,
|
|
2257
2502
|
BubbleTooltipComponent,
|
|
@@ -2270,24 +2515,24 @@ const KENDO_MAP = [
|
|
|
2270
2515
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
2271
2516
|
/**
|
|
2272
2517
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
2273
|
-
* definition for the Map component.
|
|
2274
|
-
*
|
|
2275
|
-
*
|
|
2276
|
-
* ```ts
|
|
2277
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
2278
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
2279
|
-
* import { NgModule } from '@angular/core';
|
|
2280
|
-
* import { MapModule } from '@progress/kendo-angular-map';
|
|
2281
|
-
* import { AppComponent } from './app.component';
|
|
2282
|
-
*
|
|
2283
|
-
* @NgModule({
|
|
2284
|
-
* declarations: [AppComponent],
|
|
2285
|
-
* imports:
|
|
2286
|
-
* bootstrap:
|
|
2287
|
-
* })
|
|
2288
|
-
* export class AppModule {}
|
|
2289
|
-
|
|
2290
|
-
*/
|
|
2518
|
+
* definition for the Map component.
|
|
2519
|
+
*
|
|
2520
|
+
* @example
|
|
2521
|
+
* ```ts
|
|
2522
|
+
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
2523
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
2524
|
+
* import { NgModule } from '@angular/core';
|
|
2525
|
+
* import { MapModule } from '@progress/kendo-angular-map';
|
|
2526
|
+
* import { AppComponent } from './app.component';
|
|
2527
|
+
*
|
|
2528
|
+
* @NgModule({
|
|
2529
|
+
* declarations: [AppComponent],
|
|
2530
|
+
* imports: [BrowserModule, BrowserAnimationsModule, MapModule],
|
|
2531
|
+
* bootstrap: [AppComponent]
|
|
2532
|
+
* })
|
|
2533
|
+
* export class AppModule {}
|
|
2534
|
+
* ```
|
|
2535
|
+
*/
|
|
2291
2536
|
class MapModule {
|
|
2292
2537
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2293
2538
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: MapModule, imports: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent], exports: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent] });
|