MCPcopy Create free account
hub / github.com/angular/examples / initMap

Method initMap

logistics-manager-app/src/app/components/map/map.ts:129–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 private initMap() {
130 if (!this.L) return;
131 const L = this.L;
132 const el = this.mapContainer.nativeElement;
133 this.map = L.map(el, {
134 zoomControl: false,
135 attributionControl: false
136 }).setView([39.8283, -98.5795], 4);
137
138 this.updateTileLayer(this.fleetService.isDarkMode());
139 }
140}

Callers 1

constructorMethod · 0.95

Calls 1

updateTileLayerMethod · 0.95

Tested by

no test coverage detected