From f54408fd4463d7f3e79cd52ba76f6aa5b6c0e639 Mon Sep 17 00:00:00 2001 From: charlieforward9 Date: Wed, 11 Dec 2024 15:49:50 -0500 Subject: [PATCH] fix: debug log --- src/canvas-overlay.ts | 8 ++++++++ src/points.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/src/canvas-overlay.ts b/src/canvas-overlay.ts index a7e938c..cb57a73 100644 --- a/src/canvas-overlay.ts +++ b/src/canvas-overlay.ts @@ -168,6 +168,14 @@ export class CanvasOverlay extends Layer { _redraw(): void { const { _map, canvas } = this; + console.log({ + "All the maps we can try": true, + _map: this._map, + map: this.map, + }); + if (!_map) { + throw new Error("CanvasOverlay has not been set to a map"); + } const size = _map.getSize(); const bounds = _map.getBounds(); const zoomScale = diff --git a/src/points.ts b/src/points.ts index a932e10..c122926 100644 --- a/src/points.ts +++ b/src/points.ts @@ -337,6 +337,7 @@ export class Points extends BaseGlLayer { gl.uniformMatrix4fv(matrix, false, mapMatrix.array); gl.drawArrays(gl.POINTS, 0, allLatLngLookup.length); + console.log(`Drawing on canvas ${this.layer._leaflet_id}`); return this; }