-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
7 changed files
with
1,680 additions
and
22 deletions.
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 |
---|---|---|
|
@@ -4,12 +4,10 @@ | |
<meta charset='utf-8' /> | ||
<title>国土地理院最適化ベクトルタイル</title> | ||
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | ||
<script src='./mapbox/1.13.0/mapbox-gl.js'></script> | ||
<link href='./mapbox/1.13.0/mapbox-gl.css' rel='stylesheet' /> | ||
<!-- | ||
<script src='https://www.unpkg.com/[email protected]/dist/mapbox-gl.js'></script> | ||
<link href='https://www.unpkg.com/[email protected]/dist/mapbox-gl.css' rel='stylesheet' /> | ||
--> | ||
<script src='./lib/[email protected]/maplibre-gl.js'></script> | ||
<link href='./lib/[email protected]/maplibre-gl.css' rel='stylesheet' /> | ||
<script src='./lib/[email protected]/index.js'></script> | ||
|
||
<style> | ||
body { margin:0; padding:0; } | ||
#map { | ||
|
@@ -48,7 +46,10 @@ | |
</div> | ||
|
||
<script> | ||
var map = new mapboxgl.Map({ | ||
let protocol = new pmtiles.Protocol(); | ||
maplibregl.addProtocol("pmtiles",protocol.tile); | ||
|
||
var map = new maplibregl.Map({ | ||
container: 'map', | ||
hash: true, | ||
style: './style/skeleton.json', | ||
|
@@ -60,8 +61,7 @@ | |
// localIdeographFontFamily: ['MS Gothic', 'Hiragino Kaku Gothic Pro', 'sans-serif'] | ||
}); | ||
|
||
map.addControl(new mapboxgl.NavigationControl(), 'bottom-right'); | ||
map.addControl(new mapboxgl.ScaleControl()); | ||
map.addControl(new maplibregl.NavigationControl(), 'bottom-right'); | ||
|
||
let check1 = document.getElementById('style'); | ||
let check2 = document.getElementById('bdr'); | ||
|
@@ -77,4 +77,4 @@ | |
</script> | ||
|
||
</body> | ||
</html> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.