Last click: {{ lastClick }}
', }) export class AppComponent { lastClick = ''; onMapClick = (event: any) => { const [lng, lat] = event.coordinates; this.lastClick = `lng=${lng.toFixed(4)}, lat=${lat.toFixed(4)}`; }; onMouseMove = (event: any) => { // Runs outside Angular zone — use NgZone.run() to trigger change detection if needed }; } ``` -------------------------------- ### Custom HTML Control (`Zoom: {{ currentZoom }}