Upgrade to Pro — share decks privately, control downloads, hide ads and more …

FOSS4G Tokyo 2017 Core-day: tileserver-glで始めるMa...

FOSS4G Tokyo 2017 Core-day: tileserver-glで始めるMapbox Vector Tile 配信

Taro Matsuzawa aka. btm

September 16, 2017
Tweet

More Decks by Taro Matsuzawa aka. btm

Other Decks in Technology

Transcript

  1. ٕज़ झຯؚΉ w λΠϧٕज़ ϕΫλλΠϧɺϥελλΠϧɺήʔϜλΠϧ  w 0QFO4USFFU.BQ .BQQJOH σʔλղੳπʔϧͳͲ

     w 1SPHSBNNJOH 3VCZ+BWBTDSJQU 3FBDU/BUJWF  1ZUIPO  w #SPXTFS w 6/*9-JOVY%PDLFSFUDʜ w *O%FTJHO/FX
  2. .BQCPY(- w .BQCPY(-Ͱ͸ҎԼͷཁૉΛ͋Θͤͯදࣔ͢Δ w .BQCPY(-4UZMF +40/ϑΝΠϧ  w 5JMF+40/ +40/ϑΝΠϧ

     w .BQCPY7FDUPS5JMF 1SPUPDPM#V⒎FSܗࣜ  w ϑΥϯτ 1SPUPDPM#V⒎FSܗࣜ  w 4QSJUFը૾ 1/(ϑΝΠϧ  w ଞʹ΋(FP+40/ͱ͔3BTUFSλΠϧ΋࢖͑Δ
  3. 'POUΫΤϦ w .BQCPY(-4UZMFͰ͸ෳ਺ͷϑΥϯτΛࢦఆͰ͖Δ͕ɺ ϦΫΤετ͕̍ͭʹ·ͱ·Δ w ྫhttp://localhost:18888/ Klokantech%20Noto%20Sans%20Regular,Klokantech%20Noto%20 Sans%20CJK%20Regular/36096-36351.pbf  w

    ্هͰ͸,MPLBOUFDI/PUP4BOT3FHVMBSͱ ,MPLBOUFDI/PUP4BOT$+,3FHVMBSΛࢀর w ӳޠϑΥϯτͱ$+,ϑΥϯτΛࠞͥΔ࣌ʹӳޠϑΥ ϯτΛ༏ઌ͢Δͱ͍͏࢓૊ΈGBJMCBDL
  4. UJMFTFSWFSHMͷϝϦοτ  w .BQCPY(-ʹར༻͢ΔશͯͷϑΝΠϧͷϗεςΟϯά͕ Մೳ w NCUJMFTͷϝλσʔλ͔Β5JMF+40/ͷࣗಈੜ੒ w 'POUͷΫΤϦ΁ͷରԠ w

    ϗεςΟϯά͍ͯ͠Δ.BQCPY(-4UZMFϑΝΠϧ͔Β 3BTUFSը૾ΛϨϯμϦϯάͯ͠ग़ྗ͕Մೳ w UJMFTFSWFSHM͸.BQCPY(-Λ಺แ͍ͯ͠Δ
  5. ྫ { "options": { "paths": { "root": "", "fonts": "fonts",

    "sprites": "sprites", "styles": "styles", "mbtiles": "" }, "formatQuality": { "jpeg": 80, "webp": 90, "pngQuantization": false, "png": 90 }, "maxSize": 2048, "pbfAlias": "pbf", "serveAllFonts": false }, "styles": { "kobe": { "style": "kobe.json", "tilejson": { } } }, "data": { "japan-vector": { "mbtiles": "japan.mbtiles" } } }
  6. ϑΥϯτ  w ࣗ෼Ͱ࡞Δͷ͕໘౗ͳΒHJUIVC͔Β͖࣋ͬͯͯ͠·͏ w ྫIUUQTHJUIVCDPNTNFMMNBOGPOUT w . ϑΥϯτͳͲΛ࢖͑ΔΑ͏ʹͯ͠ΔϨϙδτϦ git

    clone https://github.com/smellman/fonts.git fonts cd fonts git checkout -b gh-pages origin/gh-pages rm -fr .git
  7. OHJOYͷྫ location / { proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    proxy_set_header Host $http_host; proxy_pass http://localhost:8080; } location ~ ^/.*\.png { proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_pass http://localhost:6081; }