Skip to content

Commit

Permalink
switch sources
Browse files Browse the repository at this point in the history
  • Loading branch information
meetar committed May 23, 2018
1 parent 2de1ea6 commit 27f6181
Show file tree
Hide file tree
Showing 56 changed files with 384 additions and 396 deletions.
16 changes: 8 additions & 8 deletions cameras/axis.yaml
Expand Up @@ -4,25 +4,25 @@ cameras:
axis: [1,1]

sources:
mapzen:
nextzen:
type: TopoJSON
url: https://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.topojson
url: https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.topojson
url_params:
api_key: mapzen-rtjEFK2
api_key: 3XqXMjEdT2StnrIRJ4HYbg
max_zoom: 16

layers:
earth:
data:
source: mapzen
source: nextzen
layer: earth
draw:
polygons:
order: 0
color: '#ddeeee'
landuse:
data:
source: mapzen
source: nextzen
layer: landuse
draw:
polygons:
Expand All @@ -31,7 +31,7 @@ layers:

water:
data:
source: mapzen
source: nextzen
layer: water
draw:
polygons:
Expand All @@ -40,7 +40,7 @@ layers:

roads:
data:
source: mapzen
source: nextzen
layer: roads
filter: { not: { kind: [ferry, rail, path]}}
draw:
Expand All @@ -57,7 +57,7 @@ layers:

buildings:
data:
source: mapzen
source: nextzen
layer: buildings
draw:
polygons:
Expand Down
16 changes: 8 additions & 8 deletions cameras/flat.yaml
Expand Up @@ -3,25 +3,25 @@ cameras:
type: flat

sources:
mapzen:
nextzen:
type: TopoJSON
url: https://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.topojson
url: https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.topojson
url_params:
api_key: mapzen-rtjEFK2
api_key: 3XqXMjEdT2StnrIRJ4HYbg
max_zoom: 16

layers:
earth:
data:
source: mapzen
source: nextzen
layer: earth
draw:
polygons:
order: 0
color: '#ddeeee'
landuse:
data:
source: mapzen
source: nextzen
layer: landuse
draw:
polygons:
Expand All @@ -30,7 +30,7 @@ layers:

water:
data:
source: mapzen
source: nextzen
layer: water
draw:
polygons:
Expand All @@ -39,7 +39,7 @@ layers:

roads:
data:
source: mapzen
source: nextzen
layer: roads
filter: { not: { kind: [rail, ferry, path, minor_road]}}
draw:
Expand All @@ -49,7 +49,7 @@ layers:
width: 8
buildings:
data:
source: mapzen
source: nextzen
layer: buildings
draw:
polygons:
Expand Down
14 changes: 7 additions & 7 deletions cameras/focal_length.yaml
Expand Up @@ -4,25 +4,25 @@ cameras:
focal_length: .5

sources:
mapzen:
nextzen:
type: TopoJSON
url: https://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.topojson
url: https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.topojson
url_params:
api_key: mapzen-rtjEFK2
api_key: 3XqXMjEdT2StnrIRJ4HYbg
max_zoom: 16

layers:
earth:
data:
source: mapzen
source: nextzen
layer: earth
draw:
polygons:
order: 0
color: '#ddeeee'
landuse:
data:
source: mapzen
source: nextzen
layer: landuse
draw:
polygons:
Expand All @@ -31,7 +31,7 @@ layers:

water:
data:
source: mapzen
source: nextzen
layer: water
draw:
polygons:
Expand All @@ -40,7 +40,7 @@ layers:

buildings:
data:
source: mapzen
source: nextzen
layer: buildings
draw:
polygons:
Expand Down
16 changes: 8 additions & 8 deletions cameras/isometric.yaml
Expand Up @@ -4,25 +4,25 @@ cameras:
axis: [0,1]

sources:
mapzen:
nextzen:
type: TopoJSON
url: https://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.topojson
url: https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.topojson
url_params:
api_key: mapzen-rtjEFK2
api_key: 3XqXMjEdT2StnrIRJ4HYbg
max_zoom: 16

layers:
earth:
data:
source: mapzen
source: nextzen
layer: earth
draw:
polygons:
order: 0
color: '#ddeeee'
landuse:
data:
source: mapzen
source: nextzen
layer: landuse
draw:
polygons:
Expand All @@ -31,7 +31,7 @@ layers:

