Skip to content

Commit

Permalink
fix: debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieforward9 committed Dec 11, 2024
1 parent d4c90e3 commit f54408f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/canvas-overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
1 change: 1 addition & 0 deletions src/points.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export class Points extends BaseGlLayer<IPointsSettings> {
gl.uniformMatrix4fv(matrix, false, mapMatrix.array);
gl.drawArrays(gl.POINTS, 0, allLatLngLookup.length);

console.log(`Drawing on canvas ${this.layer._leaflet_id}`);
return this;
}

Expand Down

0 comments on commit f54408f

Please sign in to comment.