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
NACIS 2013: Cartography for a Changing Map
Search
mapbox
October 11, 2013
2
220
NACIS 2013: Cartography for a Changing Map
Presented at NACIS 2013 in Greenville, SC.
mapbox
October 11, 2013
Tweet
Share
More Decks by mapbox
See All by mapbox
Global Vector Terrain
mapbox
1
370
How to use iD for easily updating OSM
mapbox
1
150
Cartography with TileMill, PostGIS, and OpenStreetMap
mapbox
4
330
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
52k
How to train your dragon (web standard)
notwaldorf
89
5.8k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.2k
The Cost Of JavaScript in 2023
addyosmani
47
7.3k
A better future with KSS
kneath
238
17k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Six Lessons from altMBA
skipperchong
27
3.6k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
What's in a price? How to price your products and services
michaelherold
244
12k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
98
18k
Music & Morning Musume
bryan
46
6.3k
Transcript
Cartography for a Changing Map AJ Ashton, MapBox
None
Global • All the data OpenStreetMap has to offer, and
more • Multiscale: 20+ Web Mercator zoom levels • Multiple label language options
None
Scalable • Cloud servers that get added and dropped constantly
can’t be too “heavy” • Tiles should load just as fast with 10 users as with 10,000 users • Apply different styles to the same underlying data
None
Up to date • Currently sync with OSM every 5
minutes • We want this to be even faster • The world is always changing
None
Global + Scaleable + Up to date A challenging combination
Global + Scaleable + Up to date + Make it
look good
Keeping up with OSM
OSM Changes 1.5 million changes per day over 1000 changes
per minute http://osmstats.altogetherlost.com
Most changes are small, but some have big consequences
None
None
Cartography for a changing map: Simple things
Generalize
Normalization Cleaning OSM data for consistency
Cartography for a changing map: Not-so simple things
aka. Automatic manual tweaks
City labels
City labels • Custom list of scaleranks (based on Natural
Earth) and label direction hints • Fuzzy spatial & fuzzy text join function between incoming OSM data + our list
Airport labels/icons
Cartography for a changing map: Working with tiles
Tiles are small & static 256x256 pixels not a lot
to work with
None
Tiles don’t know about other tiles
None
None
The terrifying chaos label problem
None
None
None
No perfect solutions Only mitigation strategies
Consistent ordering ORDER BY scalerank, population DESC, osm_id
De-duplicate at the data level GROUP BY ST_SnapToGrid(geom)
None