Implement adding public and custom sources

This commit is contained in:
Lukas Martinelli
2016-12-28 15:57:30 +01:00
parent ba271e1fc6
commit 80678af691
4 changed files with 80 additions and 49 deletions

View File

@@ -1,12 +1,10 @@
[
{
"id": "mapbox-streets",
{
"mapbox-streets": {
"type": "vector",
"url": "mapbox://mapbox.mapbox-streets-v7",
"title": "Mapbox Streets"
},
{
"id": "tilezen",
"tilezen": {
"type": "vector",
"tiles": [
"http://tile.mapzen.com/mapzen/vector/v1/{layers}/{z}/{x}/{y}.pbf?api_key=mapzen-RVcyVL7"
@@ -15,16 +13,14 @@
"maxZoom": 15,
"title": "Mapzen Vector Tile Service"
},
{
"id": "openmaptiles",
"openmaptiles": {
"type": "vector",
"url": "https://free.tilehosting.com/data/v3.json?key=25ItXg7aI5wurYDtttD",
"title": "OpenMapTiles CDN"
},
{
"id": "swissnames-landscape",
"swissnames-landscape": {
"type": "geojson",
"data": "http://swissnames.lukasmartinelli.ch/data/landscape.geojson",
"title": "Landscape Names GeoJSON"
}
]
}