LoginSignup
0
1

More than 5 years have passed since last update.

zero-server maps

Last updated at Posted at 2016-08-12
1 / 9

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

  1. Download the Shapefile
  2. ogr2ogr -f GeoJSON ...
  3. tippecanoe ...
  4. "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
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1