{"id":3188,"date":"2012-08-05T15:12:42","date_gmt":"2012-08-05T06:12:42","guid":{"rendered":"https:\/\/y2tech.net\/blog\/?p=3188"},"modified":"2012-08-11T17:41:31","modified_gmt":"2012-08-11T08:41:31","slug":"testing_cyber_japan_web_map_v4","status":"publish","type":"post","link":"https:\/\/y2tech.net\/blog\/computer\/webmap\/testing_cyber_japan_web_map_v4-3188\/","title":{"rendered":"\u96fb\u5b50\u56fd\u571fV4\u306e\u30c6\u30b9\u30c8"},"content":{"rendered":"<h3>\u96fb\u5b50\u56fd\u571fV4\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u3066\u307f\u305f<\/h3>\r\n<br>\r\n<div style=\"width: 680px; margin: 0 auto; text-align: center;\">\r\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2012\/08\/screenCapure02.jpg\" alt=\"Screen Capure 02\" title=\"Screen Capure 02\" width=\"300\" height=\"246\" class=\"size-full wp-image-3215\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2012\/08\/screenCapure02.jpg 300w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2012\/08\/screenCapure02-160x131.jpg 160w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\r\n\r\n<span>\u3053\u306e\u80cc\u666f\u5730\u56f3\u7b49\u30c7\u30fc\u30bf\u306f\u3001\u56fd\u571f\u5730\u7406\u9662\u306e\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u63d0\u4f9b\u3055\u308c\u305f\u3082\u306e\u3067\u3042\u308b<\/span>\r\n\r\n<\/div>\r\n<hr \/>\r\n<br>\r\n<p>7\u6708\u4e0b\u65ec\u306b\u30c6\u30b9\u30c8\u516c\u958b\u3055\u308c\u305f\u96fb\u5b50\u56fd\u571fV4\u30b7\u30b9\u30c6\u30e0\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u3001\u56fd\u571f\u5730\u7406\u9662\u304b\u3089\u5c11\u3057\u305a\u3064\u958b\u793a\u3055\u308c\u3064\u3064\u3042\u308b\u304c\u3001\u307e\u3060\u4e00\u822c\u306e\u30e6\u30fc\u30b6\u304cOpenLayers\u3092\u7528\u3044\u3066\u96fb\u5b50\u56fd\u571fV4\u30b7\u30b9\u30c6\u30e0\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u306b\u306f\u3042\u307e\u308a\u306b\u3082\u60c5\u5831\u304c\u5c11\u306a\u3059\u304e\u308b\u306e\u304c\u73fe\u72b6\u3060\u308d\u3046\uff0e<\/p>\r\n<br>\r\n<p>\u56fd\u571f\u5730\u7406\u9662\u306e\u7c21\u5358\u306a<a href=\"http:\/\/portal.cyberjapan.jp\/portalsite\/version\/v4\/index.html#openlayers\" title=\"OpenLayers API\u304b\u3089\u80cc\u666f\u5730\u56f3\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\" target=\"_blank\">\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/a>\u3092\u898b\u308c\u3070\u3001\u5730\u56f3\u3092\u5358\u7d14\u306b\u8868\u793a\u3059\u308b\u3060\u3051\u3067\u3042\u308c\u3070\u305d\u308c\u7a0b\u82e6\u52b4\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u3060\u308d\u3046\u304c\u3001\u72ec\u81ea\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001KML\u306a\u3069\u306e\u91cd\u306d\u5408\u308f\u305b\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3055\u305b\u3088\u3046\u3068\u3059\u308b\u3068\u5927\u5909\u5384\u4ecb\u306a\u3053\u3068\u306b\u306a\u308b\uff0e<\/p>\r\n<br>\r\n<p>\u56fd\u571f\u5730\u7406\u9662\u5074\u3067\u306f\u5f93\u6765\u306e\u96fb\u5b50\u56fd\u571f\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u4e92\u63db\u6027\u3092\u3042\u308b\u7a0b\u5ea6\u78ba\u4fdd\u3057\u305fAPI\u3092\u7528\u610f\u3059\u308b\u610f\u5411\u306e\u3088\u3046\u3060\u304c\u3001\u73fe\u6642\u70b9\u3067\u306f\u8a73\u7d30\u306f\u4e0d\u660e\u3067\u3042\u308b\uff0e<a href=\"http:\/\/portal.cyberjapan.jp\/portalsite\/version\/djapan_yotei.html\" title=\"\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u767a\u3084\u904b\u7528\u306e\u4e88\u5b9a\u306b\u3064\u3044\u3066\" target=\"_blank\">\u300e\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u767a\u3084\u904b\u7528\u306e\u4e88\u5b9a\u306b\u3064\u3044\u3066\u300f<\/a>\u3092\u898b\u308b\u9650\u308a\u3001\r\n<\/p>\r\n<br>\r\n<p>\u30fb\u4eca\u5e74\u306e\u79cb\u306b\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0Ver.4\u304c\u6b63\u5f0f\u516c\u958b\uff1f\u3055\u308c\u308b\u4e88\u5b9a\uff08\u65b0\u3057\u3044API\u304c\u958b\u793a\u3055\u308c\u308b\uff1f\uff09\r\n<\/p>\r\n<br>\r\n<p>\u30fb\u6765\u5e74(H25\u5e74\uff09\u79cb\u307e\u3067\u306f\u5f93\u6765\u306e\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0\uff08V1\u301c3\uff09\u306f\u305d\u306e\u307e\u307e\u5229\u7528\u53ef\u80fd\u3067\u3042\u308b\r\n<br>\r\n<p>\u4f46\u3057\u3001\u5f93\u6765\u306e\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0\uff08V1\u301c3\uff09\u306e\u80cc\u666f\u5730\u56f3\u304c\u65b0\u65b9\u5f0f\u306e256\u30d4\u30af\u30bb\u30eb\u306e\u6b63\u65b9\u30bf\u30a4\u30eb\u306b\r\n<br>\r\n<p>\u5207\u308a\u66ff\u308f\u308b\u304c\u3001\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0\uff08V1\u301c3\uff09\u306eAPI\u3092\u7528\u3044\u3066\u3044\u308bWeb\u30a2\u30d7\u30ea\u306f\u305d\u306e\u307e\u307e\u5229\u7528\u53ef\u80fd\r\n<br>\r\n<p>\u3000\u2192\u3000\u65e7\u65b9\u5f0f\u306e\u80cc\u666f\u5730\u56f3\u30bf\u30a4\u30eb\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308bGIS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308b\r\n<br>\r\n<p> \u3000\r\n\u3068\u3044\u3046\u4e8b\u306e\u3088\u3046\u3060\uff0e\r\n<br>\r\n\r\n<p>\u3068\u308a\u3042\u3048\u305a\u73fe\u72b6\u3067\u306f\u3001\u5148\u306b\u516c\u958b\u3055\u308c\u305f <a href=\"http:\/\/portal.cyberjapan.jp\/portalsite\/docs\/data\/V4source.zip\" title=\"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff1ahttp:\/\/portal.cyberjapan.jp\/portalsite\/docs\/data\/V4source.zip\" target=\"_blank\">\u300e\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0Ver.4(\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u7248)\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u300f<\/a> \u306e\u5185\u5bb9\u3092\u7d10\u89e3\u3044\u3066\u81ea\u5206\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u3066\u307f\u308b\u3057\u304b\u7121\u3055\u305d\u3046\u3060\uff0e<\/p>\r\n<br>\r\n<p>\u3053\u306e\u79cb\u306b\u516c\u958b\u3055\u308c\u308b\u6642\u70b9\u3067\u3069\u306e\u7a0b\u5ea6\u96fb\u5b50\u56fd\u571fV4\u306eWebAPI\u304c\u6574\u5099\u3055\u308c\u308b\u306e\u304b\u4e0d\u660e\u3060\u304c\u3001\u6050\u3089\u304f\u73fe\u72b6\u304b\u3089\u5927\u5e45\u306b\u6a5f\u80fd\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u306f\u7121\u3044\u3060\u308d\u3046\uff0e\u96fb\u5b50\u56fd\u571fV4\u3092\u4f7f\u3044\u3053\u306a\u3059\u306b\u306f\u3001\u3084\u306f\u308aOpenLayers\u306b\u7fd2\u719f\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3088\u3046\u3060\uff0e\r\n<br>\r\n\r\n<h4>\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0Ver.4(\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u7248)\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h4>\r\n<br>\r\n\r\n<p>\u4e0a\u8a18\u56fd\u571f\u5730\u7406\u9662\u306eWEB\u30b5\u30a4\u30c8\u304b\u3089\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0Ver.4\u306eJavascript\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9  &#8220;webtis_v4.js&#8221; \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3056\u3063\u3068\u4e2d\u8eab\u3092\u8997\u3044\u3066\u307f\u305f\uff0e&#8221;webtis_v4.js&#8221;\u5168\u4f53\u30675,365\u884c\u3082\u3042\u308b\u306e\u3067\u3001\u307e\u3060\u8a73\u7d30\u306f\u628a\u63e1\u3067\u304d\u3066\u3044\u306a\u3044\u304c\u3001\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0Ver.4\u4ed5\u69d8\u306e\u80cc\u666f\u5730\u56f3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30af\u30e9\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u91cd\u306d\u5408\u308f\u305b\u30c7\u30fc\u30bf\u3092\u6271\u3046\u305f\u3081\u306e\u30ec\u30a4\u30e4\u30fc\u306e\u30af\u30e9\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u30e1\u30a4\u30f3\u306e\u3088\u3046\u3060\uff0e<\/p>\r\n<br>\r\n<p>\u56fd\u571f\u5730\u7406\u9662\u304c\u72ec\u81ea\u306b\u5b9f\u88c5\u3057\u305f\u30af\u30e9\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u30af\u30e9\u30b9\u540d\u306e\u5148\u982d\u306b &#8220;webtis&#8221; \u3068\u3044\u3046\u540d\u524d\u304c\u4ed8\u3044\u3066\u3044\u308b\u304c\u3001\u57fa\u672c\u7684\u306b\u306fOpenLayers\u306e\u30af\u30e9\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7d99\u627f\u3057\u305f\u7269\u306a\u306e\u3067\u3001OpenLayers\u306e\u77e5\u8b58\u304c\u3042\u308c\u3070\u554f\u984c\u7121\u3044\u3060\u308d\u3046\uff0e\r\n<br>\r\n\r\n<p>\u307e\u3060\u958b\u767a\u9014\u4e0a\u3089\u3057\u304f\u3001\u3053\u308c\u307e\u3067\u306e\u96fb\u5b50\u56fd\u571fWeb\u30b7\u30b9\u30c6\u30e0\u304c\u63d0\u4f9b\u3057\u3066\u3044\u305fAPI\u306e\u6a5f\u80fd\u306f\u307e\u3060\u307b\u3093\u306e\u4e00\u90e8\u3057\u304b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u3060\uff0e\u3068\u308a\u3042\u3048\u305a\u73fe\u6642\u70b9\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u6a5f\u80fd\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\uff0e\r\n<br>\r\n<p>\r\n<b>\u30fb &#8220;webtis.Layer.JSGIXMLLayer&#8221; \u30af\u30e9\u30b9\uff08#2701\u884c\u76ee\u3042\u305f\u308a\uff09<\/b>\r\n<br>\r\n<p> \r\n<br>\r\n<p>\u5f93\u6765\u306eAPI &#8220;openJSGIXML()&#8221; \u3092\u5b9f\u88c5\u3057\u305fLayer\u30af\u30e9\u30b9\u3068\u601d\u308f\u308c\u308b\u304c\u3001\u5b9f\u969b\u306bJSGIXML\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3057\u3066\u8868\u793a\r\n<br>\r\n<p>\u3055\u305b\u3088\u3046\u3068\u3057\u3066\u307f\u305f\u304c\u3001\u80cc\u666f\u5730\u56f3\u4e0a\u306b\u91cd\u306d\u5408\u308f\u305b\u308b\u4e8b\u306f\u3067\u304d\u306a\u304b\u3063\u305f\uff0e<\/p>\r\n<br>\r\n<p>\u3000JSGIXML\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001JSON\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3055\u308c\u3066\u3044\u308b\u3068\u3053\u308d\u307e\u3067\u306f\u78ba\u8a8d\u3067\u304d\u305f\u304c\u3001\r\n<br>\r\n<p>\u3053\u306e\u30ec\u30a4\u30e4\u30fc\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u80cc\u666f\u5730\u56f3\u306e\u4e0a\u306b\u8868\u793a\u3055\u308c\u306a\u3044\u539f\u56e0\u306f\u4e0d\u660e\uff0e<\/p>\r\n<br>\r\n<p>\u3000webtis.Layer.JSGIXMLLayer\u306e\u4f7f\u3044\u65b9\u3068\u3057\u3066\u306f\u3001\u3064\u304e\u306e\u3088\u3046\u306a\u5f62\u306b\u306a\u308b\u3060\u308d\u3046\uff0e\r\n \u3000    \r\n<br>\r\n<p>\u3000\u3000\u3000#1 name : \u30ec\u30a4\u30e4\u30fc\u540d\r\n<br>\r\n<p>\u3000\u3000\u3000#2 url : JSGIXML\u30c7\u30fc\u30bf\u306eURL\r\n<br>\r\n<p>\u3000\u3000\u3000#3 options : \u30aa\u30d7\u30b7\u30e7\u30f3\u30d1\u30e9\u30e1\u30fc\u30bf\r\n<br>\r\n<p>\u3000\r\n<pre><code class=\"language-Markup\">\r\n    var map = new OpenLayers.Map( 'map_cj4' );\r\n        ...\r\n  \r\n    var cj4JSGILayer = new webtis.Layer.JSGIXMLLayer( \r\n        \"CJ4 JSGIXML Layer\", \r\n        \"https:\/\/y2tech.net\/maps\/xml\/JSGITEST.xml\",\r\n        {} );\r\n    \r\n     map.addLayer( cj4JSGILayer );\r\n       ...\r\n \r\n<\/code><\/pre>\r\n<br>\r\n<b>\u30fb KML\u30c7\u30fc\u30bf\u306e\u91cd\u306d\u5408\u308f\u305b\uff08OpenLayers\u306e\u6a19\u6e96\u6a5f\u80fd\uff09<\/b>\r\n<br>\r\n<p>\u96fb\u5b50\u56fd\u571fV4\u3067\u306f\u3001\u91cd\u306d\u5408\u308f\u305b\u30c7\u30fc\u30bf\u306e\u5f62\u5f0f\u3068\u3057\u3066\u3053\u308c\u307e\u3067\u306eJSGIXML\u5f62\u5f0f\u306e\u307f\u304b\u3089 Google Maps\u3084Google Earth\u7b49\u3067\u4e00\u822c\u7684\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b KML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u306b\u3082\u5bfe\u5fdc\u3059\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u3044\u3046\uff0e\u4eca\u5f8c\u3082JSGIXML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u7d9a\u3051\u308b\u306e\u304b\u3069\u3046\u304b\u306f\u4e0d\u660e\u3060\u304c\u3001\u3068\u308a\u3042\u3048\u305aV4\u306eAPI\u306b\u306f&#8221;webtis.Layer.JSGIXMLLayer&#8221; \u30af\u30e9\u30b9\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u5f53\u9762\u306fJSGIXML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u91cd\u306d\u5408\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u305d\u3046\u3060\uff0e<\/p>\r\n<br>\r\n<p>KML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066\u306fOpenLayers\u306e\u6a19\u6e96\u6a5f\u80fd\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u96fb\u5b50\u56fd\u571fV4\u306eAPI\u3067KML\u5f62\u5f0f\u306e\u30ec\u30a4\u30e4\u30fc\u30af\u30e9\u30b9\u304c\u7528\u610f\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u306f\u5206\u304b\u3089\u306a\u3044\u304c\u3001\u6562\u3048\u3066\u96fb\u5b50\u56fd\u571fV4\u306eAPI\u3092\u7528\u610f\u3057\u306a\u304f\u3066\u3082\u554f\u984c\u7121\u3055\u305d\u3046\u3060\uff0e<\/p>\r\n<br>\r\n<p>\u73fe\u5728\u30c6\u30b9\u30c8\u516c\u958b\u4e2d\u306e\u3000<a href=\"http:\/\/portal.cyberjapan.jp\/site\/mapuse\/index.html\" title=\"\u96fb\u5b50\u56fd\u571f\u30dd\u30fc\u30bf\u30ebV4\" target=\"_blank\">\u300e\u96fb\u5b50\u56fd\u571f\u30dd\u30fc\u30bf\u30ebV4\u300f<\/a>\u3067\u306f\u3001KML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u5730\u56f3\u4e0a\u306b\u91cd\u306d\u5408\u308f\u305b\u308b\u4e8b\u304c\u3067\u304d\u308b\uff0e\u4f46\u3057KML\u30c7\u30fc\u30bf\u306e\u4e92\u63db\u88fd\u306b\u95a2\u3057\u3066\u306f\u9650\u5b9a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3001\u4eca\u306e\u3068\u3053\u308d\u96fb\u5b50\u56fd\u571f\u30dd\u30fc\u30bf\u30ebV4\u3067\u4f5c\u6210\u3057\u305fKML\u30c7\u30fc\u30bf\u4ee5\u5916\u306f\u4e0a\u624b\u304f\u8868\u793a\u3067\u304d\u306a\u3044\u3088\u3046\u3060\uff0e<\/p>\r\n<br>\r\n<p>\u8a66\u3057\u306b\u96fb\u5b50\u56fd\u571f\u30dd\u30fc\u30bf\u30ebV4\u3067\u4f5c\u6210\u3057\u305fKML\u30c7\u30fc\u30bf\u3092Google Earth\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u305f\u304c\u3001\u305d\u308c\u306a\u308a\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3060\uff0e\u56fd\u571f\u5730\u7406\u9662\u3067\u3057\u304b\u4f7f\u308f\u308c\u306a\u3044\u3088\u3046\u306a\u72ec\u81ea\u306e\u30bf\u30b0\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3068\u4f7f\u3048\u306a\u3044\u3088\u3046\u306aKML\u3067\u306f\u610f\u5473\u304c\u7121\u3044\u306e\u3067\u3001\u5909\u306a\u62e1\u5f35\u306f\u6b62\u3081\u3066\u6b32\u3057\u3044\uff0e<\/p>\r\n<br>\r\n<p>\u56fd\u571f\u5730\u7406\u9662\u5074\u3068\u3057\u3066\u306f\u5f93\u6765\u306eJSGIXML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u4eca\u5f8c\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u4e8b\u3092\u6b62\u3081\u3066\u3057\u307e\u3046\u3088\u3046\u3060\uff0e\u4e16\u9593\u4e00\u822c\u3067\u306fKML\u30c7\u30fc\u30bf\u5f62\u5f0f\u304c\u30c7\u30d5\u30a1\u30af\u30c8\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u5316\u3057\u3066\u3044\u308b\u306e\u3067\u3001KML\u5f62\u5f0f\u306b\u79fb\u884c\u3059\u308b\u306e\u306f\u81ea\u7136\u306a\u6d41\u308c\u3060\u308d\u3046\uff0e<\/p>\r\n<br>\r\n<p>\u300e\u96fb\u5b50\u56fd\u571f\u30dd\u30fc\u30bf\u30ebV4\u300f\u30b5\u30a4\u30c8\u3067\u306fJSGIXML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u304c\u8aad\u307f\u8fbc\u307f\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u660e\u793a\u3057\u3066\u306f\u3044\u306a\u3044\u3088\u3046\u3060\u304c\u3001JSGIXML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307e\u305b\u3066\u307f\u305f\u3068\u3053\u308d\u304d\u3061\u3093\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u305f\uff0eKML\u5f62\u5f0f\u3067\u66f8\u304d\u51fa\u305b\u3070 JSGIXML \u2192\u3000KML \u3078\u306e\u7c21\u6613\u30c7\u30fc\u30bf\u30b3\u30f3\u30d0\u30fc\u30bf\u3068\u3057\u3066\u4f7f\u3048\u305d\u3046\u3060\uff0e\r\n<br>\r\n<div style=\"width: 680px; margin: 0 auto; text-align: center;\">\r\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2012\/08\/ReadingJSGIXML.jpg\" alt=\"Reading JSGIXML\" title=\"Reading JSGIXML\" width=\"618\" height=\"410\" class=\"size-full wp-image-3198\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2012\/08\/ReadingJSGIXML.jpg 618w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2012\/08\/ReadingJSGIXML-160x106.jpg 160w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2012\/08\/ReadingJSGIXML-300x199.jpg 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><br><span>\u300e\u96fb\u5b50\u56fd\u571f\u30dd\u30fc\u30bf\u30ebV4\u300f\u306e\u4f5c\u56f3\u6a5f\u80fd\u3067JSGIXML\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3067\u307f\u305f<\/span>\r\n<\/div>\r\n\r<\/p>\r\n<\/p>\r\n<br>\r\n<p>\u73fe\u6642\u70b9\u3067\u306f\u96fb\u5b50\u56fd\u571fV4\u5074\u306b\u306f KML\u30c7\u30fc\u30bf\u3092\u30ec\u30a4\u30e4\u30fc\u306b\u8aad\u307f\u8fbc\u307e\u305b\u308b\u30af\u30e9\u30b9\u304c\u7121\u3044\u306e\u3067\u3001KML\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u306b\u306fOpenLayers\u306e\u30af\u30e9\u30b9\u3092\u7528\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u5c1a\u3001OpenLayers\u306eKML\u30ec\u30a4\u30e4\u30fc\u30af\u30e9\u30b9\u3067\u306f\u3001Google Earth\u7b49\u3067\u4f5c\u6210\u3057\u305f\u4e00\u822c\u7684\u306aKML\u30d5\u30a1\u30a4\u30eb\u3092\u554f\u984c\u7121\u304f\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\r\n<br>\r\n<pre><code class=\"language-Markup\">\r\n    var kmlLayer = new OpenLayers.Layer.Vector( \r\n        \"KML Layer\", \r\n        { \r\n            strategies: [new OpenLayers.Strategy.Fixed()],\r\n            protocol: new OpenLayers.Protocol.HTTP({ \r\n                            url: \"https:\/\/y2tech.net\/CJMapTest\/gsi20120805121141.kml\",\r\n                            format: new OpenLayers.Format.KML({\r\n                                   extractStyles: true,\r\n                                   extractAttributes: true,\r\n                                   maxDepth: 2\r\n                             })\r\n             })\r\n        }\r\n    );\r\n<\/code><\/pre>\r\n\r\n<hr \/>\r\n\r\n<h4> HTML\u30b5\u30f3\u30d7\u30eb <\/h4>\r\n<br>\r\n<pre><code class=\"language-Markup\">\r\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\"\r\n\t\t\"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\">\r\n<html lang=\"ja\">\r\n<head>\r\n\t<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">\r\n\t<title>CJ4 Map Test<\/title>\r\n<\/head>\r\n<script src=\".\/OpenLayers-2.12\/OpenLayers.js\"><\/script>\r\n<script type=\"text\/javascript\" src=\".\/webtis_v4.js\" charset=\"UTF-8\"><\/script>\r\n<script src=\"http:\/\/maps.google.co.jp\/maps\/api\/js?v=3.5&#038;sensor=false&#038;language=ja\"><\/script>\r\n<script src=\".\/crosshairs.js\"><\/script>\r\n\r\n<script type=\"text\/javascript\">\r\n\r\n\/\/ define map projection\r\nvar prjSphereMercator = new OpenLayers.Projection(\"EPSG:900913\");\r\nvar prjLatLon = new OpenLayers.Projection(\"EPSG:4326\");\r\n\r\n\r\nfunction init() {\r\n\r\n\tvar map = new OpenLayers.Map( 'map_cj4' );\r\n\r\n\t\/\/  map area restriction\r\n\tvar maxExtentArea = new OpenLayers.Bounds();\r\n\tmaxExtentArea.extend(new OpenLayers.LonLat(110.0, 15.0).transform(prjLatLon, prjSphereMercator));\r\n\tmaxExtentArea.extend(new OpenLayers.LonLat(165.0, 55.0).transform(prjLatLon, prjSphereMercator));\r\n\r\n\tvar restrictedExtent = maxExtentArea.clone();\r\n\r\n\tvar dataSet = { \r\n\t\t5:{dataId:\"JAIS\"},\r\n\t\t6:{dataId:\"JAIS\"},\r\n\t\t7:{dataId:\"JAIS\"},\r\n\t\t8:{dataId:\"JAIS\"},\r\n\t\t9:{dataId:\"BAFD1000K\"},\r\n\t\t10:{dataId:\"BAFD1000K\"},\r\n\t\t11:{dataId:\"BAFD1000K\"},\r\n\t\t12:{dataId:\"BAFD200K\"},\r\n\t\t13:{dataId:\"BAFD200K\"},\r\n\t\t14:{dataId:\"BAFD200K\"},\r\n\t\t15:{dataId:\"DJBMM\"},\r\n\t\t16:{dataId:\"DJBMM\"},\r\n\t\t17:{dataId:\"DJBMM\"},\r\n\t\t18:{dataId:\"FGD\"}\r\n\t};\r\n\t\/\/ Ortho Maps\r\n\tvar orthoDataSet = { \r\n\t\t15:{dataId:\"DJBMO\"},\r\n\t\t16:{dataId:\"DJBMO\"},\r\n\t\t17:{dataId:\"DJBMO\"},\r\n\t\t18:{dataId:\"FGD\"}\r\n\t};\r\n\r\n\tvar cj4BaseMap = new webtis.Layer.BaseMap( \"CJ4 Base Map\", \r\n\t\t{ \r\n\t\t\tdataSet:dataSet,\r\n\t\t\tunits: \"m\",\r\n\t\t\tprojection: prjSphereMercator,\r\n\t\t\tdisplayProjection: prjLatLon,\r\n\t\t\tmaxExtent: maxExtentArea,\r\n\t\t\trestrictedExtent: restrictedExtent\r\n\t\t} );\r\n\r\n\tvar cj4OrthoMap = new webtis.Layer.BaseMap( \"CJ4 Ortho Image\",\r\n\t\t{ \r\n\t\t\tdataSet:orthoDataSet,\r\n\t\t\tunits: \"m\",\r\n\t\t\tprojection: prjSphereMercator,\r\n\t\t\tdisplayProjection: prjLatLon,\r\n\t\t\tmaxExtent: maxExtentArea,\r\n\t\t\trestrictedExtent: restrictedExtent\r\n\t\t} );\r\n\r\n\t\/\/ Google Maps\r\n\tvar googlemap = new OpenLayers.Layer.Google(\r\n\t\t\"Google ROADMAP\", \/\/ the default\r\n\t\t{numZoomLevels: 20}\r\n\t);\r\n\r\n\tvar cj4JSGILayer = new webtis.Layer.JSGIXMLLayer( \r\n\t\t\"CJ4 JSGIXML Layer\", \r\n\t\t\"https:\/\/y2tech.net\/maps\/xml\/JSGITEST.xml\",\r\n\t\t{});\r\n\r\n\tvar kmlLayer = new OpenLayers.Layer.Vector( \"KML Layer\", {\r\n\t\t\tstrategies: [new OpenLayers.Strategy.Fixed()],\r\n\t\t\tprotocol: new OpenLayers.Protocol.HTTP({\r\n\t\t\t\turl: \"https:\/\/y2tech.net\/CJMapTest\/Apr07Markers.kml\",\r\n\t\t\t\tformat: new OpenLayers.Format.KML({\r\n\t\t\t\t\textractStyles: true,\r\n\t\t\t\t\textractAttributes: true,\r\n\t\t\t\t\tmaxDepth: 2\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t});\r\n\r\n\tmap.addLayers( [ cj4BaseMap, cj4OrthoMap, googlemap ] );\r\n\r\n\t\/\/var mapCenterLatLng = new OpenLayers.LonLat(139.65, 35.44);\r\n\tvar mapCenterLatLng = new OpenLayers.LonLat( 134.344417, 34.050613 );\r\n\tvar mapCenter =  mapCenterLatLng.transform( prjLatLon, map.getProjectionObject() );\r\n\r\n\tmap.setCenter( mapCenter, 10 );\r\n\r\n\t\/\/ Add overlay features (draw a random zigzagged line)\r\n\tvar vectorLayer = new OpenLayers.Layer.Vector(\"Random Zigzagged Line\");\r\n\tvar style_red = {\r\n\t\u3000\u3000strokeColor: \"#66DD33\",\r\n\t\u3000\u3000strokeOpacity: 0.5,\r\n\t\u3000\u3000strokeWidth: 3,\r\n\t\u3000\u3000pointRadius: 6,\r\n\t\u3000\u3000pointerEvents: \"visiblePainted\"\r\n\t};\r\n\tvar point = new OpenLayers.Geometry.Point( mapCenter.lon, mapCenter.lat );\r\n\tvar pointList = [];\r\n\tvar newPoint = point;\r\n\tfor( var i=0; i<20; ++i) {\r\n\t\tvar sx = Math.random(1) > 0.5 ? 1 : -1;\r\n\t\tvar sy = Math.random(1) > 0.5 ? 1 : -1;\r\n\t\tnewPoint = new OpenLayers.Geometry.Point( newPoint.x + Math.random(1) * 200 * sx,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  newPoint.y + Math.random(1) * 200 * sy );\r\n\t\tpointList.push( newPoint );\r\n\t}\r\n\tvar lineFeature = new OpenLayers.Feature.Vector(\r\n\t\t\t\t\t\tnew OpenLayers.Geometry.LineString( pointList ), null, style_red );\r\n\tvectorLayer.addFeatures([ lineFeature ] );\r\n\r\n\tmap.addLayers( [cj4JSGILayer, kmlLayer, vectorLayer ] );\r\n\t\/\/map.addLayers( [cj4JSGILayer ] );\r\n\r\n\tmap.addControl( new OpenLayers.Control.LayerSwitcher() );\r\n\r\n\t\/\/ crosshairs cursor\r\n\tvar crosshairsCursorPosition = new OpenLayers.Pixel( map.getCurrentSize().w \/ 2, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t map.getCurrentSize().h \/ 2 );\r\n\r\n\tvar crosshairsCursorCtrl = new OpenLayers.Control.Crosshairs({\r\n\t\t\t\t\timgUrl:  \".\/crosshairs.png\",\r\n\t\t\t\t\tsize: new OpenLayers.Size(32, 32),\r\n\t\t\t\t\tposition: crosshairsCursorPosition\r\n\t\t\t});\r\n\tmap.addControl( crosshairsCursorCtrl ); \r\n\r\n\t\/\/ logo\r\n\tvar logoPosition = new OpenLayers.Pixel( map.getCurrentSize().w - 20,\r\n\t\t\t\t\t\t\t\t\t\t\t map.getCurrentSize().h - 40 );\r\n\tvar logoIconCtrl = new OpenLayers.Control.Crosshairs({\r\n\t\t\t\t\timgUrl:  \".\/icon01.gif\",\r\n\t\t\t\t\tsize: new OpenLayers.Size(32, 32),\r\n\t\t\t\t\tposition: logoPosition\r\n\t\t\t});\r\n\tmap.addControl( logoIconCtrl ); \r\n\r\n\t\/\/ mouse position\r\n\tmap.addControl( new OpenLayers.Control.MousePosition( \r\n\t\t\t\t\t{ 'div': OpenLayers.Util.getElement('mouse_position'),\r\n\t\t\t\t\t  prefix: 'Mouse Position : ',\r\n\t\t\t\t\t  suffix: ' [Lon, Lat]',\r\n\t\t\t\t\t  displayProjection: prjLatLon,\r\n\t\t\t\t\t  emptyString: 'Mouse Position : ',\r\n\t\t\t\t\t  numDigits: 6\r\n\t\t\t\t\t} ));\r\n\tmap.addControl( new OpenLayers.Control.MousePosition( \r\n\t\t\t\t\t{ 'div': OpenLayers.Util.getElement('mouse_position_m'),\r\n\t\t\t\t\t  prefix: '  ( ',\r\n\t\t\t\t\t  suffix: ' [m] )',\r\n\t\t\t\t\t  emptyString: '',\r\n\t\t\t\t\t  numDigits: 0\r\n\t\t\t\t\t} ));\r\n \r\n\t\/\/ draw a map scale bar\r\n\tmap.addControl( new OpenLayers.Control.ScaleLine( \r\n\t\t{\r\n\t\t\tmaxWidth:150,\r\n\t\t\tbottomOutUnits: \"\", \r\n\t\t\tbottomInUnits: \"\",\r\n\t\t\tgeodesic:true\r\n\t\t} ));\r\n\r\n\t\/\/ show map center location\r\n\tshow_map_center( map );\r\n\t\/\/ event handler\r\n\tmap.events.register( 'moveend', map, function() { show_map_center(map); } );\r\n\r\n}\r\n\r\nfunction show_map_center( map ) {\r\n\tvar center = map.getCenter();\r\n\tvar centerLatLon = center.transform(prjSphereMercator, prjLatLon);\r\n\tvar lat = Math.round(centerLatLon.lat * 1000000) \/ 1000000;\r\n\tvar lon = Math.round(centerLatLon.lon * 1000000) \/ 1000000;\r\n\tvar zoomLevel = map.getZoom() + 5;\r\n\t\r\n\tvar htmlText= \"Map Center: \" + lon + \", \" + lat + \"  Zoom Level: \"+ zoomLevel;\r\n\tdocument.getElementById('map_info').firstChild.nodeValue = htmlText;\r\n}\r\n\r\n<\/script>\r\n\r\n<style type=\"text\/css\">\r\n#map_cj4 {\r\n  width:  640px;\r\n  height: 480px;\r\n  border: solid 1px #999;\r\n}\r\n#map_info_area {\r\n  width:  640px;\r\n  height: 40px;\r\n  font-size: small;\r\n  border: solid 1px #999;\r\n}\r\n#map_scale {\r\n  float: right;\r\n  height: 40px;\r\n}\r\n#mouse_position {\r\n  float: left;\r\n  height: 20px;\r\n}\r\n#mouse_position_m {\r\n  margin-left: 0.5em;\r\n  float: left;\r\n  height: 20px;\r\n}\r\n#map_zoom {\r\n  float: left;\r\n  height: 20px;\r\n}\r\n#map_info {\r\n  display: block;\r\n  height: 18px;\r\n}\r\n\r\ndiv.olControlAttribution {\r\n  font-size: x-smaller;\r\n  right: 3px;\r\n  bottom: 0.2em;\r\n  position: absolute;\r\n  display: block;\r\n}\r\n<\/style>\r\n \r\n<\/head>\r\n \r\n<body onload=\"init()\">\r\n\t<div id=\"map_cj4\" ><\/div>\r\n\t<div id=\"map_info_area\" >\r\n\t\t<div id=\"layer_sw\" ><\/div>\r\n\t\t<div id=\"map_info\" >Map Center: <\/div>\r\n\t\t<div id=\"mouse_position\" ><\/div>\r\n\t\t<div id=\"mouse_position_m\" ><\/div>\r\n\t\t<div id=\"map_scale\" ><\/div>\r\n\t\t\r\n\t<\/div>\r\n<\/body>\r\n<\/html>\r\n\r\n<\/code><\/pre>\r\n\r\n\r\n<br>\r\n\r\n","protected":false},"excerpt":{"rendered":"7\u6708\u4e0b\u65ec\u306b\u30c6\u30b9\u30c8\u516c\u958b\u3055\u308c\u305f\u96fb\u5b50\u56fd\u571fV4\u30b7\u30b9\u30c6\u30e0\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u3001\u56fd\u571f\u5730\u7406\u9662\u304b\u3089\u5c11\u3057\u305a\u3064\u958b\u793a\u3055\u308c\u3064\u3064\u3042\u308b\u304c\u3001\u307e\u3060\u4e00\u822c\u306e\u30e6\u30fc\u30b6\u304cOpenLayers\u3092\u7528\u3044\u3066\u96fb\u5b50\u56fd\u571fV4\u30b7\u30b9\u30c6\u30e0\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u306b\u306f\u3042\u307e\u308a\u306b\u3082\u60c5\u5831\u304c\u5c11\u306a\u3059\u304e\u308b\u306e\u304c\u73fe\u72b6\u3060\u308d\u3046\uff0e","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[561],"tags":[567,500],"class_list":["post-3188","post","type-post","status-publish","format-standard","hentry","category-webmap","tag-567","tag-v4"],"_links":{"self":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/3188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/comments?post=3188"}],"version-history":[{"count":0,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/3188\/revisions"}],"wp:attachment":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/media?parent=3188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/categories?post=3188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/tags?post=3188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}