water:
data:
source: mapzen
source: nextzen
layer: water
draw:
polygons:
Expand All @@ -40,7 +40,7 @@ layers:

roads:
data:
source: mapzen
source: nextzen
layer: roads
filter: { not: { kind: [rail, ferry, path, minor_road]}}
draw:
Expand All @@ -51,7 +51,7 @@ layers:

buildings:
data:
source: mapzen
source: nextzen
layer: buildings
draw:
polygons:
Expand Down
16 changes: 8 additions & 8 deletions cameras/perspective.yaml
Expand Up @@ -3,41 +3,41 @@ cameras:
type: perspective

sources:
mapzen:
nextzen:
type: TopoJSON
url: https://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.topojson
url: https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.topojson
url_params:
api_key: mapzen-rtjEFK2
api_key: 3XqXMjEdT2StnrIRJ4HYbg
max_zoom: 16

layers:
earth:
data:
source: mapzen
source: nextzen
layer: earth
draw:
polygons:
order: 0
color: '#ddeeee'
landuse:
data:
source: mapzen
source: nextzen
layer: landuse
draw:
polygons:
order: 1
color: '#aaffaa'
water:
data:
source: mapzen
source: nextzen
layer: water
draw:
polygons:
order: 2
color: '#88bbee'
roads:
data:
source: mapzen
source: nextzen
layer: roads
filter: { not: { kind: [rail, ferry, path, minor_road] } }
draw:
Expand All @@ -47,7 +47,7 @@ layers:
width: 8
buildings:
data:
source: mapzen
source: nextzen
layer: buildings
draw:
polygons:
Expand Down
16 changes: 8 additions & 8 deletions cameras/vanishing_point.yaml
Expand Up @@ -5,25 +5,25 @@ cameras:
focal_length: 1.

sources:
mapzen:
nextzen:
type: TopoJSON
url: https://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.topojson
url: https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.topojson
url_params:
api_key: mapzen-rtjEFK2
api_key: 3XqXMjEdT2StnrIRJ4HYbg
max_zoom: 16

layers:
earth:
data:
source: mapzen
source: nextzen
layer: earth
draw:
polygons:
order: 0
color: '#ddeeee'
landuse:
data:
source: mapzen
source: nextzen
layer: landuse
draw:
polygons:
Expand All @@ -32,7 +32,7 @@ layers:

water:
data:
source: mapzen
source: nextzen
layer: water
draw:
polygons:
Expand All @@ -41,7 +41,7 @@ layers:

roads:
data:
source: mapzen
source: nextzen
layer: roads
filter: { not: { kind: [rail, ferry, path, minor_road]}}
draw:
Expand All @@ -52,7 +52,7 @@ layers:

buildings:
data:
source: mapzen
source: nextzen
layer: buildings
draw:
polygons:
Expand Down
16 changes: 2 additions & 14 deletions index.html
Expand Up @@ -3,7 +3,6 @@
Tangram: real-time WebGL rendering for OpenStreetMap
http://github.com/tangrams/tangram
http://mapzen.com
-->
<html lang="en-us">
Expand Down Expand Up @@ -39,7 +38,7 @@
<!-- End of 3rd party libraries -->

<!-- Main tangram library -->
<script src="https://mapzen.com/tangram/0.11/tangram.min.js"></script>
<script src="https://unpkg.com/tangram/dist/tangram.min.js"></script>

<!-- Demo module -->
<script type="text/javascript">
Expand Down Expand Up @@ -76,7 +75,7 @@

var layer = Tangram.leafletLayer({
scene: style_file,
attribution: '<a href="https://mapzen.com/tangram" target="_blank">Tangram</a> | &copy; OSM contributors | <a href="https://mapzen.com/" target="_blank">Mapzen</a>'
attribution: '<a href="https://github.com/tangrams/tangram" target="_blank">Tangram</a> | &copy; OSM contributors'
});

window.layer = layer;
Expand Down Expand Up @@ -106,16 +105,5 @@
ga('send', 'pageview');
</script>

<!-- Mapzen map UI components -->
<script src="//mapzen.com/common/ui/mapzen-ui.min.js"></script>
<script>
MPZN.bug({
name: 'Tangram docs-assets',
link: 'https://mapzen.com/projects/tangram',
tweet: 'Tangram demo from @mapzen',
repo: 'https://github.com/tangrams/tangram/'
});
</script>

</body>
</html>

0 comments on commit 27f6181

Please sign in to comment.