{"id":880,"date":"2024-04-29T21:21:51","date_gmt":"2024-04-29T18:21:51","guid":{"rendered":"https:\/\/fantastic-game.ru\/blog\/?page_id=880"},"modified":"2024-04-29T23:41:11","modified_gmt":"2024-04-29T20:41:11","slug":"example","status":"publish","type":"page","link":"https:\/\/fantastic-game.ru\/blog\/opm-public-api\/tileserver\/example","title":{"rendered":"\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043b\u0438\u0442\u043e\u043a"},"content":{"rendered":"<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <a href=\"https:\/\/fantastic-game.ru\/blog\/opm-public-api\/tileserver\">\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043b\u0438\u0442\u043e\u043a \u043e\u0442 OpenProvinceMap<\/a> \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 JavaScript \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <a href=\"https:\/\/leafletjs.com\" target=\"_blank\" rel=\"noopener\"><code class=\"code-badge\">Leaflet<\/code><\/a>\r\n<\/p>\r\n\r\n<p>\r\n\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <code class=\"code-badge\">map.html<\/code> \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:\r\n<\/p>\r\n\r\n<pre class=\"brush: html\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;meta charset=\"UTF-8\"&gt;\r\n        &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\r\n        &lt;!-- \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b --&gt;\r\n        &lt;title&gt;OpenProvinceMap \u2013 \u041a\u0430\u0440\u0442\u0430 MTA Province&lt;\/title&gt;\r\n        \r\n        &lt;!-- \u0418\u043c\u043f\u043e\u0440\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0441\u0442\u0438\u043b\u0435\u0439 --&gt;\r\n        &lt;link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet@1.6.0\/dist\/leaflet.css\"&gt;\r\n        &lt;style&gt;\r\n            body{\r\n                margin: 0;\r\n                padding: 0;\r\n            }\r\n            #map{\r\n                width:100%;\r\n                height: 100%;\r\n                position:absolute\r\n            }\r\n        &lt;\/style&gt;\r\n        \r\n        &lt;!-- \u0418\u043c\u043f\u043e\u0440\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a --&gt;\r\n        &lt;script src=\"https:\/\/unpkg.com\/leaflet@1.6.0\/dist\/leaflet.js\"&gt;&lt;\/script&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;!-- \u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 \u043a\u0430\u0440\u0442\u043e\u0439 --&gt;\r\n        &lt;div id=\"map\"&gt;&lt;\/div&gt;\r\n        &lt;script&gt;\r\n            \/\/ \u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043f\u043b\u0438\u0442\u043e\u043a(\u0442\u0430\u0439\u043b\u043e\u0432)\r\n            \/\/ \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c\r\n            var Standart = L.tileLayer('https:\/\/{s}.fantastic-game.ru\/tileserver.php?\/map\/{z}\/{x}\/{y}.png', {\r\n                                subdomains: ['tiles'],\r\n                                \/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 (c) OpenProvinceMap \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n                                \/\/ \u043f\u043e\u0441\u043b\u0435 | \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n                                attribution: '&copy; &lt;a href=\"https:\/\/fantastic-game.ru\/openprovincemap\/map.html\"&gt;OpenProvinceMap&lt;\/a&gt; | &lt;a href=\"https:\/\/fantastic-game.ru\/blog\/?page_id=105\"&gt;\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f&lt;\/a&gt;',\r\n                                maxZoom: 18, \/\/ \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0443\u043c\r\n                            });\r\n                            \r\n            \/\/ \u0421\u0432\u0435\u0442\u043b\u044b\u0439 \u0441\u0442\u0438\u043b\u044c\r\n            var Bright = L.tileLayer('https:\/\/{s}.fantastic-game.ru\/vip\/?tileset=bright&z={z}&x={x}&y={y}', {\r\n                                subdomains: ['tiles'],\r\n                                \/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 (c) OpenProvinceMap \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n                                \/\/ \u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.\r\n                                \/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0434\u0430\u0442\u044b \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 OpenProvinceMap\r\n                                \/\/ (\u0434\u0430\u0442\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438)\r\n                                \/\/\r\n                                \/\/ \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u0430\u0439\u043b\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 OpenProvinceMap,\r\n                                \/\/ \u043d\u043e \u043d\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 OpenProvinceMap, \u0432 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f:\r\n                                \/\/ (c) [\u0410\u0432\u0442\u043e\u0440 \u0442\u0430\u0439\u043b\u043e\u0432] | (c) \u0414\u0430\u043d\u043d\u044b\u0435 OpenProvinceMap, (\u0434\u0430\u0442\u0430 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438)\r\n                                attribution: '&copy; &lt;a href=\"https:\/\/fantastic-game.ru\/openprovincemap\/map.html\"&gt;OpenProvinceMap&lt;\/a&gt; | &lt;a href=\"https:\/\/fantastic-game.ru\/blog\/?page_id=105\"&gt;\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f&lt;\/a&gt; | \u0414\u0430\u043d\u043d\u044b\u0435: 2021',\r\n                                maxZoom: 18,\r\n                            });\r\n                            \r\n            \/\/ \u0422\u0430\u0439\u043b\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 radar_t.jpg\r\n            var JST = L.tileLayer('https:\/\/tiles.fantastic-game.ru\/province\/{z}\/{x}\/{y}.png', {\r\n                                \/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 (c) JSt Project\r\n                                \/\/ \u0442.\u043a. \u0442\u0430\u0439\u043b\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0430\u0439\u043b\u0430 radar_t.jpg\r\n                                \/\/ \r\n                                \/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 (c) OpenProvinceMap \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n                                \/\/ \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0442\u0430\u0439\u043b\u043e\u0432\r\n                                attribution: '&copy; JSt Project | &copy; &lt;a href=\"https:\/\/fantastic-game.ru\/openprovincemap\/map.html\"&gt;OpenProvinceMap&lt;\/a&gt; | &lt;a href=\"https:\/\/fantastic-game.ru\/blog\/?page_id=105\"&gt;\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f&lt;\/a&gt; ',\r\n                                maxZoom: 18,\r\n                                minZoom: 11, \/\/ \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0443\u043c\r\n                            });\r\n            \/\/ \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0446\u0435\u043d\u0442\u0440\u0430 \u043a\u0430\u0440\u0442\u044b\r\n            var coords = [[72.14, 1.39], 14];\r\n            \r\n            \/\/ \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b\r\n            var map = L.map('map', {\r\n                                        minZoom: 8,             \/\/ \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0443\u043c \u043a\u0430\u0440\u0442\u044b\r\n                                        maxZoom: 18,            \/\/ \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0443\u043c \u043a\u0430\u0440\u0442\u044b\r\n                                        layers: [Standart],        \/\/ \u0441\u043b\u043e\u0439(\u0441\u0442\u0438\u043b\u044c) \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\r\n                                    });\r\n            \r\n            \/\/ \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u0430\u0440\u0442\u044b \u043d\u0430 \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445\r\n            map.setView(coords[0], coords[1]);\r\n            \r\n            \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u0442\u0438\u043b\u044f\r\n            var layers = {\"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439\": Standart, \"MTA Province Demo\": JST, \"\u0421\u0432\u0435\u0442\u043b\u044b\u0439\": Bright};\r\n            L.control.layers(layers).addTo(map);\r\n        &lt;\/script&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\r\n\r\n<p>\r\n\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:\r\n<\/p>\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet@1.6.0\/dist\/leaflet.css\">\r\n<script src=\"https:\/\/unpkg.com\/leaflet@1.6.0\/dist\/leaflet.js\"><\/script>\r\n<center><div id=\"map\" style=\"max-width:500px;height:500px\"><\/div><\/center>\r\n\t\t<script>\r\n\t\t\t\/\/ \u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043f\u043b\u0438\u0442\u043e\u043a(\u0442\u0430\u0439\u043b\u043e\u0432)\r\n\t\t\t\/\/ \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c\r\n\t\t\tvar Standart = L.tileLayer('https:\/\/{s}.fantastic-game.ru\/tileserver.php?\/map\/{z}\/{x}\/{y}.png', {\r\n\t\t\t\t\t\t\t\tsubdomains: ['tiles'],\r\n\t\t\t\t\t\t\t\t\/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 (c) OpenProvinceMap \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n\t\t\t\t\t\t\t\t\/\/ \u043f\u043e\u0441\u043b\u0435 | \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n\t\t\t\t\t\t\t\tattribution: '&copy; <a href=\"https:\/\/fantastic-game.ru\/openprovincemap\/map.html\">OpenProvinceMap<\/a> | <a href=\"https:\/\/fantastic-game.ru\/blog\/?page_id=105\">\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/a>',\r\n\t\t\t\t\t\t\t\tmaxZoom: 18, \/\/ \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0443\u043c\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\/\/ \u0421\u0432\u0435\u0442\u043b\u044b\u0439 \u0441\u0442\u0438\u043b\u044c\r\n\t\t\tvar Bright = L.tileLayer('https:\/\/{s}.fantastic-game.ru\/vip\/?tileset=bright&z={z}&x={x}&y={y}', {\r\n\t\t\t\t\t\t\t\tsubdomains: ['tiles'],\r\n\t\t\t\t\t\t\t\t\/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 (c) OpenProvinceMap \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n\t\t\t\t\t\t\t\t\/\/ \u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.\r\n\t\t\t\t\t\t\t\t\/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0434\u0430\u0442\u044b \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 OpenProvinceMap\r\n\t\t\t\t\t\t\t\t\/\/ (\u0434\u0430\u0442\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438)\r\n\t\t\t\t\t\t\t\t\/\/\r\n\t\t\t\t\t\t\t\t\/\/ \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u0430\u0439\u043b\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 OpenProvinceMap,\r\n\t\t\t\t\t\t\t\t\/\/ \u043d\u043e \u043d\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 OpenProvinceMap, \u0432 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f:\r\n\t\t\t\t\t\t\t\t\/\/ (c) [\u0410\u0432\u0442\u043e\u0440 \u0442\u0430\u0439\u043b\u043e\u0432] | (c) \u0414\u0430\u043d\u043d\u044b\u0435 OpenProvinceMap, (\u0434\u0430\u0442\u0430 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438)\r\n\t\t\t\t\t\t\t\tattribution: '&copy; <a href=\"https:\/\/fantastic-game.ru\/openprovincemap\/map.html\">OpenProvinceMap<\/a> | <a href=\"https:\/\/fantastic-game.ru\/blog\/?page_id=105\">\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/a> | \u0414\u0430\u043d\u043d\u044b\u0435: 2021',\r\n\t\t\t\t\t\t\t\tmaxZoom: 18,\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\/\/ \u0422\u0430\u0439\u043b\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 radar_t.jpg\r\n\t\t\tvar JST = L.tileLayer('https:\/\/tiles.fantastic-game.ru\/province\/{z}\/{x}\/{y}.png', {\r\n\t\t\t\t\t\t\t\t\/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 (c) JSt Project\r\n\t\t\t\t\t\t\t\t\/\/ \u0442.\u043a. \u0442\u0430\u0439\u043b\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0430\u0439\u043b\u0430 radar_t.jpg\r\n\t\t\t\t\t\t\t\t\/\/ \r\n\t\t\t\t\t\t\t\t\/\/ \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u0438 (c) OpenProvinceMap \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n\t\t\t\t\t\t\t\t\/\/ \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0442\u0430\u0439\u043b\u043e\u0432\r\n\t\t\t\t\t\t\t\tattribution: '&copy; JSt Project | &copy; <a href=\"https:\/\/fantastic-game.ru\/openprovincemap\/map.html\">OpenProvinceMap<\/a> | <a href=\"https:\/\/fantastic-game.ru\/blog\/?page_id=105\">\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/a> ',\r\n\t\t\t\t\t\t\t\tmaxZoom: 18,\r\n\t\t\t\t\t\t\t\tminZoom: 11, \/\/ \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0443\u043c\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\/\/ \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0446\u0435\u043d\u0442\u0440\u0430 \u043a\u0430\u0440\u0442\u044b\r\n\t\t\tvar coords = [[72.14, 1.39], 14];\r\n\t\t\t\/\/ \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b\r\n\t\t\tvar map = L.map('map', {\r\n\t\t\t\t\t\t\t\t\t\tminZoom: 8, \t\t\t\/\/ \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0443\u043c \u043a\u0430\u0440\u0442\u044b\r\n\t\t\t\t\t\t\t\t\t\tmaxZoom: 18,\t\t\t\/\/ \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0443\u043c \u043a\u0430\u0440\u0442\u044b\r\n\t\t\t\t\t\t\t\t\t\tlayers: [Standart],\t\t\/\/ \u0441\u043b\u043e\u0439(\u0441\u0442\u0438\u043b\u044c) \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\/\/ \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u0430\u0440\u0442\u044b \u043d\u0430 \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445\r\n\t\t\tmap.setView(coords[0], coords[1]);\r\n\t\t\t\/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u0442\u0438\u043b\u044f\r\n\t\t\tvar layers = {\"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439\": Standart, \"MTA Province Demo\": JST, \"\u0421\u0432\u0435\u0442\u043b\u044b\u0439\": Bright};\r\n\t\t\tL.control.layers(layers).addTo(map);\r\n<\/script>\r\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043b\u0438\u0442\u043e\u043a \u043e\u0442 OpenProvinceMap \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 JavaScript \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Leaflet \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b map.html \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434: &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&#187;UTF-8&#8243;&gt; &lt;meta name=&#187;viewport&#187; content=&#187;width=device-width, initial-scale=1.0&#8243;&gt; &lt;!&#8212; \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b &#8212;&gt; &lt;title&gt;OpenProvinceMap \u2013 \u041a\u0430\u0440\u0442\u0430 MTA Province&lt;\/title&gt; &lt;!&#8212; \u0418\u043c\u043f\u043e\u0440\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0441\u0442\u0438\u043b\u0435\u0439 &#8212;&gt; &lt;link rel=&#187;stylesheet&#187; href=&#187;https:\/\/unpkg.com\/leaflet@1.6.0\/dist\/leaflet.css&#187;&gt; &lt;style&gt; body{ margin: 0; padding: 0; } #map{ width:100%; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":819,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"page_structure":"default","page_banner":"inherit","page_container_source":"inherit","page_container":"container","hopeui_php_page_bg_color":"false","footnotes":""},"class_list":["post-880","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/pages\/880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/comments?post=880"}],"version-history":[{"count":7,"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/pages\/880\/revisions"}],"predecessor-version":[{"id":888,"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/pages\/880\/revisions\/888"}],"up":[{"embeddable":true,"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/pages\/819"}],"wp:attachment":[{"href":"https:\/\/fantastic-game.ru\/blog\/wp-json\/wp\/v2\/media?parent=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}