@bluehalo/ngx-leaflet 20.0.0 → 21.0.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.
package/CHANGES.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 21.0
4
+ Support for Angular.io 21.
5
+
6
+ One note for v21 - Angular moved to Zoneless detection by default (https://angular.dev/guide/zoneless). This has implications, particularly for this library. For example, events are emitted outside of the change detection zone.
7
+ You may need to make some changes to your application if you rely on the events generated by the maps. See the migration guide for details (https://angular.dev/update-guide?v=20.0-21.0&l=1).
8
+
9
+ ## 20.0
10
+ Support for Angular.io 20.
11
+
3
12
  ## 19.0
4
13
  Support for Angular.io 19.
5
14
 
package/README.md CHANGED
@@ -171,7 +171,7 @@ options = {
171
171
  Changes to leafletOptions are ignored after they are initially set.
172
172
  This is because these options are passed into the map constructor, so they can't be changed anyways.
173
173
  So, make sure the object exists before the map is created.
174
- You'll want to create the object in ```ngOnInit``` or hide the map DOM element with ```*ngIf``` until you can create the options object.
174
+ You'll want to create the object in ```ngOnInit``` or hide the map DOM element with ```@if``` until you can create the options object.
175
175
 
176
176
 
177
177
  ### Add a Layers Control
@@ -89,7 +89,7 @@ class LeafletDirective {
89
89
  /*
90
90
  * The following code is to address an issue with our (basic) implementation of
91
91
  * zooming and panning. From our testing, it seems that a pan operation followed
92
- * by a zoom operation in the same thread will interfere with eachother. The zoom
92
+ * by a zoom operation in the same thread will interfere with each other. The zoom
93
93
  * operation interrupts/cancels the pan, resulting in a final center point that is
94
94
  * inaccurate. The solution seems to be to either separate them with a timeout or
95
95
  * to collapse them into a setView call.
@@ -254,10 +254,10 @@ class LeafletDirective {
254
254
  this.map.setMaxZoom(zoom);
255
255
  }
256
256
  }
257
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
258
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.3", type: LeafletDirective, isStandalone: true, selector: "[leaflet]", inputs: { fitBoundsOptions: ["leafletFitBoundsOptions", "fitBoundsOptions"], panOptions: ["leafletPanOptions", "panOptions"], zoomOptions: ["leafletZoomOptions", "zoomOptions"], zoomPanOptions: ["leafletZoomPanOptions", "zoomPanOptions"], options: ["leafletOptions", "options"], zoom: ["leafletZoom", "zoom"], center: ["leafletCenter", "center"], fitBounds: ["leafletFitBounds", "fitBounds"], maxBounds: ["leafletMaxBounds", "maxBounds"], minZoom: ["leafletMinZoom", "minZoom"], maxZoom: ["leafletMaxZoom", "maxZoom"] }, outputs: { mapReady: "leafletMapReady", zoomChange: "leafletZoomChange", centerChange: "leafletCenterChange", onClick: "leafletClick", onDoubleClick: "leafletDoubleClick", onMouseDown: "leafletMouseDown", onMouseUp: "leafletMouseUp", onMouseMove: "leafletMouseMove", onMouseOver: "leafletMouseOver", onMouseOut: "leafletMouseOut", onMapMove: "leafletMapMove", onMapMoveStart: "leafletMapMoveStart", onMapMoveEnd: "leafletMapMoveEnd", onMapZoom: "leafletMapZoom", onMapZoomStart: "leafletMapZoomStart", onMapZoomEnd: "leafletMapZoomEnd" }, host: { listeners: { "window:resize": "onResize()" } }, usesOnChanges: true, ngImport: i0 }); }
257
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
258
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.3", type: LeafletDirective, isStandalone: true, selector: "[leaflet]", inputs: { fitBoundsOptions: ["leafletFitBoundsOptions", "fitBoundsOptions"], panOptions: ["leafletPanOptions", "panOptions"], zoomOptions: ["leafletZoomOptions", "zoomOptions"], zoomPanOptions: ["leafletZoomPanOptions", "zoomPanOptions"], options: ["leafletOptions", "options"], zoom: ["leafletZoom", "zoom"], center: ["leafletCenter", "center"], fitBounds: ["leafletFitBounds", "fitBounds"], maxBounds: ["leafletMaxBounds", "maxBounds"], minZoom: ["leafletMinZoom", "minZoom"], maxZoom: ["leafletMaxZoom", "maxZoom"] }, outputs: { mapReady: "leafletMapReady", zoomChange: "leafletZoomChange", centerChange: "leafletCenterChange", onClick: "leafletClick", onDoubleClick: "leafletDoubleClick", onMouseDown: "leafletMouseDown", onMouseUp: "leafletMouseUp", onMouseMove: "leafletMouseMove", onMouseOver: "leafletMouseOver", onMouseOut: "leafletMouseOut", onMapMove: "leafletMapMove", onMapMoveStart: "leafletMapMoveStart", onMapMoveEnd: "leafletMapMoveEnd", onMapZoom: "leafletMapZoom", onMapZoomStart: "leafletMapZoomStart", onMapZoomEnd: "leafletMapZoomEnd" }, host: { listeners: { "window:resize": "onResize()" } }, usesOnChanges: true, ngImport: i0 }); }
259
259
  }
260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletDirective, decorators: [{
260
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletDirective, decorators: [{
261
261
  type: Directive,
262
262
  args: [{
263
263
  selector: '[leaflet]',
@@ -414,10 +414,10 @@ class LeafletLayerDirective {
414
414
  l.off('add', this.onAddLayerHandler);
415
415
  l.off('remove', this.onRemoveLayerHandler);
416
416
  }
417
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletLayerDirective, deps: [{ token: LeafletDirective }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
418
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.3", type: LeafletLayerDirective, isStandalone: true, selector: "[leafletLayer]", inputs: { layer: ["leafletLayer", "layer"] }, outputs: { onAdd: "leafletLayerAdd", onRemove: "leafletLayerRemove" }, usesOnChanges: true, ngImport: i0 }); }
417
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletLayerDirective, deps: [{ token: LeafletDirective }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
418
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.3", type: LeafletLayerDirective, isStandalone: true, selector: "[leafletLayer]", inputs: { layer: ["leafletLayer", "layer"] }, outputs: { onAdd: "leafletLayerAdd", onRemove: "leafletLayerRemove" }, usesOnChanges: true, ngImport: i0 }); }
419
419
  }
420
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletLayerDirective, decorators: [{
420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletLayerDirective, decorators: [{
421
421
  type: Directive,
422
422
  args: [{
423
423
  selector: '[leafletLayer]',
@@ -499,10 +499,10 @@ class LeafletLayersDirective {
499
499
  }
500
500
  }
501
501
  }
502
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletLayersDirective, deps: [{ token: LeafletDirective }, { token: i0.IterableDiffers }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
503
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.3", type: LeafletLayersDirective, isStandalone: true, selector: "[leafletLayers]", inputs: { layers: ["leafletLayers", "layers"] }, ngImport: i0 }); }
502
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletLayersDirective, deps: [{ token: LeafletDirective }, { token: i0.IterableDiffers }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
503
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.3", type: LeafletLayersDirective, isStandalone: true, selector: "[leafletLayers]", inputs: { layers: ["leafletLayers", "layers"] }, ngImport: i0 }); }
504
504
  }
505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletLayersDirective, decorators: [{
505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletLayersDirective, decorators: [{
506
506
  type: Directive,
507
507
  args: [{
508
508
  selector: '[leafletLayers]',
@@ -661,10 +661,10 @@ class LeafletLayersControlDirective {
661
661
  }
662
662
  }
663
663
  }
664
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletLayersControlDirective, deps: [{ token: LeafletDirective }, { token: i0.KeyValueDiffers }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
665
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.3", type: LeafletLayersControlDirective, isStandalone: true, selector: "[leafletLayersControl]", inputs: { layersControlConfig: ["leafletLayersControl", "layersControlConfig"], layersControlOptions: ["leafletLayersControlOptions", "layersControlOptions"] }, outputs: { layersControlReady: "leafletLayersControlReady" }, ngImport: i0 }); }
664
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletLayersControlDirective, deps: [{ token: LeafletDirective }, { token: i0.KeyValueDiffers }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
665
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.3", type: LeafletLayersControlDirective, isStandalone: true, selector: "[leafletLayersControl]", inputs: { layersControlConfig: ["leafletLayersControl", "layersControlConfig"], layersControlOptions: ["leafletLayersControlOptions", "layersControlOptions"] }, outputs: { layersControlReady: "leafletLayersControlReady" }, ngImport: i0 }); }
666
666
  }
667
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletLayersControlDirective, decorators: [{
667
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletLayersControlDirective, decorators: [{
668
668
  type: Directive,
669
669
  args: [{
670
670
  selector: '[leafletLayersControl]',
@@ -768,10 +768,10 @@ class LeafletBaseLayersDirective {
768
768
  }
769
769
  }
770
770
  }
771
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletBaseLayersDirective, deps: [{ token: LeafletDirective }, { token: i0.KeyValueDiffers }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
772
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.3", type: LeafletBaseLayersDirective, isStandalone: true, selector: "[leafletBaseLayers]", inputs: { baseLayers: ["leafletBaseLayers", "baseLayers"], layersControlOptions: ["leafletLayersControlOptions", "layersControlOptions"] }, outputs: { layersControlReady: "leafletLayersControlReady" }, ngImport: i0 }); }
771
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletBaseLayersDirective, deps: [{ token: LeafletDirective }, { token: i0.KeyValueDiffers }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
772
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.3", type: LeafletBaseLayersDirective, isStandalone: true, selector: "[leafletBaseLayers]", inputs: { baseLayers: ["leafletBaseLayers", "baseLayers"], layersControlOptions: ["leafletLayersControlOptions", "layersControlOptions"] }, outputs: { layersControlReady: "leafletLayersControlReady" }, ngImport: i0 }); }
773
773
  }
774
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletBaseLayersDirective, decorators: [{
774
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletBaseLayersDirective, decorators: [{
775
775
  type: Directive,
776
776
  args: [{
777
777
  selector: '[leafletBaseLayers]',
@@ -788,8 +788,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImpor
788
788
  }] } });
789
789
 
790
790
  class LeafletModule {
791
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
792
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.3", ngImport: i0, type: LeafletModule, imports: [LeafletDirective,
791
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
792
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.3", ngImport: i0, type: LeafletModule, imports: [LeafletDirective,
793
793
  LeafletLayerDirective,
794
794
  LeafletLayersDirective,
795
795
  LeafletLayersControlDirective,
@@ -798,9 +798,9 @@ class LeafletModule {
798
798
  LeafletLayersDirective,
799
799
  LeafletLayersControlDirective,
800
800
  LeafletBaseLayersDirective] }); }
801
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletModule }); }
801
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletModule }); }
802
802
  }
803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: LeafletModule, decorators: [{
803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: LeafletModule, decorators: [{
804
804
  type: NgModule,
805
805
  args: [{
806
806
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"bluehalo-ngx-leaflet.mjs","sources":["../../../projects/ngx-leaflet/src/lib/core/leaflet.util.ts","../../../projects/ngx-leaflet/src/lib/core/leaflet.directive.ts","../../../projects/ngx-leaflet/src/lib/core/leaflet.directive.wrapper.ts","../../../projects/ngx-leaflet/src/lib/layers/leaflet-layer.directive.ts","../../../projects/ngx-leaflet/src/lib/layers/leaflet-layers.directive.ts","../../../projects/ngx-leaflet/src/lib/layers/control/leaflet-control-layers-changes.model.ts","../../../projects/ngx-leaflet/src/lib/layers/control/leaflet-control-layers.wrapper.ts","../../../projects/ngx-leaflet/src/lib/layers/control/leaflet-control-layers-config.model.ts","../../../projects/ngx-leaflet/src/lib/layers/control/leaflet-control-layers.directive.ts","../../../projects/ngx-leaflet/src/lib/layers/base/leaflet-baselayers.directive.ts","../../../projects/ngx-leaflet/src/lib/leaflet.module.ts","../../../projects/ngx-leaflet/src/lib/layers/leaflet-tile-layer-definition.model.ts","../../../projects/ngx-leaflet/src/bluehalo-ngx-leaflet.ts"],"sourcesContent":["import { EventEmitter, NgZone } from '@angular/core';\n\nexport class LeafletUtil {\n\n static mapToArray<T>(map: { [ key: string ]: T }): T[] {\n const toReturn: T[] = [];\n\n for (const k in map) {\n if (map.hasOwnProperty(k)) {\n toReturn.push(map[k]);\n }\n }\n\n return toReturn;\n }\n\n static handleEvent<T>(zone: NgZone, eventEmitter: EventEmitter<T>, event: T) {\n\n // Don't want to emit if there are no observers\n if (0 < eventEmitter.observers.length) {\n zone.run(() => {\n eventEmitter.emit(event);\n });\n }\n\n }\n}\n","import {\n Directive, ElementRef, EventEmitter, HostListener, Input, NgZone, OnChanges, OnDestroy, OnInit, Output,\n SimpleChange\n} from '@angular/core';\n\nimport { latLng, LatLng, LatLngBounds, LeafletEvent, LeafletMouseEvent, map, Map, MapOptions } from 'leaflet';\n\nimport { LeafletUtil } from './leaflet.util';\n\n@Directive({\n selector: '[leaflet]',\n})\nexport class LeafletDirective\n implements OnChanges, OnDestroy, OnInit {\n\n readonly DEFAULT_ZOOM = 1;\n readonly DEFAULT_CENTER = latLng(38.907192, -77.036871);\n readonly DEFAULT_FPZ_OPTIONS = {};\n\n resizeTimer: any;\n\n // Reference to the primary map object\n map: Map;\n\n @Input('leafletFitBoundsOptions') fitBoundsOptions = this.DEFAULT_FPZ_OPTIONS;\n @Input('leafletPanOptions') panOptions = this.DEFAULT_FPZ_OPTIONS;\n @Input('leafletZoomOptions') zoomOptions = this.DEFAULT_FPZ_OPTIONS;\n @Input('leafletZoomPanOptions') zoomPanOptions = this.DEFAULT_FPZ_OPTIONS;\n\n\n // Default configuration\n @Input('leafletOptions') options: MapOptions = {};\n\n // Configure callback function for the map\n @Output('leafletMapReady') mapReady = new EventEmitter<Map>();\n\n // Zoom level for the map\n @Input('leafletZoom') zoom: number;\n @Output('leafletZoomChange') zoomChange = new EventEmitter<number>();\n\n // Center of the map\n @Input('leafletCenter') center: LatLng;\n @Output('leafletCenterChange') centerChange = new EventEmitter<LatLng>();\n\n // Set fit bounds for map\n @Input('leafletFitBounds') fitBounds: LatLngBounds;\n\n // Set the max bounds for the map\n @Input('leafletMaxBounds') maxBounds: LatLngBounds;\n\n // Set the min zoom for the map\n @Input('leafletMinZoom') minZoom: number;\n\n // Set the max zoom for the map\n @Input('leafletMaxZoom') maxZoom: number;\n\n\n // Mouse Map Events\n @Output('leafletClick') onClick = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletDoubleClick') onDoubleClick = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseDown') onMouseDown = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseUp') onMouseUp = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseMove') onMouseMove = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseOver') onMouseOver = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseOut') onMouseOut = new EventEmitter<LeafletMouseEvent>();\n\n // Map Move Events\n @Output('leafletMapMove') onMapMove = new EventEmitter<LeafletEvent>();\n @Output('leafletMapMoveStart') onMapMoveStart = new EventEmitter<LeafletEvent>();\n @Output('leafletMapMoveEnd') onMapMoveEnd = new EventEmitter<LeafletEvent>();\n\n // Map Zoom Events\n @Output('leafletMapZoom') onMapZoom = new EventEmitter<LeafletEvent>();\n @Output('leafletMapZoomStart') onMapZoomStart = new EventEmitter<LeafletEvent>();\n @Output('leafletMapZoomEnd') onMapZoomEnd = new EventEmitter<LeafletEvent>();\n\n constructor(private element: ElementRef, private zone: NgZone) {\n // Nothing here\n }\n\n ngOnInit() {\n\n // Create the map outside of angular so the various map events don't trigger change detection\n this.zone.runOutsideAngular(() => {\n\n // Create the map with some reasonable defaults\n this.map = map(this.element.nativeElement, this.options);\n this.addMapEventListeners();\n\n });\n\n // Only setView if there is a center/zoom\n if (null != this.center && null != this.zoom) {\n this.setView(this.center, this.zoom);\n }\n\n // Set up all the initial settings\n if (null != this.fitBounds) {\n this.setFitBounds(this.fitBounds);\n }\n\n if (null != this.maxBounds) {\n this.setMaxBounds(this.maxBounds);\n }\n\n if (null != this.minZoom) {\n this.setMinZoom(this.minZoom);\n }\n\n if (null != this.maxZoom) {\n this.setMaxZoom(this.maxZoom);\n }\n\n this.doResize();\n\n // Fire map ready event\n this.mapReady.emit(this.map);\n\n }\n\n ngOnChanges(changes: { [key: string]: SimpleChange }) {\n\n /*\n * The following code is to address an issue with our (basic) implementation of\n * zooming and panning. From our testing, it seems that a pan operation followed\n * by a zoom operation in the same thread will interfere with eachother. The zoom\n * operation interrupts/cancels the pan, resulting in a final center point that is\n * inaccurate. The solution seems to be to either separate them with a timeout or\n * to collapse them into a setView call.\n */\n\n // Zooming and Panning\n if (changes['zoom'] && changes['center'] && null != this.zoom && null != this.center) {\n this.setView(changes['center'].currentValue, changes['zoom'].currentValue);\n }\n // Set the zoom level\n else if (changes['zoom']) {\n this.setZoom(changes['zoom'].currentValue);\n }\n // Set the map center\n else if (changes['center']) {\n this.setCenter(changes['center'].currentValue);\n }\n\n // Other options\n if (changes['fitBounds']) {\n this.setFitBounds(changes['fitBounds'].currentValue);\n }\n\n if (changes['maxBounds']) {\n this.setMaxBounds(changes['maxBounds'].currentValue);\n }\n\n if (changes['minZoom']) {\n this.setMinZoom(changes['minZoom'].currentValue);\n }\n\n if (changes['maxZoom']) {\n this.setMaxZoom(changes['maxZoom'].currentValue);\n }\n\n }\n\n ngOnDestroy() {\n // If this directive is destroyed, the map is too\n if (null != this.map) {\n this.map.remove();\n }\n }\n\n public getMap() {\n return this.map;\n }\n\n\n @HostListener('window:resize', [])\n onResize() {\n this.delayResize();\n }\n\n private addMapEventListeners() {\n\n const registerEventHandler = (eventName: string, handler: (e: LeafletEvent) => any) => {\n this.map.on(eventName, handler);\n };\n\n\n // Add all the pass-through mouse event handlers\n registerEventHandler('click', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onClick, e));\n registerEventHandler('dblclick', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onDoubleClick, e));\n registerEventHandler('mousedown', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseDown, e));\n registerEventHandler('mouseup', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseUp, e));\n registerEventHandler('mouseover', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseOver, e));\n registerEventHandler('mouseout', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseOut, e));\n registerEventHandler('mousemove', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseMove, e));\n\n registerEventHandler('zoomstart', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapZoomStart, e));\n registerEventHandler('zoom', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapZoom, e));\n registerEventHandler('zoomend', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapZoomEnd, e));\n registerEventHandler('movestart', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapMoveStart, e));\n registerEventHandler('move', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapMove, e));\n registerEventHandler('moveend', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapMoveEnd, e));\n\n\n // Update any things for which we provide output bindings\n const outputUpdateHandler = () => {\n const zoom = this.map.getZoom();\n if (zoom !== this.zoom) {\n this.zoom = zoom;\n LeafletUtil.handleEvent(this.zone, this.zoomChange, zoom);\n }\n\n const center = this.map.getCenter();\n if (null != center || null != this.center) {\n\n if (((null == center || null == this.center) && center !== this.center)\n || (center.lat !== this.center.lat || center.lng !== this.center.lng)) {\n\n this.center = center;\n LeafletUtil.handleEvent(this.zone, this.centerChange, center);\n\n }\n }\n };\n\n registerEventHandler('moveend', outputUpdateHandler);\n registerEventHandler('zoomend', outputUpdateHandler);\n }\n\n /**\n * Resize the map to fit it's parent container\n */\n private doResize() {\n\n // Run this outside of angular so the map events stay outside of angular\n this.zone.runOutsideAngular(() => {\n\n // Invalidate the map size to trigger it to update itself\n if (null != this.map) {\n this.map.invalidateSize({});\n }\n\n });\n\n }\n\n /**\n * Manage a delayed resize of the component\n */\n private delayResize() {\n if (null != this.resizeTimer) {\n clearTimeout(this.resizeTimer);\n }\n this.resizeTimer = setTimeout(this.doResize.bind(this), 200);\n }\n\n\n /**\n * Set the view (center/zoom) all at once\n * @param center The new center\n * @param zoom The new zoom level\n */\n private setView(center: LatLng, zoom: number) {\n\n if (null != this.map && null != center && null != zoom) {\n this.map.setView(center, zoom, this.zoomPanOptions);\n }\n\n }\n\n /**\n * Set the map zoom level\n * @param zoom the new zoom level for the map\n */\n private setZoom(zoom: number) {\n\n if (null != this.map && null != zoom) {\n this.map.setZoom(zoom, this.zoomOptions);\n }\n\n }\n\n /**\n * Set the center of the map\n * @param center the center point\n */\n private setCenter(center: LatLng) {\n\n if (null != this.map && null != center) {\n this.map.panTo(center, this.panOptions);\n }\n\n }\n\n /**\n * Fit the map to the bounds\n * @param latLngBounds the boundary to set\n */\n private setFitBounds(latLngBounds: LatLngBounds) {\n\n if (null != this.map && null != latLngBounds) {\n this.map.fitBounds(latLngBounds, this.fitBoundsOptions);\n }\n\n }\n\n /**\n * Set the map's max bounds\n * @param latLngBounds the boundary to set\n */\n private setMaxBounds(latLngBounds: LatLngBounds) {\n\n if (null != this.map && null != latLngBounds) {\n this.map.setMaxBounds(latLngBounds);\n }\n\n }\n\n /**\n * Set the map's min zoom\n * @param number the new min zoom\n */\n private setMinZoom(zoom: number) {\n\n if (null != this.map && null != zoom) {\n this.map.setMinZoom(zoom);\n }\n\n }\n\n /**\n * Set the map's min zoom\n * @param number the new min zoom\n */\n private setMaxZoom(zoom: number) {\n\n if (null != this.map && null != zoom) {\n this.map.setMaxZoom(zoom);\n }\n\n }\n\n}\n","import { LeafletDirective } from './leaflet.directive';\n\nimport { Map } from 'leaflet';\n\nexport class LeafletDirectiveWrapper {\n\n // Reference to the main leaflet directive\n protected leafletDirective: LeafletDirective;\n\n constructor(leafletDirective: LeafletDirective) {\n this.leafletDirective = leafletDirective;\n }\n\n init() {\n // Nothing for now\n }\n\n getMap(): Map {\n return this.leafletDirective.getMap();\n }\n\n}\n","import {\n Directive, EventEmitter, Input, NgZone, OnChanges, OnDestroy, OnInit, Output,\n SimpleChange\n} from '@angular/core';\n\nimport { Layer, LeafletEvent } from 'leaflet';\n\nimport { LeafletDirective } from '../core/leaflet.directive';\nimport { LeafletDirectiveWrapper } from '../core/leaflet.directive.wrapper';\nimport { LeafletUtil } from '../core/leaflet.util';\n\n\n/**\n * Layer directive\n *\n * This directive is used to directly control a single map layer. The purpose of this directive is to\n * be used as part of a child structural directive of the map element.\n *\n */\n@Directive({\n selector: '[leafletLayer]',\n})\nexport class LeafletLayerDirective\n implements OnChanges, OnDestroy, OnInit {\n\n @Input('leafletLayer') layer: Layer;\n\n // Layer Events\n @Output('leafletLayerAdd') onAdd = new EventEmitter<LeafletEvent>();\n @Output('leafletLayerRemove') onRemove = new EventEmitter<LeafletEvent>();\n\n // Layer Event handlers\n private onAddLayerHandler: any;\n private onRemoveLayerHandler: any;\n\n // Wrapper for the leaflet directive (manages the parent directive)\n private leafletDirective: LeafletDirectiveWrapper;\n\n constructor(leafletDirective: LeafletDirective, private zone: NgZone) {\n this.leafletDirective = new LeafletDirectiveWrapper(leafletDirective);\n }\n\n ngOnInit() {\n\n // Init the map\n this.leafletDirective.init();\n\n }\n\n ngOnDestroy() {\n\n if (null != this.layer) {\n\n // Unregister the event handlers\n this.removeLayerEventListeners(this.layer);\n\n // Remove the layer from the map\n this.layer.remove();\n }\n\n }\n\n ngOnChanges(changes: { [key: string]: SimpleChange }) {\n\n if (changes['layer']) {\n\n // Update the layer\n const p: Layer = changes['layer'].previousValue;\n const n = changes['layer'].currentValue;\n\n this.zone.runOutsideAngular(() => {\n if (null != p) {\n this.removeLayerEventListeners(p);\n p.remove();\n }\n if (null != n) {\n this.addLayerEventListeners(n);\n this.leafletDirective.getMap().addLayer(n);\n }\n });\n\n }\n\n }\n\n private addLayerEventListeners(l: Layer) {\n\n this.onAddLayerHandler = (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onAdd, e);\n l.on('add', this.onAddLayerHandler);\n\n this.onRemoveLayerHandler = (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onRemove, e);\n l.on('remove', this.onRemoveLayerHandler);\n\n }\n\n private removeLayerEventListeners(l: Layer) {\n\n l.off('add', this.onAddLayerHandler);\n l.off('remove', this.onRemoveLayerHandler);\n\n }\n\n}\n","import { Directive, DoCheck, Input, IterableDiffer, IterableDiffers, NgZone, OnDestroy, OnInit } from '@angular/core';\n\nimport { Layer} from 'leaflet';\n\nimport { LeafletDirective } from '../core/leaflet.directive';\nimport { LeafletDirectiveWrapper } from '../core/leaflet.directive.wrapper';\n\n\n/**\n * Layers directive\n *\n * This directive is used to directly control map layers. As changes are made to the input array of\n * layers, the map is synched to the array. As layers are added or removed from the input array, they\n * are also added or removed from the map. The input array is treated as immutable. To detect changes,\n * you must change the array instance.\n *\n * Important Note: The input layers array is assumed to be immutable. This means you need to use an\n * immutable array implementation or create a new copy of your array when you make changes, otherwise\n * this directive won't detect the change. This is by design. It's for performance reasons. Change\n * detection of mutable arrays requires diffing the state of the array on every DoCheck cycle, which\n * is extremely expensive from a time complexity perspective.\n *\n */\n@Directive({\n selector: '[leafletLayers]',\n})\nexport class LeafletLayersDirective\n implements DoCheck, OnDestroy, OnInit {\n\n // Array of configured layers\n layersValue: Layer[];\n\n // Differ to do change detection on the array\n layersDiffer: IterableDiffer<Layer>;\n\n // Set/get the layers\n @Input('leafletLayers')\n set layers(v: Layer[]) {\n this.layersValue = v;\n\n // Now that we have a differ, do an immediate layer update\n this.updateLayers();\n }\n get layers(): Layer[] {\n return this.layersValue;\n }\n\n // Wrapper for the leaflet directive (manages the parent directive)\n private leafletDirective: LeafletDirectiveWrapper;\n\n constructor(leafletDirective: LeafletDirective, private differs: IterableDiffers, private zone: NgZone) {\n this.leafletDirective = new LeafletDirectiveWrapper(leafletDirective);\n this.layersDiffer = this.differs.find([]).create<Layer>();\n }\n\n ngDoCheck() {\n this.updateLayers();\n }\n\n ngOnInit() {\n\n // Init the map\n this.leafletDirective.init();\n\n // Update layers once the map is ready\n this.updateLayers();\n\n }\n\n ngOnDestroy() {\n this.layers = [];\n }\n\n /**\n * Update the state of the layers.\n * We use an iterable differ to synchronize the map layers with the state of the bound layers array.\n * This is important because it allows us to react to changes to the contents of the array as well\n * as changes to the actual array instance.\n */\n private updateLayers() {\n\n const map = this.leafletDirective.getMap();\n\n if (null != map && null != this.layersDiffer) {\n\n const changes = this.layersDiffer.diff(this.layersValue);\n if (null != changes) {\n\n // Run outside angular to ensure layer events don't trigger change detection\n this.zone.runOutsideAngular(() => {\n\n changes.forEachRemovedItem((c) => {\n map.removeLayer(c.item);\n });\n changes.forEachAddedItem((c) => {\n map.addLayer(c.item);\n });\n\n });\n\n }\n\n }\n\n }\n\n}\n","export class LeafletControlLayersChanges {\n layersRemoved: number = 0;\n layersChanged: number = 0;\n layersAdded: number = 0;\n\n changed(): boolean {\n return !(this.layersRemoved === 0 && this.layersChanged === 0 && this.layersAdded === 0);\n }\n}\n","import { EventEmitter, KeyValueChanges, NgZone } from '@angular/core';\n\nimport { control, Control, Layer } from 'leaflet';\n\nimport { LeafletControlLayersChanges } from './leaflet-control-layers-changes.model';\n\nexport class LeafletControlLayersWrapper {\n\n // The layers control object\n protected layersControl: Control.Layers;\n\n // Event Emitter for when the control is ready\n protected layersControlReady: EventEmitter<Control.Layers>;\n\n constructor(private zone: NgZone, layersControlReady: EventEmitter<Control.Layers>) {\n this.layersControlReady = layersControlReady;\n }\n\n getLayersControl() {\n return this.layersControl;\n }\n\n init(controlConfig: any, controlOptions: any): Control.Layers {\n\n const baseLayers = controlConfig.baseLayers || {};\n const overlays = controlConfig.overlays || {};\n\n // Create the control outside of angular to ensure events don't trigger change detection\n this.zone.runOutsideAngular(() => {\n this.layersControl = control.layers(baseLayers, overlays, controlOptions);\n });\n\n\n this.layersControlReady.emit(this.layersControl);\n\n return this.layersControl;\n }\n\n applyBaseLayerChanges(changes: KeyValueChanges<string, Layer>): LeafletControlLayersChanges {\n let results: LeafletControlLayersChanges = new LeafletControlLayersChanges();\n\n if (null != this.layersControl) {\n results = this.applyChanges(changes, this.layersControl.addBaseLayer);\n }\n\n return results;\n }\n\n applyOverlayChanges(changes: KeyValueChanges<string, Layer>): LeafletControlLayersChanges {\n let results: LeafletControlLayersChanges = new LeafletControlLayersChanges();\n\n if (null != this.layersControl) {\n results = this.applyChanges(changes, this.layersControl.addOverlay);\n }\n\n return results;\n }\n\n private applyChanges(changes: KeyValueChanges<string, Layer>, addFn: (layer: Layer, name: string) => void): LeafletControlLayersChanges {\n const results: LeafletControlLayersChanges = new LeafletControlLayersChanges();\n\n if (null != changes) {\n\n // All layer management is outside angular to avoid layer events from triggering change detection\n this.zone.runOutsideAngular(() => {\n\n changes.forEachChangedItem((c) => {\n this.layersControl.removeLayer(c.previousValue);\n addFn.call(this.layersControl, c.currentValue, c.key);\n results.layersChanged++;\n });\n changes.forEachRemovedItem((c) => {\n this.layersControl.removeLayer(c.previousValue);\n results.layersRemoved++;\n });\n changes.forEachAddedItem((c) => {\n addFn.call(this.layersControl, c.currentValue, c.key);\n results.layersAdded++;\n });\n\n });\n\n }\n\n return results;\n }\n\n}\n","import { Layer } from 'leaflet';\n\nexport class LeafletControlLayersConfig {\n baseLayers: { [name: string]: Layer } = {};\n overlays: { [name: string]: Layer } = {};\n}\n","import {\n Directive, DoCheck, EventEmitter, Input, KeyValueDiffer, KeyValueDiffers, NgZone, OnDestroy, OnInit,\n Output\n} from '@angular/core';\n\nimport { Control, Layer } from 'leaflet';\n\nimport { LeafletDirective } from '../../core/leaflet.directive';\nimport { LeafletDirectiveWrapper } from '../../core/leaflet.directive.wrapper';\nimport { LeafletControlLayersWrapper } from './leaflet-control-layers.wrapper';\nimport { LeafletControlLayersConfig } from './leaflet-control-layers-config.model';\n\n\n/**\n * Layers Control\n *\n * This directive is used to configure the layers control. The input accepts an object with two\n * key-value maps of layer name -> layer. Mutable changes are detected. On changes, a differ is\n * used to determine what changed so that layers are appropriately added or removed.\n *\n * To specify which layer to show as the 'active' baselayer, you will want to add it to the map\n * using the layers directive. Otherwise, the last one it sees will be used.\n */\n@Directive({\n selector: '[leafletLayersControl]',\n})\nexport class LeafletLayersControlDirective\n implements DoCheck, OnDestroy, OnInit {\n\n // Control Layers Configuration\n layersControlConfigValue: LeafletControlLayersConfig;\n\n baseLayersDiffer: KeyValueDiffer<string, Layer>;\n overlaysDiffer: KeyValueDiffer<string, Layer>;\n\n @Input('leafletLayersControl')\n set layersControlConfig(v: LeafletControlLayersConfig) {\n\n // Validation/init stuff\n if (null == v) { v = new LeafletControlLayersConfig(); }\n if (null == v.baseLayers) { v.baseLayers = {}; }\n if (null == v.overlays) { v.overlays = {}; }\n\n // Store the value\n this.layersControlConfigValue = v;\n\n // Update the map\n this.updateLayers();\n\n }\n get layersControlConfig(): LeafletControlLayersConfig {\n return this.layersControlConfigValue;\n }\n\n @Input('leafletLayersControlOptions') layersControlOptions: any;\n\n @Output('leafletLayersControlReady') layersControlReady = new EventEmitter<Control.Layers>();\n\n private controlLayers: LeafletControlLayersWrapper;\n private leafletDirective: LeafletDirectiveWrapper;\n\n constructor(leafletDirective: LeafletDirective, private differs: KeyValueDiffers, private zone: NgZone) {\n this.leafletDirective = new LeafletDirectiveWrapper(leafletDirective);\n this.controlLayers = new LeafletControlLayersWrapper(this.zone, this.layersControlReady);\n\n // Generate differs\n this.baseLayersDiffer = this.differs.find({}).create<string, Layer>();\n this.overlaysDiffer = this.differs.find({}).create<string, Layer>();\n\n }\n\n ngOnInit() {\n\n // Init the map\n this.leafletDirective.init();\n\n // Set up control outside of angular to avoid change detection when using the control\n this.zone.runOutsideAngular(() => {\n\n // Set up all the initial settings\n this.controlLayers\n .init({}, this.layersControlOptions)\n .addTo(this.leafletDirective.getMap());\n\n });\n\n this.updateLayers();\n\n }\n\n ngOnDestroy() {\n this.layersControlConfig = { baseLayers: {}, overlays: {} };\n this.controlLayers.getLayersControl().remove();\n }\n\n ngDoCheck() {\n this.updateLayers();\n }\n\n protected updateLayers() {\n\n const map = this.leafletDirective.getMap();\n const layersControl = this.controlLayers.getLayersControl();\n\n if (null != map && null != layersControl) {\n\n // Run the baselayers differ\n if (null != this.baseLayersDiffer && null != this.layersControlConfigValue.baseLayers) {\n const changes = this.baseLayersDiffer.diff(this.layersControlConfigValue.baseLayers);\n this.controlLayers.applyBaseLayerChanges(changes);\n }\n\n // Run the overlays differ\n if (null != this.overlaysDiffer && null != this.layersControlConfigValue.overlays) {\n const changes = this.overlaysDiffer.diff(this.layersControlConfigValue.overlays);\n this.controlLayers.applyOverlayChanges(changes);\n }\n\n }\n\n }\n\n}\n","import {\n Directive, DoCheck, EventEmitter, Input, KeyValueDiffer, KeyValueDiffers, NgZone, OnDestroy,\n OnInit, Output\n} from '@angular/core';\n\nimport { Control, Layer } from 'leaflet';\n\nimport { LeafletUtil } from '../../core/leaflet.util';\nimport { LeafletDirective } from '../../core/leaflet.directive';\nimport { LeafletDirectiveWrapper } from '../../core/leaflet.directive.wrapper';\nimport { LeafletControlLayersWrapper } from '../control/leaflet-control-layers.wrapper';\n\n\n/**\n * Baselayers directive\n *\n * This directive is provided as a convenient way to add baselayers to the map. The input accepts\n * a key-value map of layer name -> layer. Mutable changed are detected. On changes, a differ is\n * used to determine what changed so that layers are appropriately added or removed. This directive\n * will also add the layers control so users can switch between available base layers.\n *\n * To specify which layer to show as the 'active' baselayer, you will want to add it to the map\n * using the layers directive. Otherwise, the plugin will use the last one it sees.\n */\n@Directive({\n selector: '[leafletBaseLayers]',\n})\nexport class LeafletBaseLayersDirective\n implements DoCheck, OnDestroy, OnInit {\n\n // Base Layers\n baseLayersValue: { [name: string]: Layer };\n\n // Base Layers Map Differ\n baseLayersDiffer: KeyValueDiffer<string, Layer>;\n\n // Set/get baseLayers\n @Input('leafletBaseLayers')\n set baseLayers(v: { [name: string]: Layer }) {\n this.baseLayersValue = v;\n\n this.updateBaseLayers();\n }\n get baseLayers(): { [name: string]: Layer } {\n return this.baseLayersValue;\n }\n\n // Control Options\n @Input('leafletLayersControlOptions') layersControlOptions: Control.LayersOptions;\n\n // Output for once the layers control is ready\n @Output('leafletLayersControlReady') layersControlReady = new EventEmitter<Control.Layers>();\n\n // Active Base Layer\n private baseLayer: Layer;\n\n private leafletDirective: LeafletDirectiveWrapper;\n private controlLayers: LeafletControlLayersWrapper;\n\n constructor(leafletDirective: LeafletDirective, private differs: KeyValueDiffers, private zone: NgZone) {\n this.leafletDirective = new LeafletDirectiveWrapper(leafletDirective);\n this.controlLayers = new LeafletControlLayersWrapper(this.zone, this.layersControlReady);\n this.baseLayersDiffer = this.differs.find({}).create<string, Layer>();\n }\n\n ngOnDestroy() {\n this.baseLayers = {};\n if (null != this.controlLayers.getLayersControl()) {\n this.controlLayers.getLayersControl().remove();\n }\n }\n\n ngOnInit() {\n\n // Init the map\n this.leafletDirective.init();\n\n // Create the control outside angular to prevent events from triggering chnage detection\n this.zone.runOutsideAngular(() => {\n\n // Initially configure the controlLayers\n this.controlLayers\n .init({}, this.layersControlOptions)\n .addTo(this.leafletDirective.getMap());\n\n });\n\n this.updateBaseLayers();\n\n }\n\n ngDoCheck() {\n this.updateBaseLayers();\n }\n\n protected updateBaseLayers() {\n\n const map = this.leafletDirective.getMap();\n const layersControl = this.controlLayers.getLayersControl();\n\n if (null != map && null != layersControl && null != this.baseLayersDiffer) {\n const changes = this.baseLayersDiffer.diff(this.baseLayersValue);\n const results = this.controlLayers.applyBaseLayerChanges(changes);\n\n if (results.changed()) {\n this.syncBaseLayer();\n }\n }\n\n }\n\n /**\n * Check the current base layer and change it to the new one if necessary\n */\n protected syncBaseLayer() {\n\n const map = this.leafletDirective.getMap();\n const layers = LeafletUtil.mapToArray(this.baseLayers);\n let foundLayer: Layer;\n\n // Search all the layers in the map to see if we can find them in the baselayer array\n map.eachLayer((l: Layer) => {\n foundLayer = layers.find((bl) => (l === bl));\n });\n\n // Did we find the layer?\n if (null != foundLayer) {\n // Yes - set the baselayer to the one we found\n this.baseLayer = foundLayer;\n }\n else {\n // No - set the baselayer to the first in the array and add it to the map\n if (layers.length > 0) {\n this.baseLayer = layers[0];\n\n // Add layers outside of angular to prevent events from triggering change detection\n this.zone.runOutsideAngular(() => {\n this.baseLayer.addTo(map);\n });\n }\n }\n\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { LeafletDirective } from './core/leaflet.directive';\nimport { LeafletLayerDirective } from './layers/leaflet-layer.directive';\nimport { LeafletLayersDirective } from './layers/leaflet-layers.directive';\nimport { LeafletLayersControlDirective } from './layers/control/leaflet-control-layers.directive';\nimport { LeafletBaseLayersDirective } from './layers/base/leaflet-baselayers.directive';\n\n@NgModule({\n imports: [\n LeafletDirective,\n LeafletLayerDirective,\n LeafletLayersDirective,\n LeafletLayersControlDirective,\n LeafletBaseLayersDirective\n ],\n exports: [\n LeafletDirective,\n LeafletLayerDirective,\n LeafletLayersDirective,\n LeafletLayersControlDirective,\n LeafletBaseLayersDirective\n ]\n})\nexport class LeafletModule {\n\n}\n","import { tileLayer, TileLayer } from 'leaflet';\n\nexport class LeafletTileLayerDefinition {\n\n constructor(\n public type: string,\n public url: string,\n public options: any) { }\n\n\n /**\n * Creates a TileLayer from the provided definition. This is a convenience function\n * to help with generating layers from objects.\n *\n * @param layerDef The layer to create\n * @returns {TileLayer} The TileLayer that has been created\n */\n static createTileLayer(layerDef: LeafletTileLayerDefinition): TileLayer {\n let layer: TileLayer;\n\n switch (layerDef.type) {\n case 'xyz':\n layer = tileLayer(layerDef.url, layerDef.options);\n break;\n case 'wms':\n default:\n layer = tileLayer.wms(layerDef.url, layerDef.options);\n break;\n }\n\n return layer;\n }\n\n /**\n * Creates a TileLayer for each key in the incoming map. This is a convenience function\n * for generating an associative array of layers from an associative array of objects\n *\n * @param layerDefs A map of key to tile layer definition\n * @returns {{[p: string]: TileLayer}} A new map of key to TileLayer\n */\n static createTileLayers(layerDefs: { [ key: string ]: LeafletTileLayerDefinition }): { [ key: string ]: TileLayer } {\n const layers: { [ key: string ]: TileLayer } = {};\n\n for (const k in layerDefs) {\n if (layerDefs.hasOwnProperty(k)) {\n layers[k] = (LeafletTileLayerDefinition.createTileLayer(layerDefs[k]));\n }\n }\n\n return layers;\n }\n\n /**\n * Create a Tile Layer from the current state of this object\n *\n * @returns {TileLayer} A new TileLayer\n */\n createTileLayer(): TileLayer {\n return LeafletTileLayerDefinition.createTileLayer(this);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.LeafletDirective"],"mappings":";;;;MAEa,WAAW,CAAA;IAEpB,OAAO,UAAU,CAAI,GAA2B,EAAA;QAC5C,MAAM,QAAQ,GAAQ,EAAE;AAExB,QAAA,KAAK,MAAM,CAAC,IAAI,GAAG,EAAE;AAC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AAA,OAAA,GAAP,OAAO;;AAGlB;;;;;;AAMG;IACH,OAAO,eAAe,CAAC,QAAoC,EAAA;AACvD,QAAA,IAAI,KAAgB;AAEpB,QAAA,QAAQ,QAAQ,CAAC,IAAI;AACjB,YAAA,KAAK,KAAK;gBACN,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAG,QAAQ,CAAC,OAAO,CAAC;gBAClD;AACJ,YAAA,KAAK,KAAK;AACV,YAAA;AACI,gBAAA,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAG,QAAQ,CAAC,OAAO,CAAC;gBACtD;;AAGR,QAAA,OAAO,KAAK;;AAGhB;;;;;;AAMG;IACH,OAAO,gBAAgB,CAAC,SAA0D,EAAA;QAC9E,MAAM,MAAM,GAAmC,EAAE;AAEjD,QAAA,KAAK,MAAM,CAAC,IAAI,SAAS,EAAE;AACvB,YAAA,IAAI,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;AAC7B,gBAAA,MAAM,CAAC,CAAC,CAAC,IAAI,0BAA0B,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;;;AAI9E,QAAA,OAAO,MAAM;;AAGjB;;;;AAIG;IACH,eAAe,GAAA;AACX,QAAA,OAAO,0BAA0B,CAAC,eAAe,CAAC,IAAI,CAAC;;AAE9D;;AC5DD;;AAEG;;;;"}
1
+ {"version":3,"file":"bluehalo-ngx-leaflet.mjs","sources":["../../../projects/ngx-leaflet/src/lib/core/leaflet.util.ts","../../../projects/ngx-leaflet/src/lib/core/leaflet.directive.ts","../../../projects/ngx-leaflet/src/lib/core/leaflet.directive.wrapper.ts","../../../projects/ngx-leaflet/src/lib/layers/leaflet-layer.directive.ts","../../../projects/ngx-leaflet/src/lib/layers/leaflet-layers.directive.ts","../../../projects/ngx-leaflet/src/lib/layers/control/leaflet-control-layers-changes.model.ts","../../../projects/ngx-leaflet/src/lib/layers/control/leaflet-control-layers.wrapper.ts","../../../projects/ngx-leaflet/src/lib/layers/control/leaflet-control-layers-config.model.ts","../../../projects/ngx-leaflet/src/lib/layers/control/leaflet-control-layers.directive.ts","../../../projects/ngx-leaflet/src/lib/layers/base/leaflet-baselayers.directive.ts","../../../projects/ngx-leaflet/src/lib/leaflet.module.ts","../../../projects/ngx-leaflet/src/lib/layers/leaflet-tile-layer-definition.model.ts","../../../projects/ngx-leaflet/src/bluehalo-ngx-leaflet.ts"],"sourcesContent":["import { EventEmitter, NgZone } from '@angular/core';\n\nexport class LeafletUtil {\n\n static mapToArray<T>(map: { [ key: string ]: T }): T[] {\n const toReturn: T[] = [];\n\n for (const k in map) {\n if (map.hasOwnProperty(k)) {\n toReturn.push(map[k]);\n }\n }\n\n return toReturn;\n }\n\n static handleEvent<T>(zone: NgZone, eventEmitter: EventEmitter<T>, event: T) {\n\n // Don't want to emit if there are no observers\n if (0 < eventEmitter.observers.length) {\n zone.run(() => {\n eventEmitter.emit(event);\n });\n }\n\n }\n}\n","import {\n Directive, ElementRef, EventEmitter, HostListener, Input, NgZone, OnChanges, OnDestroy, OnInit, Output,\n SimpleChange\n} from '@angular/core';\n\nimport { latLng, LatLng, LatLngBounds, LeafletEvent, LeafletMouseEvent, map, Map, MapOptions } from 'leaflet';\n\nimport { LeafletUtil } from './leaflet.util';\n\n@Directive({\n selector: '[leaflet]',\n})\nexport class LeafletDirective\n implements OnChanges, OnDestroy, OnInit {\n\n readonly DEFAULT_ZOOM = 1;\n readonly DEFAULT_CENTER = latLng(38.907192, -77.036871);\n readonly DEFAULT_FPZ_OPTIONS = {};\n\n resizeTimer: any;\n\n // Reference to the primary map object\n map: Map;\n\n @Input('leafletFitBoundsOptions') fitBoundsOptions = this.DEFAULT_FPZ_OPTIONS;\n @Input('leafletPanOptions') panOptions = this.DEFAULT_FPZ_OPTIONS;\n @Input('leafletZoomOptions') zoomOptions = this.DEFAULT_FPZ_OPTIONS;\n @Input('leafletZoomPanOptions') zoomPanOptions = this.DEFAULT_FPZ_OPTIONS;\n\n\n // Default configuration\n @Input('leafletOptions') options: MapOptions = {};\n\n // Configure callback function for the map\n @Output('leafletMapReady') mapReady = new EventEmitter<Map>();\n\n // Zoom level for the map\n @Input('leafletZoom') zoom: number;\n @Output('leafletZoomChange') zoomChange = new EventEmitter<number>();\n\n // Center of the map\n @Input('leafletCenter') center: LatLng;\n @Output('leafletCenterChange') centerChange = new EventEmitter<LatLng>();\n\n // Set fit bounds for map\n @Input('leafletFitBounds') fitBounds: LatLngBounds;\n\n // Set the max bounds for the map\n @Input('leafletMaxBounds') maxBounds: LatLngBounds;\n\n // Set the min zoom for the map\n @Input('leafletMinZoom') minZoom: number;\n\n // Set the max zoom for the map\n @Input('leafletMaxZoom') maxZoom: number;\n\n\n // Mouse Map Events\n @Output('leafletClick') onClick = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletDoubleClick') onDoubleClick = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseDown') onMouseDown = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseUp') onMouseUp = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseMove') onMouseMove = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseOver') onMouseOver = new EventEmitter<LeafletMouseEvent>();\n @Output('leafletMouseOut') onMouseOut = new EventEmitter<LeafletMouseEvent>();\n\n // Map Move Events\n @Output('leafletMapMove') onMapMove = new EventEmitter<LeafletEvent>();\n @Output('leafletMapMoveStart') onMapMoveStart = new EventEmitter<LeafletEvent>();\n @Output('leafletMapMoveEnd') onMapMoveEnd = new EventEmitter<LeafletEvent>();\n\n // Map Zoom Events\n @Output('leafletMapZoom') onMapZoom = new EventEmitter<LeafletEvent>();\n @Output('leafletMapZoomStart') onMapZoomStart = new EventEmitter<LeafletEvent>();\n @Output('leafletMapZoomEnd') onMapZoomEnd = new EventEmitter<LeafletEvent>();\n\n constructor(private element: ElementRef, private zone: NgZone) {\n // Nothing here\n }\n\n ngOnInit() {\n\n // Create the map outside of angular so the various map events don't trigger change detection\n this.zone.runOutsideAngular(() => {\n\n // Create the map with some reasonable defaults\n this.map = map(this.element.nativeElement, this.options);\n this.addMapEventListeners();\n\n });\n\n // Only setView if there is a center/zoom\n if (null != this.center && null != this.zoom) {\n this.setView(this.center, this.zoom);\n }\n\n // Set up all the initial settings\n if (null != this.fitBounds) {\n this.setFitBounds(this.fitBounds);\n }\n\n if (null != this.maxBounds) {\n this.setMaxBounds(this.maxBounds);\n }\n\n if (null != this.minZoom) {\n this.setMinZoom(this.minZoom);\n }\n\n if (null != this.maxZoom) {\n this.setMaxZoom(this.maxZoom);\n }\n\n this.doResize();\n\n // Fire map ready event\n this.mapReady.emit(this.map);\n\n }\n\n ngOnChanges(changes: { [key: string]: SimpleChange }) {\n\n /*\n * The following code is to address an issue with our (basic) implementation of\n * zooming and panning. From our testing, it seems that a pan operation followed\n * by a zoom operation in the same thread will interfere with each other. The zoom\n * operation interrupts/cancels the pan, resulting in a final center point that is\n * inaccurate. The solution seems to be to either separate them with a timeout or\n * to collapse them into a setView call.\n */\n\n // Zooming and Panning\n if (changes['zoom'] && changes['center'] && null != this.zoom && null != this.center) {\n this.setView(changes['center'].currentValue, changes['zoom'].currentValue);\n }\n // Set the zoom level\n else if (changes['zoom']) {\n this.setZoom(changes['zoom'].currentValue);\n }\n // Set the map center\n else if (changes['center']) {\n this.setCenter(changes['center'].currentValue);\n }\n\n // Other options\n if (changes['fitBounds']) {\n this.setFitBounds(changes['fitBounds'].currentValue);\n }\n\n if (changes['maxBounds']) {\n this.setMaxBounds(changes['maxBounds'].currentValue);\n }\n\n if (changes['minZoom']) {\n this.setMinZoom(changes['minZoom'].currentValue);\n }\n\n if (changes['maxZoom']) {\n this.setMaxZoom(changes['maxZoom'].currentValue);\n }\n\n }\n\n ngOnDestroy() {\n // If this directive is destroyed, the map is too\n if (null != this.map) {\n this.map.remove();\n }\n }\n\n public getMap() {\n return this.map;\n }\n\n\n @HostListener('window:resize', [])\n onResize() {\n this.delayResize();\n }\n\n private addMapEventListeners() {\n\n const registerEventHandler = (eventName: string, handler: (e: LeafletEvent) => any) => {\n this.map.on(eventName, handler);\n };\n\n\n // Add all the pass-through mouse event handlers\n registerEventHandler('click', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onClick, e));\n registerEventHandler('dblclick', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onDoubleClick, e));\n registerEventHandler('mousedown', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseDown, e));\n registerEventHandler('mouseup', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseUp, e));\n registerEventHandler('mouseover', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseOver, e));\n registerEventHandler('mouseout', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseOut, e));\n registerEventHandler('mousemove', (e: LeafletMouseEvent) => LeafletUtil.handleEvent(this.zone, this.onMouseMove, e));\n\n registerEventHandler('zoomstart', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapZoomStart, e));\n registerEventHandler('zoom', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapZoom, e));\n registerEventHandler('zoomend', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapZoomEnd, e));\n registerEventHandler('movestart', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapMoveStart, e));\n registerEventHandler('move', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapMove, e));\n registerEventHandler('moveend', (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onMapMoveEnd, e));\n\n\n // Update any things for which we provide output bindings\n const outputUpdateHandler = () => {\n const zoom = this.map.getZoom();\n if (zoom !== this.zoom) {\n this.zoom = zoom;\n LeafletUtil.handleEvent(this.zone, this.zoomChange, zoom);\n }\n\n const center = this.map.getCenter();\n if (null != center || null != this.center) {\n\n if (((null == center || null == this.center) && center !== this.center)\n || (center.lat !== this.center.lat || center.lng !== this.center.lng)) {\n\n this.center = center;\n LeafletUtil.handleEvent(this.zone, this.centerChange, center);\n\n }\n }\n };\n\n registerEventHandler('moveend', outputUpdateHandler);\n registerEventHandler('zoomend', outputUpdateHandler);\n }\n\n /**\n * Resize the map to fit it's parent container\n */\n private doResize() {\n\n // Run this outside of angular so the map events stay outside of angular\n this.zone.runOutsideAngular(() => {\n\n // Invalidate the map size to trigger it to update itself\n if (null != this.map) {\n this.map.invalidateSize({});\n }\n\n });\n\n }\n\n /**\n * Manage a delayed resize of the component\n */\n private delayResize() {\n if (null != this.resizeTimer) {\n clearTimeout(this.resizeTimer);\n }\n this.resizeTimer = setTimeout(this.doResize.bind(this), 200);\n }\n\n\n /**\n * Set the view (center/zoom) all at once\n * @param center The new center\n * @param zoom The new zoom level\n */\n private setView(center: LatLng, zoom: number) {\n\n if (null != this.map && null != center && null != zoom) {\n this.map.setView(center, zoom, this.zoomPanOptions);\n }\n\n }\n\n /**\n * Set the map zoom level\n * @param zoom the new zoom level for the map\n */\n private setZoom(zoom: number) {\n\n if (null != this.map && null != zoom) {\n this.map.setZoom(zoom, this.zoomOptions);\n }\n\n }\n\n /**\n * Set the center of the map\n * @param center the center point\n */\n private setCenter(center: LatLng) {\n\n if (null != this.map && null != center) {\n this.map.panTo(center, this.panOptions);\n }\n\n }\n\n /**\n * Fit the map to the bounds\n * @param latLngBounds the boundary to set\n */\n private setFitBounds(latLngBounds: LatLngBounds) {\n\n if (null != this.map && null != latLngBounds) {\n this.map.fitBounds(latLngBounds, this.fitBoundsOptions);\n }\n\n }\n\n /**\n * Set the map's max bounds\n * @param latLngBounds the boundary to set\n */\n private setMaxBounds(latLngBounds: LatLngBounds) {\n\n if (null != this.map && null != latLngBounds) {\n this.map.setMaxBounds(latLngBounds);\n }\n\n }\n\n /**\n * Set the map's min zoom\n * @param number the new min zoom\n */\n private setMinZoom(zoom: number) {\n\n if (null != this.map && null != zoom) {\n this.map.setMinZoom(zoom);\n }\n\n }\n\n /**\n * Set the map's min zoom\n * @param number the new min zoom\n */\n private setMaxZoom(zoom: number) {\n\n if (null != this.map && null != zoom) {\n this.map.setMaxZoom(zoom);\n }\n\n }\n\n}\n","import { LeafletDirective } from './leaflet.directive';\n\nimport { Map } from 'leaflet';\n\nexport class LeafletDirectiveWrapper {\n\n // Reference to the main leaflet directive\n protected leafletDirective: LeafletDirective;\n\n constructor(leafletDirective: LeafletDirective) {\n this.leafletDirective = leafletDirective;\n }\n\n init() {\n // Nothing for now\n }\n\n getMap(): Map {\n return this.leafletDirective.getMap();\n }\n\n}\n","import {\n Directive, EventEmitter, Input, NgZone, OnChanges, OnDestroy, OnInit, Output,\n SimpleChange\n} from '@angular/core';\n\nimport { Layer, LeafletEvent } from 'leaflet';\n\nimport { LeafletDirective } from '../core/leaflet.directive';\nimport { LeafletDirectiveWrapper } from '../core/leaflet.directive.wrapper';\nimport { LeafletUtil } from '../core/leaflet.util';\n\n\n/**\n * Layer directive\n *\n * This directive is used to directly control a single map layer. The purpose of this directive is to\n * be used as part of a child structural directive of the map element.\n *\n */\n@Directive({\n selector: '[leafletLayer]',\n})\nexport class LeafletLayerDirective\n implements OnChanges, OnDestroy, OnInit {\n\n @Input('leafletLayer') layer: Layer;\n\n // Layer Events\n @Output('leafletLayerAdd') onAdd = new EventEmitter<LeafletEvent>();\n @Output('leafletLayerRemove') onRemove = new EventEmitter<LeafletEvent>();\n\n // Layer Event handlers\n private onAddLayerHandler: any;\n private onRemoveLayerHandler: any;\n\n // Wrapper for the leaflet directive (manages the parent directive)\n private leafletDirective: LeafletDirectiveWrapper;\n\n constructor(leafletDirective: LeafletDirective, private zone: NgZone) {\n this.leafletDirective = new LeafletDirectiveWrapper(leafletDirective);\n }\n\n ngOnInit() {\n\n // Init the map\n this.leafletDirective.init();\n\n }\n\n ngOnDestroy() {\n\n if (null != this.layer) {\n\n // Unregister the event handlers\n this.removeLayerEventListeners(this.layer);\n\n // Remove the layer from the map\n this.layer.remove();\n }\n\n }\n\n ngOnChanges(changes: { [key: string]: SimpleChange }) {\n\n if (changes['layer']) {\n\n // Update the layer\n const p: Layer = changes['layer'].previousValue;\n const n = changes['layer'].currentValue;\n\n this.zone.runOutsideAngular(() => {\n if (null != p) {\n this.removeLayerEventListeners(p);\n p.remove();\n }\n if (null != n) {\n this.addLayerEventListeners(n);\n this.leafletDirective.getMap().addLayer(n);\n }\n });\n\n }\n\n }\n\n private addLayerEventListeners(l: Layer) {\n\n this.onAddLayerHandler = (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onAdd, e);\n l.on('add', this.onAddLayerHandler);\n\n this.onRemoveLayerHandler = (e: LeafletEvent) => LeafletUtil.handleEvent(this.zone, this.onRemove, e);\n l.on('remove', this.onRemoveLayerHandler);\n\n }\n\n private removeLayerEventListeners(l: Layer) {\n\n l.off('add', this.onAddLayerHandler);\n l.off('remove', this.onRemoveLayerHandler);\n\n }\n\n}\n","import { Directive, DoCheck, Input, IterableDiffer, IterableDiffers, NgZone, OnDestroy, OnInit } from '@angular/core';\n\nimport { Layer} from 'leaflet';\n\nimport { LeafletDirective } from '../core/leaflet.directive';\nimport { LeafletDirectiveWrapper } from '../core/leaflet.directive.wrapper';\n\n\n/**\n * Layers directive\n *\n * This directive is used to directly control map layers. As changes are made to the input array of\n * layers, the map is synched to the array. As layers are added or removed from the input array, they\n * are also added or removed from the map. The input array is treated as immutable. To detect changes,\n * you must change the array instance.\n *\n * Important Note: The input layers array is assumed to be immutable. This means you need to use an\n * immutable array implementation or create a new copy of your array when you make changes, otherwise\n * this directive won't detect the change. This is by design. It's for performance reasons. Change\n * detection of mutable arrays requires diffing the state of the array on every DoCheck cycle, which\n * is extremely expensive from a time complexity perspective.\n *\n */\n@Directive({\n selector: '[leafletLayers]',\n})\nexport class LeafletLayersDirective\n implements DoCheck, OnDestroy, OnInit {\n\n // Array of configured layers\n layersValue: Layer[];\n\n // Differ to do change detection on the array\n layersDiffer: IterableDiffer<Layer>;\n\n // Set/get the layers\n @Input('leafletLayers')\n set layers(v: Layer[]) {\n this.layersValue = v;\n\n // Now that we have a differ, do an immediate layer update\n this.updateLayers();\n }\n get layers(): Layer[] {\n return this.layersValue;\n }\n\n // Wrapper for the leaflet directive (manages the parent directive)\n private leafletDirective: LeafletDirectiveWrapper;\n\n constructor(leafletDirective: LeafletDirective, private differs: IterableDiffers, private zone: NgZone) {\n this.leafletDirective = new LeafletDirectiveWrapper(leafletDirective);\n this.layersDiffer = this.differs.find([]).create<Layer>();\n }\n\n ngDoCheck() {\n this.updateLayers();\n }\n\n ngOnInit() {\n\n // Init the map\n this.leafletDirective.init();\n\n // Update layers once the map is ready\n this.updateLayers();\n\n }\n\n ngOnDestroy() {\n this.layers = [];\n }\n\n /**\n * Update the state of the layers.\n * We use an iterable differ to synchronize the map layers with the state of the bound layers array.\n * This is important because it allows us to react to changes to the contents of the array as well\n * as changes to the actual array instance.\n */\n private updateLayers() {\n\n const map = this.leafletDirective.getMap();\n\n if (null != map && null != this.layersDiffer) {\n\n const changes = this.layersDiffer.diff(this.layersValue);\n if (null != changes) {\n\n // Run outside angular to ensure layer events don't trigger change detection\n this.zone.runOutsideAngular(() => {\n\n changes.forEachRemovedItem((c) => {\n map.removeLayer(c.item);\n });\n changes.forEachAddedItem((c) => {\n map.addLayer(c.item);\n });\n\n });\n\n }\n\n }\n\n }\n\n}\n","export class LeafletControlLayersChanges {\n layersRemoved: number = 0;\n layersChanged: number = 0;\n layersAdded: number = 0;\n\n changed(): boolean {\n return !(this.layersRemoved === 0 && this.layersChanged === 0 && this.layersAdded === 0);\n }\n}\n","import { EventEmitter, KeyValueChanges, NgZone } from '@angular/core';\n\nimport { control, Control, Layer } from 'leaflet';\n\nimport { LeafletControlLayersChanges } from './leaflet-control-layers-changes.model';\n\nexport class LeafletControlLayersWrapper {\n\n // The layers control object\n protected layersControl: Control.Layers;\n\n // Event Emitter for when the control is ready\n protected layersControlReady: EventEmitter<Control.Layers>;\n\n constructor(private zone: NgZone, layersControlReady: EventEmitter<Control.Layers>) {\n this.layersControlReady = layersControlReady;\n }\n\n getLayersControl() {\n return this.layersControl;\n }\n\n init(controlConfig: any, controlOptions: any): Control.Layers {\n\n const baseLayers = controlConfig.baseLayers || {};\n const overlays = controlConfig.overlays || {};\n\n // Create the control outside of angular to ensure events don't trigger change detection\n this.zone.runOutsideAngular(() => {\n this.layersControl = control.layers(baseLayers, overlays, controlOptions);\n });\n\n\n this.layersControlReady.emit(this.layersControl);\n\n return this.layersControl;\n }\n\n applyBaseLayerChanges(changes: KeyValueChanges<string, Layer>): LeafletControlLayersChanges {\n let results: LeafletControlLayersChanges = new LeafletControlLayersChanges();\n\n if (null != this.layersControl) {\n results = this.applyChanges(changes, this.layersControl.addBaseLayer);\n }\n\n return results;\n }\n\n applyOverlayChanges(changes: KeyValueChanges<string, Layer>): LeafletControlLayersChanges {\n let results: LeafletControlLayersChanges = new LeafletControlLayersChanges();\n\n if (null != this.layersControl) {\n results = this.applyChanges(changes, this.layersControl.addOverlay);\n }\n\n return results;\n }\n\n private applyChanges(changes: KeyValueChanges<string, Layer>, addFn: (layer: Layer, name: string) => void): LeafletControlLayersChanges {\n const results: LeafletControlLayersChanges = new LeafletControlLayersChanges();\n\n if (null != changes) {\n\n // All layer management is outside angular to avoid layer events from triggering change detection\n this.zone.runOutsideAngular(() => {\n\n changes.forEachChangedItem((c) => {\n this.layersControl.removeLayer(c.previousValue);\n addFn.call(this.layersControl, c.currentValue, c.key);\n results.layersChanged++;\n });\n changes.forEachRemovedItem((c) => {\n this.layersControl.removeLayer(c.previousValue);\n results.layersRemoved++;\n });\n changes.forEachAddedItem((c) => {\n addFn.call(this.layersControl, c.currentValue, c.key);\n results.layersAdded++;\n });\n\n });\n\n }\n\n return results;\n }\n\n}\n","import { Layer } from 'leaflet';\n\nexport class LeafletControlLayersConfig {\n baseLayers: { [name: string]: Layer } = {};\n overlays: { [name: string]: Layer } = {};\n}\n","import {\n Directive, DoCheck, EventEmitter, Input, KeyValueDiffer, KeyValueDiffers, NgZone, OnDestroy, OnInit,\n Output\n} from '@angular/core';\n\nimport { Control, Layer } from 'leaflet';\n\nimport { LeafletDirective } from '../../core/leaflet.directive';\nimport { LeafletDirectiveWrapper } from '../../core/leaflet.directive.wrapper';\nimport { LeafletControlLayersWrapper } from './leaflet-control-layers.wrapper';\nimport { LeafletControlLayersConfig } from './leaflet-control-layers-config.model';\n\n\n/**\n * Layers Control\n *\n * This directive is used to configure the layers control. The input accepts an object with two\n * key-value maps of layer name -> layer. Mutable changes are detected. On changes, a differ is\n * used to determine what changed so that layers are appropriately added or removed.\n *\n * To specify which layer to show as the 'active' baselayer, you will want to add it to the map\n * using the layers directive. Otherwise, the last one it sees will be used.\n */\n@Directive({\n selector: '[leafletLayersControl]',\n})\nexport class LeafletLayersControlDirective\n implements DoCheck, OnDestroy, OnInit {\n\n // Control Layers Configuration\n layersControlConfigValue: LeafletControlLayersConfig;\n\n baseLayersDiffer: KeyValueDiffer<string, Layer>;\n overlaysDiffer: KeyValueDiffer<string, Layer>;\n\n @Input('leafletLayersControl')\n set layersControlConfig(v: LeafletControlLayersConfig) {\n\n // Validation/init stuff\n if (null == v) { v = new LeafletControlLayersConfig(); }\n if (null == v.baseLayers) { v.baseLayers = {}; }\n if (null == v.overlays) { v.overlays = {}; }\n\n // Store the value\n this.layersControlConfigValue = v;\n\n // Update the map\n this.updateLayers();\n\n }\n get layersControlConfig(): LeafletControlLayersConfig {\n return this.layersControlConfigValue;\n }\n\n @Input('leafletLayersControlOptions') layersControlOptions: any;\n\n @Output('leafletLayersControlReady') layersControlReady = new EventEmitter<Control.Layers>();\n\n private controlLayers: LeafletControlLayersWrapper;\n private leafletDirective: LeafletDirectiveWrapper;\n\n constructor(leafletDirective: LeafletDirective, private differs: KeyValueDiffers, private zone: NgZone) {\n this.leafletDirective = new LeafletDirectiveWrapper(leafletDirective);\n this.controlLayers = new LeafletControlLayersWrapper(this.zone, this.layersControlReady);\n\n // Generate differs\n this.baseLayersDiffer = this.differs.find({}).create<string, Layer>();\n this.overlaysDiffer = this.differs.find({}).create<string, Layer>();\n\n }\n\n ngOnInit() {\n\n // Init the map\n this.leafletDirective.init();\n\n // Set up control outside of angular to avoid change detection when using the control\n this.zone.runOutsideAngular(() => {\n\n // Set up all the initial settings\n this.controlLayers\n .init({}, this.layersControlOptions)\n .addTo(this.leafletDirective.getMap());\n\n });\n\n this.updateLayers();\n\n }\n\n ngOnDestroy() {\n this.layersControlConfig = { baseLayers: {}, overlays: {} };\n this.controlLayers.getLayersControl().remove();\n }\n\n ngDoCheck() {\n this.updateLayers();\n }\n\n protected updateLayers() {\n\n const map = this.leafletDirective.getMap();\n const layersControl = this.controlLayers.getLayersControl();\n\n if (null != map && null != layersControl) {\n\n // Run the baselayers differ\n if (null != this.baseLayersDiffer && null != this.layersControlConfigValue.baseLayers) {\n const changes = this.baseLayersDiffer.diff(this.layersControlConfigValue.baseLayers);\n this.controlLayers.applyBaseLayerChanges(changes);\n }\n\n // Run the overlays differ\n if (null != this.overlaysDiffer && null != this.layersControlConfigValue.overlays) {\n const changes = this.overlaysDiffer.diff(this.layersControlConfigValue.overlays);\n this.controlLayers.applyOverlayChanges(changes);\n }\n\n }\n\n }\n\n}\n","import {\n Directive, DoCheck, EventEmitter, Input, KeyValueDiffer, KeyValueDiffers, NgZone, OnDestroy,\n OnInit, Output\n} from '@angular/core';\n\nimport { Control, Layer } from 'leaflet';\n\nimport { LeafletUtil } from '../../core/leaflet.util';\nimport { LeafletDirective } from '../../core/leaflet.directive';\nimport { LeafletDirectiveWrapper } from '../../core/leaflet.directive.wrapper';\nimport { LeafletControlLayersWrapper } from '../control/leaflet-control-layers.wrapper';\n\n\n/**\n * Baselayers directive\n *\n * This directive is provided as a convenient way to add baselayers to the map. The input accepts\n * a key-value map of layer name -> layer. Mutable changed are detected. On changes, a differ is\n * used to determine what changed so that layers are appropriately added or removed. This directive\n * will also add the layers control so users can switch between available base layers.\n *\n * To specify which layer to show as the 'active' baselayer, you will want to add it to the map\n * using the layers directive. Otherwise, the plugin will use the last one it sees.\n */\n@Directive({\n selector: '[leafletBaseLayers]',\n})\nexport class LeafletBaseLayersDirective\n implements DoCheck, OnDestroy, OnInit {\n\n // Base Layers\n baseLayersValue: { [name: string]: Layer };\n\n // Base Layers Map Differ\n baseLayersDiffer: KeyValueDiffer<string, Layer>;\n\n // Set/get baseLayers\n @Input('leafletBaseLayers')\n set baseLayers(v: { [name: string]: Layer }) {\n this.baseLayersValue = v;\n\n this.updateBaseLayers();\n }\n get baseLayers(): { [name: string]: Layer } {\n return this.baseLayersValue;\n }\n\n // Control Options\n @Input('leafletLayersControlOptions') layersControlOptions: Control.LayersOptions;\n\n // Output for once the layers control is ready\n @Output('leafletLayersControlReady') layersControlReady = new EventEmitter<Control.Layers>();\n\n // Active Base Layer\n private baseLayer: Layer;\n\n private leafletDirective: LeafletDirectiveWrapper;\n private controlLayers: LeafletControlLayersWrapper;\n\n constructor(leafletDirective: LeafletDirective, private differs: KeyValueDiffers, private zone: NgZone) {\n this.leafletDirective = new LeafletDirectiveWrapper(leafletDirective);\n this.controlLayers = new LeafletControlLayersWrapper(this.zone, this.layersControlReady);\n this.baseLayersDiffer = this.differs.find({}).create<string, Layer>();\n }\n\n ngOnDestroy() {\n this.baseLayers = {};\n if (null != this.controlLayers.getLayersControl()) {\n this.controlLayers.getLayersControl().remove();\n }\n }\n\n ngOnInit() {\n\n // Init the map\n this.leafletDirective.init();\n\n // Create the control outside angular to prevent events from triggering chnage detection\n this.zone.runOutsideAngular(() => {\n\n // Initially configure the controlLayers\n this.controlLayers\n .init({}, this.layersControlOptions)\n .addTo(this.leafletDirective.getMap());\n\n });\n\n this.updateBaseLayers();\n\n }\n\n ngDoCheck() {\n this.updateBaseLayers();\n }\n\n protected updateBaseLayers() {\n\n const map = this.leafletDirective.getMap();\n const layersControl = this.controlLayers.getLayersControl();\n\n if (null != map && null != layersControl && null != this.baseLayersDiffer) {\n const changes = this.baseLayersDiffer.diff(this.baseLayersValue);\n const results = this.controlLayers.applyBaseLayerChanges(changes);\n\n if (results.changed()) {\n this.syncBaseLayer();\n }\n }\n\n }\n\n /**\n * Check the current base layer and change it to the new one if necessary\n */\n protected syncBaseLayer() {\n\n const map = this.leafletDirective.getMap();\n const layers = LeafletUtil.mapToArray(this.baseLayers);\n let foundLayer: Layer;\n\n // Search all the layers in the map to see if we can find them in the baselayer array\n map.eachLayer((l: Layer) => {\n foundLayer = layers.find((bl) => (l === bl));\n });\n\n // Did we find the layer?\n if (null != foundLayer) {\n // Yes - set the baselayer to the one we found\n this.baseLayer = foundLayer;\n }\n else {\n // No - set the baselayer to the first in the array and add it to the map\n if (layers.length > 0) {\n this.baseLayer = layers[0];\n\n // Add layers outside of angular to prevent events from triggering change detection\n this.zone.runOutsideAngular(() => {\n this.baseLayer.addTo(map);\n });\n }\n }\n\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { LeafletDirective } from './core/leaflet.directive';\nimport { LeafletLayerDirective } from './layers/leaflet-layer.directive';\nimport { LeafletLayersDirective } from './layers/leaflet-layers.directive';\nimport { LeafletLayersControlDirective } from './layers/control/leaflet-control-layers.directive';\nimport { LeafletBaseLayersDirective } from './layers/base/leaflet-baselayers.directive';\n\n@NgModule({\n imports: [\n LeafletDirective,\n LeafletLayerDirective,\n LeafletLayersDirective,\n LeafletLayersControlDirective,\n LeafletBaseLayersDirective\n ],\n exports: [\n LeafletDirective,\n LeafletLayerDirective,\n LeafletLayersDirective,\n LeafletLayersControlDirective,\n LeafletBaseLayersDirective\n ]\n})\nexport class LeafletModule {\n\n}\n","import { tileLayer, TileLayer } from 'leaflet';\n\nexport class LeafletTileLayerDefinition {\n\n constructor(\n public type: string,\n public url: string,\n public options: any) { }\n\n\n /**\n * Creates a TileLayer from the provided definition. This is a convenience function\n * to help with generating layers from objects.\n *\n * @param layerDef The layer to create\n * @returns {TileLayer} The TileLayer that has been created\n */\n static createTileLayer(layerDef: LeafletTileLayerDefinition): TileLayer {\n let layer: TileLayer;\n\n switch (layerDef.type) {\n case 'xyz':\n layer = tileLayer(layerDef.url, layerDef.options);\n break;\n case 'wms':\n default:\n layer = tileLayer.wms(layerDef.url, layerDef.options);\n break;\n }\n\n return layer;\n }\n\n /**\n * Creates a TileLayer for each key in the incoming map. This is a convenience function\n * for generating an associative array of layers from an associative array of objects\n *\n * @param layerDefs A map of key to tile layer definition\n * @returns {{[p: string]: TileLayer}} A new map of key to TileLayer\n */\n static createTileLayers(layerDefs: { [ key: string ]: LeafletTileLayerDefinition }): { [ key: string ]: TileLayer } {\n const layers: { [ key: string ]: TileLayer } = {};\n\n for (const k in layerDefs) {\n if (layerDefs.hasOwnProperty(k)) {\n layers[k] = (LeafletTileLayerDefinition.createTileLayer(layerDefs[k]));\n }\n }\n\n return layers;\n }\n\n /**\n * Create a Tile Layer from the current state of this object\n *\n * @returns {TileLayer} A new TileLayer\n */\n createTileLayer(): TileLayer {\n return LeafletTileLayerDefinition.createTileLayer(this);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.LeafletDirective"],"mappings":";;;;MAEa,WAAW,CAAA;IAEpB,OAAO,UAAU,CAAI,GAA2B,EAAA;QAC5C,MAAM,QAAQ,GAAQ,EAAE;AAExB,QAAA,KAAK,MAAM,CAAC,IAAI,GAAG,EAAE;AACjB,YAAA,IAAI,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;gBACvB,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACzB;QACJ;AAEA,QAAA,OAAO,QAAQ;IACnB;AAEA,IAAA,OAAO,WAAW,CAAI,IAAY,EAAE,YAA6B,EAAE,KAAQ,EAAA;;QAGvE,IAAI,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,EAAE;AACnC,YAAA,IAAI,CAAC,GAAG,CAAC,MAAK;AACV,gBAAA,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;AAC5B,YAAA,CAAC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,CAAC;YAC1E;QACJ;AAEA,QAAA,OAAO,MAAM;IACjB;AAEA;;;;AAIG;IACH,eAAe,GAAA;AACX,QAAA,OAAO,0BAA0B,CAAC,eAAe,CAAC,IAAI,CAAC;IAC3D;AACH;;AC5DD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bluehalo/ngx-leaflet",
3
3
  "description": "Angular.io components for Leaflet",
4
- "version": "20.0.0",
4
+ "version": "21.0.0",
5
5
  "author": "BlueHalo, LLC",
6
6
  "copyright": "Copyright BlueHalo 2007-2025 - All Rights Reserved.",
7
7
  "license": "MIT",
@@ -10,21 +10,21 @@
10
10
  "url": "https://github.com/bluehalo/ngx-leaflet.git"
11
11
  },
12
12
  "peerDependencies": {
13
- "@angular/common": "20",
14
- "@angular/core": "20",
13
+ "@angular/common": "21",
14
+ "@angular/core": "21",
15
15
  "leaflet": "1"
16
16
  },
17
17
  "dependencies": {
18
18
  "tslib": "^2.8.0"
19
19
  },
20
20
  "module": "fesm2022/bluehalo-ngx-leaflet.mjs",
21
- "typings": "index.d.ts",
21
+ "typings": "types/bluehalo-ngx-leaflet.d.ts",
22
22
  "exports": {
23
23
  "./package.json": {
24
24
  "default": "./package.json"
25
25
  },
26
26
  ".": {
27
- "types": "./index.d.ts",
27
+ "types": "./types/bluehalo-ngx-leaflet.d.ts",
28
28
  "default": "./fesm2022/bluehalo-ngx-leaflet.mjs"
29
29
  }
30
30
  },
File without changes