From 15d5166736805968aea5c9fbc15eaa0bfedfa945 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pranci=C5=A1kus=20Ambrazas?=
Date: Wed, 12 Jun 2024 14:58:32 +0300
Subject: [PATCH] Allow Customization of OpenLayers Format Parameters (#408)
* optional format option
---
openlayers/src/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openlayers/src/index.js b/openlayers/src/index.js
index 4a529b7..14c2852 100644
--- a/openlayers/src/index.js
+++ b/openlayers/src/index.js
@@ -83,7 +83,7 @@ export class PMTilesVectorSource extends VectorTile {
...{
state: "loading",
url: "pmtiles://" + options.url + "/{z}/{x}/{y}",
- format: new MVT(),
+ format: options.format || new MVT(),
},
});