/** * This is an extension of MapLibre RasterTileSource to make it fully type compatible with the SDK */ import maplibregl from "maplibre-gl"; import type { Map as MapMLGL } from "maplibre-gl"; import { Map } from "./Map"; export class RasterTileSource extends maplibregl.RasterTileSource { onAdd(map: Map | MapMLGL) { super.onAdd(map as MapMLGL); } }