Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hfu committed Oct 2, 2024
1 parent 2cd7de2 commit 62b9650
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<script src="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.5.0/dist/maplibre-gl-geocoder.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.5.0/dist/maplibre-gl-geocoder.css" type="text/css" />
<script src="https://unpkg.com/pmtiles@2.10.0/dist/index.js"></script>
<script src="addSources_003.js"></script>
<script src="addLayers_003.js"></script>
<link href="style.css" rel="stylesheet" />
</head>
<body>
Expand Down
7 changes: 4 additions & 3 deletions docs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function disp_point_limit12(data) {
'layout': {
// 'text-field': ['get', 'Share_Info_Label'],
"text-field": ["get", "point_count_abbreviated"],
"text-font": ["Noto Sans CJK JP Bold"],
"text-font": ["NotoSansJP-Regular"],
// 'text-anchor': 'left',
// 'text-offset': [0.5, 0],
},
Expand Down Expand Up @@ -292,7 +292,7 @@ function disp_point_limit12(data) {
'source': 'Limit12_Share_Info',
'layout': {
'text-field': ['get', 'Share_Info_Label'],
"text-font": ["Noto Sans CJK JP Bold"],
"text-font": ["NotoSansJP-Regular"],
'text-anchor': 'left',
'text-offset': [0.5, 0],
},
Expand All @@ -319,7 +319,8 @@ function getLocation(getLatLng) {
setInterval(Update_ShareInfo, 1000 * 60);

(async () => {
let style = await fetch('style.json').then(resp => resp.json())
let style = await fetch('terrain22.json').then(resp => resp.json())
maplibregl.addProtocol("pmtiles", (new pmtiles.Protocol()).tile);

map = new maplibregl.Map({
container: 'map',
Expand Down
Loading

0 comments on commit 62b9650

Please sign in to comment.