Fix: add carto vector layers again
This commit is contained in:
parent
89afe9102f
commit
5e2a98924c
2 changed files with 70 additions and 4 deletions
|
@ -53,10 +53,7 @@ export class AvailableRasterLayers {
|
||||||
geometry: BBox.global.asGeometry(),
|
geometry: BBox.global.asGeometry(),
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly vectorLayers = [
|
public static readonly vectorLayers = [AvailableRasterLayers.maptilerDefaultLayer]
|
||||||
AvailableRasterLayers.maptilerDefaultLayer,
|
|
||||||
AvailableRasterLayers.osmCarto,
|
|
||||||
]
|
|
||||||
|
|
||||||
public static layersAvailableAt(
|
public static layersAvailableAt(
|
||||||
location: Store<{ lon: number; lat: number }>
|
location: Store<{ lon: number; lat: number }>
|
||||||
|
@ -79,6 +76,7 @@ export class AvailableRasterLayers {
|
||||||
}
|
}
|
||||||
return GeoOperations.inside(lonlat, eliPolygon)
|
return GeoOperations.inside(lonlat, eliPolygon)
|
||||||
})
|
})
|
||||||
|
matching.push(AvailableRasterLayers.maptilerDefaultLayer)
|
||||||
matching.push(...AvailableRasterLayers.globalLayers)
|
matching.push(...AvailableRasterLayers.globalLayers)
|
||||||
return matching
|
return matching
|
||||||
})
|
})
|
||||||
|
|
|
@ -87,6 +87,74 @@
|
||||||
"text": "Stadiamaps",
|
"text": "Stadiamaps",
|
||||||
"url": "https://stadiamaps.com/"
|
"url": "https://stadiamaps.com/"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json?key=eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfdW4ybmhlbTciLCJqdGkiOiIwZGQxNjJmNyJ9.uATJpa6QcrtXhph3Bzvk2nX3QsxEw-Q8dj5khUG6hGk",
|
||||||
|
"name": "Carto Positron",
|
||||||
|
"category": "osmbasedmap",
|
||||||
|
"id": "carto.positron",
|
||||||
|
"type": "vector",
|
||||||
|
"attribution": {
|
||||||
|
"text": "<a href=\"https://carto.com/about-carto/\" target=\"_blank\" rel=\"noopener\">CARTO</a>",
|
||||||
|
"url": "https://carto.com/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json?key=eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfdW4ybmhlbTciLCJqdGkiOiIwZGQxNjJmNyJ9.uATJpa6QcrtXhph3Bzvk2nX3QsxEw-Q8dj5khUG6hGk",
|
||||||
|
"name": "Carto Dark Matter",
|
||||||
|
"category": "osmbasedmap",
|
||||||
|
"id": "carto.dark_matter",
|
||||||
|
"type": "vector",
|
||||||
|
"attribution": {
|
||||||
|
"text": "<a href=\"https://carto.com/about-carto/\" target=\"_blank\" rel=\"noopener\">CARTO</a>",
|
||||||
|
"url": "https://carto.com/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json?key=eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfdW4ybmhlbTciLCJqdGkiOiIwZGQxNjJmNyJ9.uATJpa6QcrtXhph3Bzvk2nX3QsxEw-Q8dj5khUG6hGk",
|
||||||
|
"name": "Carto Voyager",
|
||||||
|
"category": "osmbasedmap",
|
||||||
|
"id": "carto.voyager",
|
||||||
|
"type": "vector",
|
||||||
|
"attribution": {
|
||||||
|
"text": "<a href=\"https://carto.com/about-carto/\" target=\"_blank\" rel=\"noopener\">CARTO</a>",
|
||||||
|
"url": "https://carto.com/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
"url": "https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json?key=eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfdW4ybmhlbTciLCJqdGkiOiIwZGQxNjJmNyJ9.uATJpa6QcrtXhph3Bzvk2nX3QsxEw-Q8dj5khUG6hGk",
|
||||||
|
"name": "Carto Positron (no labels)",
|
||||||
|
"category": "osmbasedmap",
|
||||||
|
"id": "carto.positron_no_labels",
|
||||||
|
"type": "vector",
|
||||||
|
"attribution": {
|
||||||
|
"text": "<a href=\"https://carto.com/about-carto/\" target=\"_blank\" rel=\"noopener\">CARTO</a>",
|
||||||
|
"url": "https://carto.com/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json?key=eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfdW4ybmhlbTciLCJqdGkiOiIwZGQxNjJmNyJ9.uATJpa6QcrtXhph3Bzvk2nX3QsxEw-Q8dj5khUG6hGk",
|
||||||
|
"name": "Carto Dark Matter (no labels)",
|
||||||
|
"category": "osmbasedmap",
|
||||||
|
"id": "carto.dark_matter_no_labels",
|
||||||
|
"type": "vector",
|
||||||
|
"attribution": {
|
||||||
|
"text": "<a href=\"https://carto.com/about-carto/\" target=\"_blank\" rel=\"noopener\">CARTO</a>",
|
||||||
|
"url": "https://carto.com/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json?key=eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfdW4ybmhlbTciLCJqdGkiOiIwZGQxNjJmNyJ9.uATJpa6QcrtXhph3Bzvk2nX3QsxEw-Q8dj5khUG6hGk",
|
||||||
|
"name": "Carto Voyager (no labels)",
|
||||||
|
"category": "osmbasedmap",
|
||||||
|
"id": "carto.voyager_no_labels",
|
||||||
|
"type": "vector",
|
||||||
|
"attribution": {
|
||||||
|
"text": "<a href=\"https://carto.com/about-carto/\" target=\"_blank\" rel=\"noopener\">CARTO</a>",
|
||||||
|
"url": "https://carto.com/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue