-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ryanhamley
committed
Apr 6, 2020
1 parent
41e5bd5
commit 3209bdc
Showing
2 changed files
with
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Mapbox GL JS debug page</title> | ||
<meta charset='utf-8'> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
<link rel='stylesheet' href='../../../dist/mapbox-gl.css' /> | ||
<style> | ||
body { margin: 0; padding: 0; } | ||
html, body, #map { height: 100%; } | ||
#map { transform: scale(2); } | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id='map'></div> | ||
|
||
<script src='../../../dist/mapbox-gl-dev.js'></script> | ||
<script src='../../../debug/access_token_generated.js'></script> | ||
|
||
<script> | ||
|
||
var map = window.map = new mapboxgl.Map({ | ||
container: 'map', | ||
zoom: 1, | ||
fadeDuration: 0, | ||
center: [0, 0], | ||
style: { | ||
version: 8, | ||
sources: { | ||
land: { | ||
type: 'geojson', | ||
data: `${location.origin}/test/browser/fixtures/land.json` | ||
} | ||
}, | ||
layers: [ | ||
{ | ||
id: 'background', | ||
type: 'background', | ||
paint: { | ||
'background-color': '#72d0f2' | ||
} | ||
}, | ||
{ | ||
id: 'land', | ||
type: 'fill', | ||
source: 'land', | ||
paint: { | ||
'fill-color': '#f0e9e1' | ||
} | ||
} | ||
] | ||
} | ||
}); | ||
|
||
</script> | ||
|
||
</body> | ||
</html> |
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