Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
FOSS4G 2015 Tokyo Vector Tiles Pt. 3
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Hidenori FUJIMURA
October 09, 2015
0
140
FOSS4G 2015 Tokyo Vector Tiles Pt. 3
Hidenori FUJIMURA
October 09, 2015
Tweet
Share
More Decks by Hidenori FUJIMURA
See All by Hidenori FUJIMURA
みんなに伝わる防災マップ
hfu
0
130
未来の繁栄のためのスマート地図
hfu
0
160
Smart Maps for the prosperity in the future
hfu
0
240
Smart Maps and Bazaar
hfu
0
180
Sensemaking with Smart Maps
hfu
0
110
Smart Mapsfor the United Nations,with the United Nations
hfu
0
150
UN Smart Maps
hfu
0
190
スマート地図バザールによる地図XMLのタイル配信
hfu
0
130
国土地理院におけるベース・レジストリの整備とDX推進への取り組み
hfu
0
290
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
450
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.2k
How GitHub (no longer) Works
holman
316
140k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
A Tale of Four Properties
chriscoyier
162
24k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Code Reviewing Like a Champion
maltzj
527
40k
Code Review Best Practice
trishagee
74
20k
Transcript
Ministry of Land, Infrastructure, Transport and Tourism Geospatial Information Authority
of Japan ベクトルタイル利用サイトを作ろう Hidenori FUJIMURA Geospatial Information Authority of Japan 1 FOSS4G 2015 Tokyo ハンズオンデイ 2015-10-09T14:00/17:00 @駒場RC An棟2F
本日の流れ ① 導入:ベクトルタイルの概要と未来 ② GitHubから地理院地図をフォークして、マ イ地理院地図を作る ③ マイ地理院地図にインターネット上のタイ ルレイヤを加える ④ マイ地理院地図に簡単なベクトルデータを 加える(ただしベクトルタイルとして) ⑤ 地理院ベクトルタイルを素のLeafletサイト に表示してみる。
⑥ 地理院ベクトルタイルの表示内容を調整す る 2
地理院地図のレイヤ管理 /js/gsimaps.js で読み込み設定する layers*.txt にレイヤ設定が記載されている。 3 「地理院地図」では、それぞれの layers*.txt が 「表示できる情報」の各フォルダに
対応するように運用中。 layers*.txt のフォーマットは、GitHubで公開 github.com/gsi-cyberjapan/layers-dot-txt-spec
layers-dot-txt-spec ノーカスタマイズのIISでも同一ドメインであれば動くことができるようにする、みたい な工夫のため、意図的に拡張子を .txt にしていますが、中身は JSON です。 /layers_txt/layers0.txt ※ layers-dot-txt-spec
に記載されている src 属性による動的読み込みは gsimaps では未実装です(10/12の基調講演をお楽しみに)。 4
/layers_txt/my_layers.txt を作る /layers_txt/my_layers.txt を新規作成し、 まずは、そこに layers_0.txt の1項目めを写す 5
/js/gsimaps.js に /layers_txt/my_layers.txt を参照させる /js/gsimaps.js の19行めに加筆 6 コミット後、マイ地理院地図のページを開き、 「情報」→「表示できる情報」を確認
追加したレイヤの反映例 7 my_layers.txt が 反映されたもの
my_layers.txt を少しアレンジ LayerGroup に格納して、titleやhtmlを加筆。 See Also: https://github.com/gsi-cyberjapan/layers-dot-txt-spec/ ひとひねり: 編集ページへのリンクを標準地図レイヤの html
属性に加えてみる ※ LayerGroup の html 属性には gsimaps が対応していない。 8
my_layers.txt アレンジ例 9
アレンジ反映例 10 …gsimaps.js にたくさん加筆することで皆さんのマイレイヤを一元化することもできる
ウェブ地図の fork and join 11 GitHub で fork layers.txt で
join 主体間の分散非同期を確保し、ユーザの利便を最大化できないか。
(実習) いろいろなレイヤを加えてみよう ① いろいろなタイルレイヤを加えてみる 例)日本シームレス地質図WMTS配信サービス https://gbank.gsj.jp/seamless/wmts/wmts.html ② マイ地理院地図のリンク集を作る https://github.com/foss4g-tokyo-vt/living-room/ edit/master/links.md にプルリクエスト 12
ヒント: JSON の文法チェック http://jsonlint.com
おまけ: layers.txt の編集ツール • http://maps.gsi.go.jp/config/config.html • https://github.com/gsi-cyberjapan/gsimaps/blob/gh-pages/config/config.html 13