-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add number tiles * add number hillshade and terrain ruffles tiles * make terrain ruffles a little sharper * Update README
- Loading branch information
1 parent
e08e66c
commit 45c11b5
Showing
77 changed files
with
200 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset='utf-8' /> | ||
<title>MapLibre Demotile - Numbers</title> | ||
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | ||
<script src='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js'></script> | ||
<link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' /> | ||
<style> | ||
body { margin:0; padding:0; } | ||
#map { position:absolute; top:0; bottom:0; width:100%; } | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div id='map'></div> | ||
<script> | ||
var map = window.map = new maplibregl.Map({ | ||
container: 'map', | ||
zoom: 9, | ||
center: [0.0, 0.0], | ||
hash: true, | ||
style: { | ||
version: 8, | ||
sources: { | ||
number: { | ||
type: 'raster', | ||
url: 'https://demotiles.maplibre.org/debug-tiles/number/tiles.json', | ||
tileSize: 256, | ||
maxzoom: 22 | ||
}, | ||
terrainSource: { | ||
type: 'raster-dem', | ||
url: 'https://demotiles.maplibre.org/debug-tiles/terrain-ruffles/tiles.json', | ||
tileSize: 256 | ||
}, | ||
hillshadeSource: { | ||
type: 'raster-dem', | ||
url: 'https://demotiles.maplibre.org/debug-tiles/number-hillshade/tiles.json', | ||
tileSize: 256 | ||
} | ||
}, | ||
layers: [ | ||
{ | ||
id: 'number', | ||
type: 'raster', | ||
source: 'number' | ||
}, | ||
{ | ||
id: 'hills', | ||
type: 'hillshade', | ||
source: 'hillshadeSource', | ||
layout: {visibility: 'visible'}, | ||
paint: {'hillshade-shadow-color': '#473B24'} | ||
} | ||
], | ||
terrain: { | ||
source: 'terrainSource', | ||
exaggeration: 1 | ||
}, | ||
sky: {} | ||
}, | ||
maxZoom: 18, | ||
maxPitch: 85 | ||
}); | ||
|
||
map.addControl( | ||
new maplibregl.NavigationControl({ | ||
visualizePitch: true, | ||
showZoom: true, | ||
showCompass: true | ||
}) | ||
); | ||
|
||
map.addControl( | ||
new maplibregl.TerrainControl({ | ||
source: 'terrainSource', | ||
exaggeration: 1 | ||
}) | ||
); | ||
</script> | ||
|
||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"format": "png", | ||
"name": "number-hillshade", | ||
"description": "number-hillshade", | ||
"version": "1", | ||
"type": "baselayer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"tiles": [ | ||
"https://demotiles.maplibre.org/debug-tiles/number-hillshade/{z}.png" | ||
], | ||
"name": "number-hillshade", | ||
"format": "png", | ||
"basename": "number-hillshade", | ||
"id": "number-hillshade", | ||
"description": "number-hillshade", | ||
"version": "1", | ||
"type": "baselayer", | ||
"minzoom": 0, | ||
"maxzoom": 22, | ||
"tileSize": 256, | ||
"bounds": [ | ||
-180, | ||
-85.05112877980659, | ||
180, | ||
85.0511287798066 | ||
], | ||
"center": [ | ||
0, | ||
0, | ||
9 | ||
], | ||
"tilejson": "2.0.0" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"format": "png", | ||
"name": "number", | ||
"description": "number", | ||
"version": "1", | ||
"type": "baselayer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"tiles": [ | ||
"https://demotiles.maplibre.org/debug-tiles/number/{z}.png" | ||
], | ||
"name": "number", | ||
"format": "png", | ||
"basename": "number", | ||
"id": "number", | ||
"description": "number", | ||
"version": "1", | ||
"type": "baselayer", | ||
"minzoom": 0, | ||
"maxzoom": 22, | ||
"tileSize": 256, | ||
"bounds": [ | ||
-180, | ||
-85.05112877980659, | ||
180, | ||
85.0511287798066 | ||
], | ||
"center": [ | ||
0, | ||
0, | ||
9 | ||
], | ||
"tilejson": "2.0.0" | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"format": "png", | ||
"name": "terrain-ruffles", | ||
"description": "terrain-ruffles", | ||
"version": "1", | ||
"type": "baselayer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"tiles": [ | ||
"https://demotiles.maplibre.org/debug-tiles/terrain-ruffles/{z}.png" | ||
], | ||
"name": "terrain-ruffles", | ||
"format": "png", | ||
"basename": "terrain-ruffles", | ||
"id": "terrain-ruffles", | ||
"description": "terrain-ruffles", | ||
"version": "1", | ||
"type": "baselayer", | ||
"minzoom": 0, | ||
"maxzoom": 22, | ||
"tileSize": 256, | ||
"bounds": [ | ||
-180, | ||
-85.05112877980659, | ||
180, | ||
85.0511287798066 | ||
], | ||
"center": [ | ||
0, | ||
0, | ||
9 | ||
], | ||
"tilejson": "2.0.0" | ||
} |