Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/MapLibreLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export default class MapLibreLayer extends Layer {

this.mapLibreMap.once('load', () => {
this.loaded = true;
this.getRenderer().ready = true
this.dispatchEvent(new BaseEvent('load'));
});
}
Expand Down
1 change: 1 addition & 0 deletions src/MapLibreLayerRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default class MapLibreLayerRenderer extends LayerRenderer<MapLibreLayer>
constructor(layer: MapLibreLayer, translateZoom: MapLibreLayerTranslateZoomFunction | undefined) {
super(layer)
this.translateZoom = translateZoom
this.ready = false
}

getFeaturesAtCoordinate(
Expand Down