{"id":5354,"date":"2017-02-09T10:17:43","date_gmt":"2017-02-09T01:17:43","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=5354"},"modified":"2021-06-18T19:47:01","modified_gmt":"2021-06-18T10:47:01","slug":"%e3%83%90%e3%82%a4%e3%83%8a%e3%83%aa%e3%83%99%e3%82%af%e3%83%88%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%ab%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/leaflet-js\/5354","title":{"rendered":"\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u306e\u4f5c\u308a\u65b9"},"content":{"rendered":"<p>\u300c<a href=\"https:\/\/gunmagisgeek.com\/blog\/leaflet-js\/5204\">\u5168\u56fd\u306e\u30ac\u30bd\u30ea\u30f3\u30b9\u30bf\u30f3\u30c9\u306e\u4f4d\u7f6e\u3092\u5730\u56f3\u4e0a\u306b\u30d7\u30ed\u30c3\u30c8\u3057\u3066\u307f\u305f\u3002<\/a>\u300d\u3067\u4f5c\u6210\u3057\u305f\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u306e\u4f5c\u696d\u5de5\u7a0b\u30e1\u30e2\u3067\u3059\u3002<\/p>\n<h2>\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u3068\u306f<\/h2>\n<p>\u5de8\u5927\u306aGeoJSON\u3092\u5206\u5272\u3057\u30bf\u30a4\u30eb\u5316\u3059\u308b\u3053\u3068\u3067\u5fc5\u8981\u306a\u60c5\u5831\u3060\u3051\u3092\u8aad\u307f\u3060\u3057\u3066\u5730\u56f3\u4e0a\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u5206\u5272\u3057\u305fGeoJSON\u3092\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u308b\u3053\u3068\u3067\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u6e1b\u3089\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u51fa\u4f1a\u3046\u307e\u3067\u306e\u79c1<\/h3>\n<p><strong>\uff11\uff0eGeoJSON\u7206\u8a95<\/strong><br \/>\n\u300c\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u7c21\u5358\u306b\u5730\u7406\u60c5\u5831\u3092\u6271\u3048\u308bJSON\u5f62\u5f0f\u306e\u898f\u683c\u8003\u3048\u305f\u3088\uff01\u300d<br \/>\n\u300c\u7d20\u6674\u3089\u3057\u3044\uff01\u300d<\/p>\n<p><strong>\uff12\uff0eTopoJSON\u8a95\u751f<\/strong><br \/>\n\u300cGeoJSON\u91cd\u304f\u306a\u3044\uff1f\u3000\u3082\u3063\u3068\u52b9\u7387\u306e\u3044\u3044\u898f\u683c\u4f5c\u3063\u305f\uff01\u300d<br \/>\n\u300c\u6700\u9ad8\uff01\u300d<\/p>\n<p><strong>\uff13\uff0e\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u5230\u6765<\/strong><br \/>\n\u300cGeoJSON\u3092\u5730\u56f3\u30bf\u30a4\u30eb\u307f\u305f\u3044\u306b\u5206\u5272\u3057\u3066\u914d\u4fe1\u3059\u308c\u3070\u3044\u3044\u3058\u3083\u306a\u3044\u304b\uff01\u300d<br \/>\n\u300c\u306a\u308b\u307b\u3069\u3002\u300d<\/p>\n<p><strong>\uff14\uff0e\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u964d\u81e8<\/strong>\u3000\uff1c\u30fc \u3044\u307e\u3053\u3053<br \/>\n\u300c\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3057\u3066\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3067\u914d\u4fe1\u3059\u308c\u3070\u3088\u308a\u52b9\u7387\u7684\u300d<br \/>\n\u300c\u304a\u3063\u3001\u304a\u3045\u300d<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<h2>\u9759\u7684\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u306e\u4f5c\u308a\u65b9<\/h2>\n<h3>GeoJSON\u3092\u4f5c\u308b<\/h3>\n<p>\u307e\u305a\u3001\u56fd\u571f\u6570\u5024\u60c5\u5831\u304b\u3089\u53d6\u5f97\u3057\u305f47\u90fd\u9053\u5e9c\u770c\u306eshape\u30d5\u30a1\u30a4\u30eb\u3092QGIS\u3092\u4f7f\u3063\u3066\u7d50\u5408\u3057\u3001\u4e00\u3064\u306eGeoJSON\u3068\u3057\u3066\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\nshape\u30d5\u30a1\u30a4\u30eb\u306e\u7d50\u5408\u65b9\u6cd5\u306f\u4ee5\u4e0b\u3092\u3002<\/p>\n<p><a href=\"https:\/\/sites.google.com\/site\/qgisnoiriguchi\/vector01\/08\">08.\u3044\u304f\u3064\u304b\u306eshape\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u3064\u306b\u307e\u3068\u3081\u308b &#8211; QGIS\u5165\u9580<\/a><\/p>\n<h3>\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u3092\u4f5c\u308b<\/h3>\n<p>\u6b21\u306b<a href=\"https:\/\/github.com\/mapbox\/tippecanoe\">tippecanoe<\/a>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3001GeoJSON\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u5316\u3057\u307e\u3059\u3002<br \/>\nbrew\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:sh decode:true \">$ brew install tippecanoe<\/pre>\n<p>\u4eca\u56de\u306f\u30ba\u30fc\u30e0\u30ec\u30d9\u30eb6\u301c18\u307e\u3067\u306e\u30bf\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:sh decode:true\">$ tippecanoe -l gs_map\u3000-rg -z18 -Z6 -o hoge.mbtiles hoge.geojson<\/pre>\n<p>\u5404\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u610f\u5473\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">-z  \u6700\u5927\u30ba\u30fc\u30e0\u30ec\u30d9\u30eb\n-Z  \u6700\u5c0f\u30ba\u30fc\u30e0\u30ec\u30d9\u30eb\n-rg \u30ec\u30fc\u30c8\u6307\u5b9a\uff08\u5f8c\u8ff0\uff09\n-l  \u30ec\u30a4\u30e4\u30fc\u540d<\/pre>\n<p>r\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u4e00\u3064\u306e\u30bf\u30a4\u30eb\u306e\u4e2d\u306b\u8868\u793a\u3059\u308b\u5730\u7269\u306e\u5bc6\u5ea6\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068\u30ba\u30fc\u30e0\u30ec\u30d9\u30eb\u306b\u5fdc\u3058\u3066\u8868\u793a\u3055\u308c\u308b\u6570\u304c\u9593\u5f15\u304d\uff08\u7701\u7565\uff09\u3055\u308c\u3066\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u306a\u308b\u3079\u304f\u5e83\u3044\u7bc4\u56f2\u3067\u5206\u5e03\u3092\u4e00\u77a5\u3067\u304d\u308b\u3088\u3046\u306brg\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6700\u5927\u30ec\u30fc\u30c8(50000)\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u203b \u2191\u5b8c\u5168\u306b\u7406\u89e3\u3067\u304d\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u8aac\u660e\u9593\u9055\u3063\u3066\u3044\u308b\u304b\u3082\u3002<\/p>\n<h3>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306b\u5c55\u958b\u3059\u308b<\/h3>\n<p>[\u8ffd\u8a18]<\/p>\n<p>tippecanoe\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u308a\u3001\u76f4\u63a5\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>-o\u306e\u4ee3\u308f\u308a\u306b-e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u3053\u3068\u3067pbf\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u76f4\u63a5\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true\">$ tippecanoe -l gs_map\u3000-rg -z18 -Z6 -e tile hoge.geojson<\/pre>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u4ee5\u4e0bmb-util\u3092\u4f7f\u3063\u305f\u5de5\u7a0b\u306f\u5fc5\u8981\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<hr \/>\n<p>tippecanoe\u3067\u51fa\u529b\u3055\u308c\u308bmbtiles\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u306e\u60c5\u5831\u3092\u4fdd\u5b58\u3057\u305fSQLite\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u3053\u306e\u307e\u307e\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001SQLite\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u5fc5\u8981\u306b\u306a\u308b\u305f\u3081\u3001\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092pbf\u30d5\u30a1\u30a4\u30eb\u306b\u5c55\u958b\u3057\u307e\u3059\u3002<br \/>\n\u5c55\u958b\u3059\u308b\u306e\u306b<a href=\"https:\/\/github.com\/mapbox\/mbutil\">mb-util<\/a>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u307e\u3057\u305f\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306feasy_install\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:js decode:true \">easy_install mbutil\nmb-util -h\n<\/pre>\n<p>\u4ed6\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306eREADME\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>mbutil\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3078\u3068\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:sh decode:true \">$ mb-util --image_format=pbf hoge.mbtiles tile\n$ cd tile  \n$ gzip -d -v -r -S .pbf *\n$ find . -type f -exec mv -v '{}' '{}'.pbf ;<\/pre>\n<p>\u203b \u4eca\u56de\u306f\u62e1\u5f35\u5b50\u3092pbf\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u5f8c\u306fmvt\u306b\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002\u7406\u7531\u306f\u5f8c\u8ff0\u3002<\/p>\n<p>\u5b8c\u4e86\u3059\u308b\u3068\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u5c55\u958b\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5356 border\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2017\/02\/20170209tiles.png\" alt=\"\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\" width=\"590\" height=\"220\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2017\/02\/20170209tiles.png 590w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2017\/02\/20170209tiles-300x112.png 300w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/p>\n<h2>leaflet\u3092\u4f7f\u3063\u3066\u8868\u793a\u3059\u308b<\/h2>\n<p>web\u5730\u56f3\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e<a href=\"http:\/\/leafletjs.com\/\">leaflet<\/a>\u3092\u4f7f\u3063\u3066\u8868\u793a\u3057\u307e\u3059\u3002\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b\u305f\u306b\u306f<a href=\"https:\/\/github.com\/SpatialServer\/Leaflet.MapboxVectorTile\">Leaflet.MapboxVectorTile<\/a>\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u3001leaflet\u3068\u3068\u3082\u306b\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:xhtml decode:true \">&lt;link rel=\"stylesheet\" href=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/leaflet\/0.7.7\/leaflet.css\"\/&gt;\n&lt;script src=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/leaflet\/0.7.7\/leaflet-src.js\"&gt;&lt;\/script&gt;\n\n&lt;script src=\"Leaflet.MapboxVectorTile.js\"&gt;&lt;\/script&gt;<\/pre>\n<pre class=\"lang:js decode:true \">\/\/leaflet \u521d\u671f\u8a2d\u5b9a\nvar map = L.map('map',{\n    maxZoom: 17\n}).setView([36.204824,138.252924], 6) \n\n\/\/\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u95a2\u6570\nvar popup = L.popup();\nvar  onGsClick = function(e) {\n    if (!e.feature) return \n    popup\n        .setLatLng(e.latlng)\n        .setContent(e.feature.properties[\"P07_002\"])\n        .openOn(map);\n}\n\n\/\/\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u30ec\u30a4\u30e4\u30fc\u306e\u8a2d\u5b9a\nvar mvtSource = new L.TileLayer.MVTSource({\n    url: \".\/tiles\/{z}\/{x}\/{y}.pbf\", \/\/\u751f\u6210\u3057\u305f\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u6307\u5b9a\n    maxZoom: 20,\n\/\/  debug: true, \/\/\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u306eon\/off\n    clickableLayers: [\"gs_map\"], \/\/\u30af\u30ea\u30c3\u30af\u3067\u304d\u308b\u30ec\u30a4\u30e4\u30fc\u540d\u3092\u6307\u5b9a\u3059\u308b\n    mutexToggle:true,\n    getIDForLayerFeature: function(feature) {\n        return feature.properties[\"P07_002\"];\n    },\n    filter: function(feature, context) {\n        if (feature.layer.name === 'gs_map') { \/\/tippecanoe\u3067\u6307\u5b9a\u3057\u305f\u30ec\u30a4\u30e4\u30fc\u540d\u3092\u8a18\u8ff0\n            return true;\n        }\n    return false;\n    },\n    onClick: onGsClick, \/\/\u5730\u7269\u30af\u30ea\u30c3\u30af\u6642\u306e\u51e6\u7406\n    style: function (feature) {\n        var style = {};    \n        var type = feature.type;\n        switch (type) {\n            case 1: \/\/'\u30dd\u30a4\u30f3\u30c8\u30c7\u30fc\u30bf\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a'\n                style.color = 'rgba(255,0,0,1)';\n                style.radius = function(){\n                    var z = map.getZoom()\n                    var dotsize = 1.5            \n                    var radius =  dotsize * Math.exp(Math.log(Math.sqrt(z-4)))\n                    return radius\n            \n                };\n            break;\n            case 2: \/\/'\u30e9\u30a4\u30f3\u30c7\u30fc\u30bf\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a'\n                style.color = 'rgba(161,217,155,0.8)';\n                style.size = 3;\n                style.selected = {\n                    color: 'rgba(255,25,0,0.5)',\n                    size: 4\n                };\n            break;\n            case 3: \/\/'\u30dd\u30ea\u30b4\u30f3\u30c7\u30fc\u30bf\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a'\n                style.color = fillColor;\n                style.outline = {\n                    color: strokeColor,\n                    size: 1\n                };\n                style.selected = {\n                    color: 'rgba(255,140,0,0.3)',\n                    outline: {\n                        color: 'rgba(255,140,0,1)',\n                        size: 2\n                    }\n                };\n            break;\n        }\n        return style;\n    }\n});\n\n\/\/\u80cc\u666f\u5730\u56f3\u306e\u6307\u5b9a\nL.tileLayer('http:\/\/services.arcgisonline.com\/ArcGIS\/rest\/services\/World_Imagery\/MapServer\/tile\/{z}\/{y}\/{x}', {\n    maxZoom: 20,\n    id: 'examples.map-i86knfo3'\n}).addTo(map);\n\n\/\/\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u30ec\u30a4\u30e4\u30fc\u3092\u5730\u56f3\u306b\u8ffd\u52a0\u3059\u308b\nmap.addLayer(mvtSource);<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092Github\u306b\u30a2\u30c3\u30d7\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/shimizu\/H27_gs_maps\">sample<\/a><\/p>\n<h2>\u62e1\u5f35\u5b50\u306b\u3064\u3044\u3066<\/h2>\n<p>\u4eca\u56de\u30bf\u30a4\u30eb\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u3092pbf\u3068\u3057\u3066\u751f\u6210\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u4f5c\u308a\u76f4\u3059\u306e\u3082\u9762\u5012\u306a\u306e\u3067\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u306b\u3064\u3044\u3066\u306f\u3001\u3044\u308d\u3044\u308d\u3068\u6df7\u4e71\u304c\u3042\u308b\u307f\u305f\u3044\u306a\u306e\u3067\u3059\u304c\u3001\u307e\u3041Mapbox\u306e\u30eb\u30fc\u30eb\u306b\u6e96\u3058\u308b\u306e\u304c\u7121\u96e3\u304b\u3068\u3002<\/p>\n<p><a href=\"https:\/\/web.archive.org\/web\/20170404052741\/https:\/\/www.mapbox.com\/vector-tiles\/specification\/\">Mapbox Vector Tile Specification | Mapbox<\/a><\/p>\n<blockquote><p><strong>Format<\/strong><\/p>\n<p>Vector tiles are encoded as Google Protobufs (PBF), which allow for serializing structured data. For clarity, Mapbox Vector Tiles use the .mvt file suffix. The specification details are largely structured around the rules implemented in the base .proto file found here.<\/p>\n<p><strong>How are OSM PBF files related to Mapbox Vector Tiles?<\/strong><\/p>\n<p>They are not related at all. PBFs are a format, much like XML and can take many forms. Mapbox Vector Tiles and OSM PBFs are protobuf files, but conform to completely different specifications and are used in different ways.<\/p><\/blockquote>\n<p>Mapbox\u304c\u63d0\u6848\u3057\u305f\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u3092\u3001Google Protobufs (PBF)\u898f\u683c\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u305f\u3082\u306e\u306b\u304b\u3093\u3057\u3066\u306f.mvt\u62e1\u5f35\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3088\u3068\u306e\u3053\u3068\u3002OSM PBF\u30d5\u30a1\u30a4\u30eb\u3068\u306f\u306a\u3093\u306e\u95a2\u4fc2\u3082\u306a\u3044\u3088\u3063\u3066\u3053\u3068\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<h2>\u30c7\u30d0\u30c3\u30b0\u306b\u3064\u3044\u3066<\/h2>\n<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30fb<a href=\"https:\/\/gunmagisgeek.com\/blog\/leaflet-js\/5465\">\u30d0\u30a4\u30ca\u30ea\u30d9\u30af\u30c8\u30eb\u30bf\u30a4\u30eb\u306e\u30c7\u30d0\u30c3\u30b0\u30c4\u30fc\u30eb<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u5168\u56fd\u306e\u30ac\u30bd\u30ea\u30f3\u30b9\u30bf\u30f3\u30c9\u306e\u4f4d\u7f6e\u3092\u5730\u56f3\u4e0a\u306b\u30d7\u30ed\u30c3\u30c8\u3057&hellip;<\/p>\n","protected":false},"author":1,"featured_media":5355,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,66],"tags":[],"class_list":["post-5354","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-leaflet-js","category-map","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/5354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=5354"}],"version-history":[{"count":1,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/5354\/revisions"}],"predecessor-version":[{"id":7338,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/5354\/revisions\/7338"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/5355"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=5354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=5354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=5354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}