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
Mapboxはいいぞ!!!!! /RACDA25-bms-mapbox
Search
Anagura
October 25, 2020
Programming
130
0
Share
Mapboxはいいぞ!!!!! /RACDA25-bms-mapbox
RACDA25周年記念 バスマップzoom会議
Anagura
October 25, 2020
More Decks by Anagura
See All by Anagura
ジョルダン株式会社の地図の取り組みについて / foss4g 2020 japan online
anagura0000
0
2.5k
全国の鉄道及び バス路線図が見れる! GTFSから生成した シームレス路線図の試作 / foss4g 2019 niigata
anagura0000
0
480
Other Decks in Programming
See All in Programming
関係性から理解する"同一性"の型用語たち
pvcresin
2
510
Swiftのレキシカルスコープ管理
kntkymt
0
190
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.6k
OCRを使ってゲームのアイテムをデータ化する
kishikawakatsumi
0
110
cloudnative conference 2026 flyle
azihsoyn
1
200
inferと仲良くなる10分間
ryokatsuse
1
240
iOS26時代の新規アプリ開発
yuukiw00w
0
200
AgentCore Optimizationを始めよう!
licux
4
280
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
330
Sans tests, vos agents ne sont pas fiables
nabondance
0
150
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
240
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
1.7k
Featured
See All Featured
Ruling the World: When Life Gets Gamed
codingconduct
0
240
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Documentation Writing (for coders)
carmenintech
77
5.3k
Paper Plane
katiecoart
PRO
1
50k
Abbi's Birthday
coloredviolet
2
7.7k
Bash Introduction
62gerente
615
210k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
KATA
mclloyd
PRO
35
15k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
230
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Transcript
Mapboxはいいぞ! 2020/10/25 RACDA25周年記念 バスマップzoom会議 あなぐら(@anagura0000)
自己紹介 • 経路検索サービスの会社にいます • GIS Engineer ◦ 地図周りの業務全般 ◦ その他雑用など
• バスマップ関係の以前の発表 ◦ FOSS4G Niigata: 全国の鉄道及び バス路線図が見れる! GTFSか ら生成した シームレス路線図の試作
Mapboxはいいぞ!!!!!
Mapboxはいいぞ! • バスマップ界隈で主流なのはLeaflet.js • Mapbox GL JSもいいぞという話
Mapbox GL JSのオススメポイント • ベクトルデータ描画に強い • 大量のデータに強い • 更新頻度が高い ◦
1~2ヶ月に1回リリースされる • Mapbox Style Specificationで柔軟なスタイリングが可能 • リッチなバスマップを作るのに非常に便利
Mapbox Style Specification • フィルタと多様なオプションにより、柔軟なスタイリングが可能 • JSONで記述 • 高速に動作
フィルタの例 ["==", "name", "東京"] // nameが東京と一致 ["!in", "name", "東京", "大阪"]
// nameが東京と大阪ではない [">=", "population", 10000] // populationが10000以上 ["has", "name"] // nameが存在している ["all", ["has", "name"], ["==", "name", "東京"]] // nameが存在していて、nameが東京と一致
Styleの例:Layout option { "text-field": ["get", "name"], // nameのプロパティを取得して、表示する "text-font": [
// fontはOpen Sans Regularを使う "Open Sans Regular" ], "text-offset": [0, 1], // 下方向に1emずらす "text-anchor": "left" // アンカーの下にテキストを配置 }
Styleの例:Paint option { "text-color": "blue", // 文字色はblue "text-halo-color": "white", //
文字のhaloの色はwhite "text-halo-width": 1, // haloの幅は1px "text-opacity": 0.5 // 文字の透明度は0.5 }
Sample demo (富山県オープンデータを使ったバスマップ )
リッチなバスマップを作ろう! • Web地図の利点は動的なバスマップを作れる • 昨今ライブラリや仕様が充実してきた