From bafb68617a4d1057950761f3d40a6b34a3bc7476 Mon Sep 17 00:00:00 2001 From: Robin Hawkes Date: Fri, 4 Nov 2016 14:11:26 -0700 Subject: [PATCH] Update Mapzen endpoints --- examples/all-the-things/main.js | 2 +- examples/basic/main.js | 2 +- examples/colour-by-height/main.js | 2 +- examples/geojson/main.js | 2 +- examples/web-workers-all-the-things/main.js | 2 +- examples/web-workers-basic/main.js | 2 +- examples/web-workers-geojson/main.js | 2 +- examples/web-workers-outlines/main.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/all-the-things/main.js b/examples/all-the-things/main.js index 37c8796..42de176 100644 --- a/examples/all-the-things/main.js +++ b/examples/all-the-things/main.js @@ -18,7 +18,7 @@ VIZI.imageTileLayer('http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y} }).addTo(world); // Buildings and roads from Mapzen (polygons and linestrings) -var topoJSONTileLayer = VIZI.topoJSONTileLayer('https://vector.mapzen.com/osm/buildings,roads/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { +var topoJSONTileLayer = VIZI.topoJSONTileLayer('https://tile.mapzen.com/mapzen/vector/v1/buildings,roads/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { interactive: false, style: function(feature) { var height; diff --git a/examples/basic/main.js b/examples/basic/main.js index dcb8c3a..c905bd6 100644 --- a/examples/basic/main.js +++ b/examples/basic/main.js @@ -17,7 +17,7 @@ VIZI.imageTileLayer('http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y} });; // Buildings from Mapzen -VIZI.topoJSONTileLayer('https://vector.mapzen.com/osm/buildings/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { +VIZI.topoJSONTileLayer('https://tile.mapzen.com/mapzen/vector/v1/buildings/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { interactive: false, style: function(feature) { var height; diff --git a/examples/colour-by-height/main.js b/examples/colour-by-height/main.js index 2f7ff6c..0de0fe5 100644 --- a/examples/colour-by-height/main.js +++ b/examples/colour-by-height/main.js @@ -18,7 +18,7 @@ VIZI.imageTileLayer('http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y} var colourScale = chroma.scale('YlOrBr').domain([0,200]); // Buildings from Mapzen -VIZI.topoJSONTileLayer('https://vector.mapzen.com/osm/buildings/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { +VIZI.topoJSONTileLayer('https://tile.mapzen.com/mapzen/vector/v1/buildings/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { interactive: false, style: function(feature) { var height; diff --git a/examples/geojson/main.js b/examples/geojson/main.js index c4c9695..d7f11d5 100644 --- a/examples/geojson/main.js +++ b/examples/geojson/main.js @@ -15,7 +15,7 @@ VIZI.imageTileLayer('http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y} }).addTo(world); // Mapzen GeoJSON tile including points, linestrings and polygons -VIZI.geoJSONLayer('http://vector.mapzen.com/osm/roads,pois,buildings/14/4824/6159.json', { +VIZI.geoJSONLayer('https://tile.mapzen.com/mapzen/vector/v1/roads,pois,buildings/14/4824/6159.json', { output: true, style: { color: '#ff0000', diff --git a/examples/web-workers-all-the-things/main.js b/examples/web-workers-all-the-things/main.js index 40b5dec..75d8717 100644 --- a/examples/web-workers-all-the-things/main.js +++ b/examples/web-workers-all-the-things/main.js @@ -22,7 +22,7 @@ world.createWorkers(7).then(() => { }).addTo(world); // Buildings and roads from Mapzen (polygons and linestrings) - var topoJSONTileLayer = VIZI.topoJSONTileLayer('https://vector.mapzen.com/osm/buildings,roads/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { + var topoJSONTileLayer = VIZI.topoJSONTileLayer('https://tile.mapzen.com/mapzen/vector/v1/buildings,roads/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { workers: true, interactive: false, style: function(feature) { diff --git a/examples/web-workers-basic/main.js b/examples/web-workers-basic/main.js index 4fa21c8..0d4872d 100644 --- a/examples/web-workers-basic/main.js +++ b/examples/web-workers-basic/main.js @@ -21,7 +21,7 @@ world.createWorkers(7).then(() => { });; // Buildings from Mapzen - VIZI.topoJSONTileLayer('https://vector.mapzen.com/osm/buildings/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { + VIZI.topoJSONTileLayer('https://tile.mapzen.com/mapzen/vector/v1/buildings/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { workers: true, interactive: false, style: function(feature) { diff --git a/examples/web-workers-geojson/main.js b/examples/web-workers-geojson/main.js index a8e57f2..73b5d6c 100644 --- a/examples/web-workers-geojson/main.js +++ b/examples/web-workers-geojson/main.js @@ -19,7 +19,7 @@ world.createWorkers(7).then(() => { }).addTo(world); // Mapzen GeoJSON tile including points, linestrings and polygons - VIZI.geoJSONWorkerLayer('http://vector.mapzen.com/osm/roads,pois,buildings/14/4824/6159.json', { + VIZI.geoJSONWorkerLayer('https://tile.mapzen.com/mapzen/vector/v1/roads,pois,buildings/14/4824/6159.json', { output: true, style: { color: '#ff0000', diff --git a/examples/web-workers-outlines/main.js b/examples/web-workers-outlines/main.js index d2acda1..a902366 100644 --- a/examples/web-workers-outlines/main.js +++ b/examples/web-workers-outlines/main.js @@ -21,7 +21,7 @@ world.createWorkers(7).then(() => { }); // Buildings from Mapzen - VIZI.topoJSONTileLayer('https://vector.mapzen.com/osm/buildings/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { + VIZI.topoJSONTileLayer('https://tile.mapzen.com/mapzen/vector/v1/buildings/{z}/{x}/{y}.topojson?api_key=vector-tiles-NT5Emiw', { workers: true, interactive: false, maxLOD: 17,