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; }