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

地図データの活用 (2016)

4D Japan
November 01, 2024

地図データの活用 (2016)

4D Japan

November 01, 2024
Tweet

More Decks by 4D Japan

Other Decks in Technology

Transcript

  1. αϯϓϧ tile storm OSM Mapnick ESRI NavCharts ESRI World Imagery

    ESRI National Geographic Google hybride OSM Thunderforest Transport OSM Mapnick Google roadmap MapBox Warden OSM Thunderforest Landscape Geocommons Acetate ESRI World Topo Map ESRI World Street Map Google satellite OSM Thunderforest Cycle OSM OpenPisteMap OSM OpenSeaMap OSM OpenWeatherMap Skobbler maps Stamen Watercolor
  2. <html> <head> </head> <body> <script> 
 
 
 </script> </body>

    </html> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> 1. スタイル
  3. <html> <head> </head> <body> <script> 
 
 
 </script> </body>

    </html> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> 1. スタイル 2. JSライブラリ
  4. <html> <head> </head> <body> <script> 
 
 
 </script> </body>

    </html> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <div id="map" 1. スタイル 2. JSライブラリ 3. 受け⼊れ
 divエリア
  5. <html> <head> </head> <body> <script> 
 
 
 </script> </body>

    </html> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <div id="map" style="height:600px;width:800px"/> 1. スタイル 2. JSライブラリ 3. 受け⼊れ
 divエリア 4. 地図のサイズ
  6. <html> <head> </head> <body> <script> 
 
 
 </script> </body>

    </html> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <div id="map" style="height:600px;width:800px"/> var map = L.map('map').setView([47, -2.25], 13); 1. スタイル 2. JSライブラリ 3. 受け⼊れ
 divエリア 4. 地図のサイズ 5. 地図の位置
  7. <html> <head> </head> <body> <script> 
 
 
 </script> </body>

    </html> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <div id="map" style="height:600px;width:800px"/> var map = L.map('map').setView([47, -2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); 1. スタイル 2. JSライブラリ 3. 受け⼊れ
 divエリア 4. 地図のサイズ 5. 地図の位置 6.地図の内容
  8. <html> <head> </head> <body> <script> 
 
 
 </script> </body>

    </html> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <div id="map" style="height:600px;width:800px"/> var map = L.map('map').setView([47, -2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); 1. スタイル 2. JSライブラリ 3. 受け⼊れ
 divエリア 4. 地図のサイズ 5. 地図の位置 6.地図の内容
  9. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> ϚʔΧʔͷදࣔ add a marker Leaflet_Demo02
  10. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> L.marker([47,-2.25]).addTo(map); ϚʔΧʔͷදࣔ add a marker Leaflet_Demo02
  11. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> L.marker([47,-2.25]).addTo(map); ϚʔΧʔͷදࣔ add a marker Leaflet_Demo02
  12. ϚʔΧʔͷίϨΫγϣϯ collection of markers "IATA_AirportCode": "AUR", "Location": "Aurillac", "Latitude": 44.883333333333,

    "Longitude": 2.4166666666667 }, { "IATA_AirportCode": "AUF", "Location": "Branches", "Latitude": 47.85, "Longitude": 3.4833333333333 }, ….. { "IATA_AirportCode": "VHY", "Location": "Charmeil", "Latitude": 46.166666666667, "Longitude": 3.4 }, { "IATA_AirportCode": "V24", "Location": "Velizy", "Latitude": 48.766666666667, "Longitude": 2.2 }, { "IATA_AirportCode": "VTL", "Location": "Vittel", "Latitude": 48.216666666667, "Longitude": 5.9333333333333 } ] Leaflet_Demo03
  13. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> Leaflet_Demo03 ϚʔΧʔͷίϨΫγϣϯ collection of markers
  14. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> Leaflet_Demo03 ϚʔΧʔͷίϨΫγϣϯ collection of markers
  15. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> var airports = <!--#4DHTML airports_json-->; Leaflet_Demo03 ϚʔΧʔͷίϨΫγϣϯ collection of markers
  16. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> var airports = <!--#4DHTML airports_json-->; … { "IATA_AirportCode": "AUR", "Location": "Aurillac", "Latitude": 44.883333333333, "Longitude": 2.4166666666667 }, { "IATA_AirportCode": "AUF", "Location": "Branches", "Latitude": 47.85, "Longitude": 3.4833333333333 } … Leaflet_Demo03 ϚʔΧʔͷίϨΫγϣϯ collection of markers
  17. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> var airports = <!--#4DHTML airports_json-->; for (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]).addTo(map); }; … { "IATA_AirportCode": "AUR", "Location": "Aurillac", "Latitude": 44.883333333333, "Longitude": 2.4166666666667 }, { "IATA_AirportCode": "AUF", "Location": "Branches", "Latitude": 47.85, "Longitude": 3.4833333333333 } … Leaflet_Demo03 ϚʔΧʔͷίϨΫγϣϯ collection of markers
  18. <html> <head> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> </head> <body>

    <div id="map" style="height:100%;width:100%"/> <script> var map = L.map('map').setView([47,-2.25], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); </script> </body> </html> var airports = <!--#4DHTML airports_json-->; for (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]).addTo(map); }; … { "IATA_AirportCode": "AUR", "Location": "Aurillac", "Latitude": 44.883333333333, "Longitude": 2.4166666666667 }, { "IATA_AirportCode": "AUF", "Location": "Branches", "Latitude": 47.85, "Longitude": 3.4833333333333 } … Leaflet_Demo03 ϚʔΧʔͷίϨΫγϣϯ collection of markers
  19. for (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]).addTo(map); }; Leaflet_Demo04 ϑΩμγͷදࣔ display tips for

    (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]) .addTo(map); };
  20. for (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]).addTo(map); }; Leaflet_Demo04 ϑΩμγͷදࣔ display tips for

    (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]) .addTo(map); };
  21. for (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]) .addTo(map); }; Leaflet_Demo04 ϑΩμγͷදࣔ display tips

    for (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]) .addTo(map); };
  22. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); Leaflet_Demo05
  23. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); Leaflet_Demo05
  24. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); Leaflet_Demo05
  25. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); Leaflet_Demo05
  26. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); Leaflet_Demo05
  27. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); Leaflet_Demo05
  28. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); Leaflet_Demo05
  29. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    .bindPopup(popupContent,{maxWidth:500,minWidth:300}) map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); Leaflet_Demo05
  30. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    .bindPopup(popupContent,{maxWidth:500,minWidth:300}) map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); ポップアップ表⽰で 発⽣するイベント Leaflet_Demo05
  31. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    .bindPopup(popupContent,{maxWidth:500,minWidth:300}) map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); ポップアップ表⽰で 発⽣するイベント e.popup : ポップ アップを管理する オブジェクト Leaflet_Demo05
  32. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    .bindPopup(popupContent,{maxWidth:500,minWidth:300}) map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); ポップアップ表⽰で 発⽣するイベント $4d : JSから
 メソッドをコールす ることができる e.popup : ポップ アップを管理する オブジェクト Leaflet_Demo05
  33. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    .bindPopup(popupContent,{maxWidth:500,minWidth:300}) map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); ポップアップ表⽰で 発⽣するイベント $4d : JSから
 メソッドをコールす ることができる メソッドの戻り値を処理するコールバック関数 e.popup : ポップ アップを管理する オブジェクト Leaflet_Demo05
  34. ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>"

    .bindPopup(popupContent,{maxWidth:500,minWidth:300}) map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); ポップアップ表⽰で 発⽣するイベント $4d : JSから
 メソッドをコールす ることができる メソッドの戻り値を処理するコールバック関数 e.popup : ポップ アップを管理する オブジェクト ee : クリックを発⽣させたDOMを操作 Leaflet_Demo05
  35. var airports = <!--#4DHTML airports_json-->; var map = L.map('map').setView([<!--#4DHTML airports_latitude-->,<!--#4DHTML

    airports_longitude-->], L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {attribution: 'copyright',maxZoom: 18}).addTo(map); for (var i=0;i<airports.length;i++){ L.marker([airports[i].Latitude,airports[i].Longitude]) .addTo(map); }; ௥Ճ৘ใͷදࣔ popupContent = "<b>"+airports[i].Location+"</b><br/><div id='"+airports[i].UUID+"'>" popupContent += "<a href='#'>more info</a></div>" .bindPopup(popupContent,{maxWidth:500,minWidth:300}) map.on('popupopen', function(e) { var myDiv=e.popup._contentNode.childNodes[2]; if (myDiv){ myDiv.onclick = function(ee) { $4d.Airport_PlusInfo(myDiv.id,function(dollarZero){ ee.target.parentElement.innerHTML=dollarZero; }); }; }; }); ポップアップ表⽰で 発⽣するイベント $4d : JSから
 メソッドをコールす ることができる メソッドの戻り値を処理するコールバック関数 e.popup : ポップ アップを管理する オブジェクト ee : クリックを発⽣させたDOMを操作 Leaflet_Demo05
  36. zoomIn = function(){ map.zoomIn(); return map.getZoom(); }; zoomOut = function(){

    map.zoomOut(); return map.getZoom(); }; Leaflet_Demo06 ίϯτϩʔϧ control of the map
  37. zoomIn = function(){ map.zoomIn(); return map.getZoom(); }; zoomOut = function(){

    map.zoomOut(); return map.getZoom(); }; Leaflet_Demo06 ίϯτϩʔϧ control of the map
  38. zoomIn = function(){ map.zoomIn(); return map.getZoom(); }; zoomOut = function(){

    map.zoomOut(); return map.getZoom(); }; WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomIn";zv_zoom) Leaflet_Demo06 ίϯτϩʔϧ control of the map
  39. zoomIn = function(){ map.zoomIn(); return map.getZoom(); }; zoomOut = function(){

    map.zoomOut(); return map.getZoom(); }; WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomIn";zv_zoom) WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomOut";zv_zoom) Leaflet_Demo06 ίϯτϩʔϧ control of the map
  40. zoomIn = function(){ map.zoomIn(); return map.getZoom(); }; zoomOut = function(){

    map.zoomOut(); return map.getZoom(); }; WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomIn";zv_zoom) WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomOut";zv_zoom) エリア内にあるJS関数の名前 Leaflet_Demo06 ίϯτϩʔϧ control of the map
  41. zoomIn = function(){ map.zoomIn(); return map.getZoom(); }; zoomOut = function(){

    map.zoomOut(); return map.getZoom(); }; WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomIn";zv_zoom) WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomOut";zv_zoom) エリア内にあるJS関数の名前 JS関数の戻り値 Leaflet_Demo06 ίϯτϩʔϧ control of the map
  42. zoomIn = function(){ map.zoomIn(); return map.getZoom(); }; zoomOut = function(){

    map.zoomOut(); return map.getZoom(); }; WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomIn";zv_zoom) WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomOut";zv_zoom) エリア内にあるJS関数の名前 JS関数の戻り値 ズームを上げる Leaflet関数 Leaflet_Demo06 ίϯτϩʔϧ control of the map
  43. ズーム率を返す Leaflet関数 zoomIn = function(){ map.zoomIn(); return map.getZoom(); }; zoomOut

    = function(){ map.zoomOut(); return map.getZoom(); }; WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomIn";zv_zoom) WA EXECUTE JAVASCRIPT FUNCTION(*;"zw_leaflet";"zoomOut";zv_zoom) エリア内にあるJS関数の名前 JS関数の戻り値 ズームを上げる Leaflet関数 Leaflet_Demo06 ίϯτϩʔϧ control of the map
  44. ϥΠϯͷඳը drawing on the map TracerLigne = function (c) {

    L.polyline([[c.coords[0].lat,c.coords[0].lng], [c.coords[1].lat,c.coords[1].lng]], { color: 'red',weight: 3, opacity: 0.5,smoothFactor: 1 }) .addTo(map); }; Leaflet_Demo08
  45. ϥΠϯͷඳը drawing on the map TracerLigne = function (c) {

    L.polyline([[c.coords[0].lat,c.coords[0].lng], [c.coords[1].lat,c.coords[1].lng]], { color: 'red',weight: 3, opacity: 0.5,smoothFactor: 1 }) .addTo(map); }; { "coords": [ { "lat": 48.433333333333, "lng": -4.4166666666667 }, { "lat": 41.5, "lng": 9.0833333333333 } ] } Leaflet_Demo08
  46. ൣғදࣔ covered zone var map = L.map('map').setView([<!--#4DHTML airports_latitude-->, <!--#4DHTML airports_longitude-->],6);

    L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); TracerCercle = function (c) { L.circle([c.lat,c.lng],50000, { color: 'blue', weight: 3, opacity: 0.5, smoothFactor: 1 }) .addTo(map); }; Leaflet_Demo09
  47. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° Leaflet_Demo11
  48. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° Leaflet_Demo11 centerLatitudeがあれば使⽤する
  49. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> <!--#4DEVAL $centerLongitude:=1--> パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° Leaflet_Demo11 centerLatitudeがあれば使⽤する
  50. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> <!--#4DEVAL $centerLongitude:=1--> <!--#4DIF (OB Is defined:C1231($mapParameters;"centerLongitude"))--> <!--#4DEVAL $centerLongitude:=OB GET:C1224($mapParameters;"centerLongitude")--> <!--#4DENDIF--> パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° Leaflet_Demo11 centerLatitudeがあれば使⽤する
  51. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> <!--#4DEVAL $centerLongitude:=1--> <!--#4DIF (OB Is defined:C1231($mapParameters;"centerLongitude"))--> <!--#4DEVAL $centerLongitude:=OB GET:C1224($mapParameters;"centerLongitude")--> <!--#4DENDIF--> パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° C1224 : C = コマンド, 1224 = 識別番号 Leaflet_Demo11 centerLatitudeがあれば使⽤する
  52. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> <!--#4DEVAL $centerLongitude:=1--> <!--#4DIF (OB Is defined:C1231($mapParameters;"centerLongitude"))--> <!--#4DEVAL $centerLongitude:=OB GET:C1224($mapParameters;"centerLongitude")--> <!--#4DENDIF--> var map = L.map('map').setView([<!--#4DHTML $centerLatitude-->,<!--#4DHTML $centerLongitude-->],6); パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° C1224 : C = コマンド, 1224 = 識別番号 Leaflet_Demo11 centerLatitudeがあれば使⽤する
  53. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> <!--#4DEVAL $centerLongitude:=1--> <!--#4DIF (OB Is defined:C1231($mapParameters;"centerLongitude"))--> <!--#4DEVAL $centerLongitude:=OB GET:C1224($mapParameters;"centerLongitude")--> <!--#4DENDIF--> var map = L.map('map').setView([<!--#4DHTML $centerLatitude-->,<!--#4DHTML $centerLongitude-->],6); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° C1224 : C = コマンド, 1224 = 識別番号 Leaflet_Demo11 centerLatitudeがあれば使⽤する
  54. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> <!--#4DEVAL $centerLongitude:=1--> <!--#4DIF (OB Is defined:C1231($mapParameters;"centerLongitude"))--> <!--#4DEVAL $centerLongitude:=OB GET:C1224($mapParameters;"centerLongitude")--> <!--#4DENDIF--> var map = L.map('map').setView([<!--#4DHTML $centerLatitude-->,<!--#4DHTML $centerLongitude-->],6); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); L.marker([<!--#4DHTML $centerLatitude-->,<!--#4DHTML $centerLongitude-->]).addTo(map); パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° C1224 : C = コマンド, 1224 = 識別番号 Leaflet_Demo11 centerLatitudeがあれば使⽤する
  55. ύϥϝʔλʔͷड͚౉͠ exchanging parameters <!--#4DEVAL $mapParameters:=$1--> <!--#4DEVAL $centerLatitude:=46--> <!--#4DIF (OB Is

    defined:C1231($mapParameters;"centerLatitude"))--> <!--#4DEVAL $centerLatitude:=OB GET:C1224($mapParameters;"centerLatitude")--> <!--#4DENDIF--> <!--#4DEVAL $centerLongitude:=1--> <!--#4DIF (OB Is defined:C1231($mapParameters;"centerLongitude"))--> <!--#4DEVAL $centerLongitude:=OB GET:C1224($mapParameters;"centerLongitude")--> <!--#4DENDIF--> var map = L.map('map').setView([<!--#4DHTML $centerLatitude-->,<!--#4DHTML $centerLongitude-->],6); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'copyright', maxZoom: 18 }).addTo(map); L.marker([<!--#4DHTML $centerLatitude-->,<!--#4DHTML $centerLongitude-->]).addTo(map); パラメーターオブジェクトから値 をローカル変数に代⼊ デフォルト緯度 : 46° C1224 : C = コマンド, 1224 = 識別番号 タグ変換でコードを⽣成 Leaflet_Demo11 centerLatitudeがあれば使⽤する
  56. var map = L.map('map') .setView([<!—#4DHTML $1-->,<!--#4DHTML $2-->], 6); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {

    attribution: 'copyright',maxZoom: 18 }).addTo(map); var points = <!--#4DHTML $3-->; for (var i=0;i<points.length;i++){ L.marker([points[i].Latitude, points[i].Longitude]).addTo(map); }; ൚༻஍ਤ generic map Leaflet_Demo12
  57. var map = L.map('map') .setView([<!—#4DHTML $1-->,<!--#4DHTML $2-->], 6); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {

    attribution: 'copyright',maxZoom: 18 }).addTo(map); var points = <!--#4DHTML $3-->; for (var i=0;i<points.length;i++){ L.marker([points[i].Latitude, points[i].Longitude]).addTo(map); }; ൚༻஍ਤ generic map Leaflet_Demo12
  58. ԁάϥϑ semicircle plugin <script src="<!--#4DHTML url_Relative-->/semicircle.js"></script> L.circle([c.lat,c.lng],c.radius, { color: c.arcs[i].color,

    weight: 0, fillOpacity: 0.5, startAngle: c.arcs[i].start, stopAngle: c.arcs[i].end }) Leaflet_Demo13
  59. ԁάϥϑ semicircle plugin <script src="<!--#4DHTML url_Relative-->/semicircle.js"></script> L.circle([c.lat,c.lng],c.radius, { color: c.arcs[i].color,

    weight: 0, fillOpacity: 0.5, startAngle: c.arcs[i].start, stopAngle: c.arcs[i].end }) Leaflet_Demo13