mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
detect vector styles loaded from mapbox api
This commit is contained in:
@@ -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