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
GitHub Actionsで始めるお手軽ベクトルタイル配信
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
nao
November 09, 2023
Technology
680
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
GitHub Actionsで始めるお手軽ベクトルタイル配信
nao
November 09, 2023
Other Decks in Technology
See All in Technology
白金鉱業Meetup_Vol.24_「AIエージェントは分けるほど良い」は本当か? / Is it true that “the more you divide AI agents, the better”?
brainpadpr
1
410
GitHub Copilot 最新アップデート – 「一歩先」の実践活用術
moulongzhang
5
1.5k
IaC コードを資産へ:AWS CDK 社内ライブラリと横断展開 / aws-summit-japan-2026
gotok365
5
900
Bucharest Tech Week 2026 - Reinventing testing practices in the AI era
edeandrea
PRO
1
170
When Platform Engineering Meets GenAI
sucitw
0
130
【NRUG vol.18】KubernetesにおけるNew Relicデータ取得量削減の考え方
nrug_member
0
170
AI時代のコスト管理を考えよう〜明日から使える実践AWSノウハウ~
yoshimi0227
0
290
Bucharest Tech Week 2026 - Guardians of the Cloud-Native Galaxy
edeandrea
PRO
0
120
SONiCの統計情報を取得したい
sonic
0
230
日本 Fintech 未来予測レポート 2027〜2028年(オリジナル版)
8maki
0
2.3k
マルチアカウント環境での コーディングエージェントを使った障害調査が大変なので AIエージェントにReadOnly権限を付与してみた / ReadOnly AI Agents for Multi-Account AWS Incident Response
yamaguchitk333
2
110
気づかぬうちにセキュリティ負債を生むAPIキー運用
sgwrmctk
0
180
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Making the Leap to Tech Lead
cromwellryan
135
9.9k
KATA
mclloyd
PRO
35
15k
Navigating Team Friction
lara
192
16k
Between Models and Reality
mayunak
4
340
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
170
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
270
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
エンジニアに許された特別な時間の終わり
watany
107
250k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
How to Talk to Developers About Accessibility
jct
2
240
Building Adaptive Systems
keathley
44
3.1k
Transcript
GitHub Actionsで始める お手軽ベクトルタイル配信 ⼤橋直記 2023/11/09 @ MapLibre Meetup Japan #01
©GSI Japan | ©Geolonia | ©OpenStreetMap
大橋 直記(おおはし なおき) 株式会社 Geolonia エンジニア 地図と位置情報の会社でエンジニアをしてい ます。 ‧MapLibre GL JS コントリビューター
‧Charites コントリビューター(国連ベクト ルタイルツールキット) GitHub: https://github.com/naogify Twitter: https://twitter.com/naogify
Geolonia Maps について Geolonia が提供するカスタマイズ可能な地図 • 開発者フレンドリー • カスタマイズ性が⾼い •
ベクトルタイル(機械判読可能)
ベクトルタイルとは? 機械判読が可能な地図タイル 東京都港区芝公園4丁目2−8 → 35.65872, 139.74539 「地理院地図|ベクトルタイルとその提供実験について」(https://maps.gsi.go.jp/development/vt_expt.html)より画像を引⽤
事例 https://codepen.io/geolonia/pen/oNZLPQP https://naogify.github.io/nankai-trough-map/
Webで位置情報を扱うためのファイル形式は? ‧GeoJSON 位置情報を扱うためのJSONファイル。緯度経度 + 属性を保存。 ‧ベクトルタイル(.pbf、.mvt) → GeoJSON をXYZで分割し、分割したGeoJSONをバイナリ(Protocol
Buffers)で保存。 → 表⽰速度が早い、機械判読が可能。 → .pbfや.mvt(Mapbox Vector Tile) に分割しxyzのディレクトリに保存。
ベクトルタイルを作ってみる
コマンドラインツールを使った ベクトルタイルの作り方 $brew install tippecanoe $tippecanoe -zg -o ./data.mbtiles ./data.geojson
お手軽に試すには?
vector-tiles-api 位置情報を含むCSVをアップロー ドすると、GitHub Actions でベク トルタイルに変換し、GitHub Pages にデプロイする。 つまり、 簡単にベクトルタイル化+ホス
ティングできる。 https://github.com/geolonia/vector-tiles-api
1.GitHub Pages を設定 1. 「Use this template」をクリック 2. 「Settings」 >「
Pages」 をクリック
2. CSV を編集 「Edit this file」をクリックして編集
3. 表示 map.addSource("example-data", { type: "vector", url: "https://<あなたのGitHubユーザー名>.github.io/<リポジトリ名>/tiles/tiles.json" }); ▼サンプルコード▼
https://codepen.io/naogify/pen/BaMWNpG
早速作ってみる
None
None
キャンプ場ベクトルタイルを作ってみる CSVを編集してキャンプ場情報を追加する
https://community-geocoder.geolonia.com/ 緯度経度の入力
https://codepen.io/naogify/pen/BaMWNpG 完成
制限事項 GitHubPagesの容量制限(100 MiB/ファイル) ‧ポイントデータのみ
更に大きいデータをホスティングする場合 $brew install tippecanoe $tippecanoe -o ./data.pmtiles ./data.geojson 更に⼤きいサイズのデータをホスティングしたい場合は PMTiles
がお勧め。 → ベクトルタイルを単⼀ファイル化 + 静的サイトでホスティング可能
Thank you! ©GSI Japan | ©Geolonia | ©OpenStreetMap GitHub: https://github.com/naogify
Twitter: https://twitter.com/naogify vector-tiles-api デモURL