zero-server maps
commonplace web maps for 2018
- no server required, by gh-pages
- fast and small by mvt and tippecanoe
- neat visualization by Tangram
examples
data development
"tippecanoe-fan-out" : the name of the process to develop the data.
use tippecanoe, and then extract the MVT data to make them static.
tippecanoe-fan-out
- Download the Shapefile
- ogr2ogr -f GeoJSON ...
- tippecanoe ...
- "fan out"
tippecanoe-fan-out
Step 1. is done in other repos without /vt$/ (e.g. hfu/gmjp22 for hfu/gmjp22vt)
Step 2. and 3. are in __convert__.rb in each repo.
Step 4. is in __fan_out__.rb in each repo.
fan out?
- To extract the MVT files to the repo.
- By the Ruby script on the next slide.
__fan_out__.rb
# ...
Dir.glob('*.mbtiles') {|fn|
Sequel.sqlite(fn)[:tiles].each {|r|
#...
File.open("#{t}/#{z}/#{x}/#{y}.mvt", 'w') {|w|
w.print Zlib::GzipReader.
new(StringIO.new(data)).read
}}}
TODO
- improve attribution (see LICENSE for the time being)
- improve scene.yaml (need love for data)
- work on more Global Map data