- webpack config separation for development and production

- load only the necessary classes from leaflet
This commit is contained in:
Arno Kaimbacher 2021-08-25 17:52:09 +02:00
parent 7857e2c5bb
commit bc44385846
13 changed files with 883 additions and 209 deletions

View file

@ -70,7 +70,7 @@ export abstract class BaseMapComponent implements OnChanges, OnInit {
* Informs when initialization is done with map id.
*/
@Output()
public mapInitializedEvent: EventEmitter<string> = new EventEmitter();
public onMapInitializedEvent: EventEmitter<string> = new EventEmitter();
protected oldBaseLayer: L.Control.LayersObject = {};
protected map: L.Map;
@ -103,7 +103,7 @@ export abstract class BaseMapComponent implements OnChanges, OnInit {
zoom: 3
});
this.mapInitializedEvent.emit(this.mapId);
this.onMapInitializedEvent.emit(this.mapId);
if (this.baseMaps && this.baseMaps.size > 0) {
this.baseMaps.forEach((layerOptions, key) => this.addBaseMap(layerOptions));
} else {