Update: My answer has been posted. Please take a look.
Inquiry:
I'm trying to figure out why the leaflet map is not displaying properly in the full map area?
.html
<ion-content padding>
<div style="height: 100%;width:100%" leaflet [leafletOptions]="options" *ngIf="options" [leafletCenter]="center">
</div>
</ion-content>
.ts
init(): void {
this.options = {
layers: [
tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 18, attribution: "..." })
],
zoom: 10,
center: this.center = latLng(Number(this.activatedRoute.snapshot.paramMap.get("latitude")), Number(this.activatedRoute.snapshot.paramMap.get("longitude"))),
attributionControl: false,
};
}
UI
https://i.sstatic.net/0BPLj.png
Take a look at the image provided. It appears there may be an issue with the transform
property. Initially set at 0,0,0
, I manually adjusted it in the browser console. How can this be applied to the map?