mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-18 17:02:29 +00:00
detect vector styles loaded from mapbox api
This commit is contained in:
1 parent
f1edc0d2d6
commit
18d3bd426b
1 file changed
+1
-1
@@ -27,7 +27,7 @@
|
||||
let resourceType: 'raster' | 'vector' = 'raster';
|
||||
|
||||
$: if (tileUrls[0].length > 0) {
|
||||
if (tileUrls[0].includes('.json')) {
|
||||
if (tileUrls[0].includes('.json') || tileUrls[0].includes('api.mapbox.com/styles')) {
|
||||
resourceType = 'vector';
|
||||
layerType = 'basemap';
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user