Skip to content

Commit b0037c5

Browse files
committed
fix: remove style from source
1 parent 49e4630 commit b0037c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/LayersControl.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export function SourceControl() {
4141
tileSize: withDefault(ArrayControl, [256, 256]),
4242
nodata: withDefault(NumberControl, 0),
4343
ratio: withDefault(NumberControl, 1),
44-
style: withDefault(ArrayOrJSONObjectControl),
4544
pmtilesType: withDefault(dropdownControl([
4645
{ label: "Raster", value: "raster" },
4746
{ label: "Vector", value: "vector" },
@@ -70,7 +69,7 @@ export function SourceControl() {
7069
'cog': ['url', 'tileSize', 'nodata', 'projection'],
7170
'stylegl': ['url', 'projection'],
7271
'arcgis-mapserver': ['mapServerType', 'url', 'params', 'ratio', 'crossOrigin'],
73-
'pmtiles': ['pmtilesType', 'url', 'tileSize', 'style'],
72+
'pmtiles': ['pmtilesType', 'url', 'tileSize'],
7473
'arcgis-vector-tiles': ['url', 'projection'],
7574
'arcgis-feature-service': ['url', 'projection'],
7675
}[layerType] || []; // Default to empty configuration

0 commit comments

Comments
 (0)