Allow Customization of OpenLayers Format Parameters (#408)

* optional format option
This commit is contained in:
Pranciškus Ambrazas
2024-06-12 14:58:32 +03:00
committed by GitHub
parent d16faa2658
commit 15d5166736

View File

@@ -83,7 +83,7 @@ export class PMTilesVectorSource extends VectorTile {
...{ ...{
state: "loading", state: "loading",
url: "pmtiles://" + options.url + "/{z}/{x}/{y}", url: "pmtiles://" + options.url + "/{z}/{x}/{y}",
format: new MVT(), format: options.format || new MVT(),
}, },
}); });