Language
Login
Language Setting
X
English
日本語 [Japanese]
about this App
福井市WiWi Fukui City Free Wi-Fi
useful
0
Loading...
/* This is a Example program to retrieve and display the data. Press the Run button on the right of the screen (described the behavior of the Example program below). Please create a new application rewrite this program work. */ var all_data; function initialize(){ all_data = new Array(); // データをLinkDataから取得 tmp_a_data = new Array(); $.each(LinkData.getWorks(), function(workKey, workValue) { $.each(LinkData.getFiles(workValue), function(fileKey, fileValue) { $.each(LinkData.getSubjects(workValue, fileValue), function(subjKey, subjValue) { var tmp_data = {} tmp_data["id"] = subjValue; $.each(LinkData.getProperties(workValue, fileValue), function(propKey, propValue) { $.each(LinkData.getObjects(workValue, fileValue, subjValue, propValue), function(objKey, objValue) { if(propValue == "http://linkdata.org/property/rdf1s4293i#" + encodeURIComponent("アクセスポイント")){ tmp_data["name"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s4293i#" + encodeURIComponent("緯度")){ tmp_data["lat"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s4293i#" + encodeURIComponent("経度")){ tmp_data["lng"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s4293i#" + encodeURIComponent("SSID")){ tmp_data["ssid"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s4293i#" + encodeURIComponent("PASSWORD")){ tmp_data["passewd"] = objValue; } }); }); tmp_a_data.push(tmp_data); }); }); }); //全データ all_data = tmp_a_data; //地図センター緯度経度の初期値は「福井市役所」 var myLatLng = new google.maps.LatLng(36.0640618,136.2195398); var myMap = new google.maps.Map(document.getElementById('result'), { zoom: 14, center: myLatLng, mapTypeId: google.maps.MapTypeId.ROADMAP, scaleControl: true, scrollwheel: true, draggable: true }); //ポイントの設定 var latlng; var data = new Array(); for (var i in all_data) { //避難所の種類で区分する var gmarker = new google.maps.Marker({ position: new google.maps.LatLng(all_data[i].lat,all_data[i].lng), // 緯度・経度は地図の中心 title: all_data[i].name,// ツールチップ openInfo:true, icon: "https://mt.google.com/vt/icon/name=icons/onion/SHARED-mymaps-container-bg_4x.png,icons/onion/SHARED-mymaps-container_4x.png,icons/onion/1895-wifi_4x.png&highlight=ff000000,0288d1,ff000000&scale=2.0", map: myMap }); // ウィンドウに表示するデータをつくる var spot_info = '<B>[' + i + ']' + all_data[i].name + '</B><small>' + (all_data[i].ssid != undefined ? ('<br>【SSID】' + all_data[i].ssid) : "<br>【SSID】WiWi_Fukui_City_Free_WiFi") + (all_data[i].passwd != undefined ? ('<br>【password】' + all_data[i].passwd) : "<br>【password】なし") + '<br><a href="https://www.city.fukui.lg.jp/sisei/tkeikaku/tkeikaku/wiwi_fukui_city_free_wi-fi.html" target="_blank")><b>福井市ホームページ</b></a>' + '</small>'; data.push({ position: new google.maps.LatLng(all_data[i].lat, all_data[i].lng), content: spot_info }); // 地図上にウィンドウで表示 attachMessage(gmarker, data[i].content); }; //for toji };//initialize toji // 地図のマーカーをクリックするとウィンドウを表示する処理 function attachMessage(marker, msg) { google.maps.event.addListener(marker, 'click', function(event) { new google.maps.InfoWindow({ content: msg }).open(marker.getMap(), marker); }); }; window.onload = function() { $(function(){initialize();}); };
<head> <meta name="viewport" content="user-scalable=yes"> </head> <style type="text/css"> html { height: 100% } body { height: 99%; width: 99%; margin: 1px; padding: 1px } #map_canvas { height: 100% } </style> <div id="result" style="width:100%; height:100%"></div>
Preview
Input Data
ReadMe
Snapshots
LinkData Work
Table Data
WiWi Fukui City Free Wi-Fi 設置箇所一覧
Contributor:福井市役所
Update:Mar 31, 2023
337 Downloads, 2 Applications
福井市公衆無線LAN「WiWi Fukui City Free Wi-Fi」のアクセスポイント一覧
Wiwi_Fukui_City_Free_WiFi
[
]
Add LinkData work(LinkData)
Link http://app.linkdata.org/run/app1s1884i?tab=readme
jquery-1.7.1.min.js
https://maps.googleapis.com/maps/api/js?key=AIzaSyBVwGzXK9ZHKQgVRIvCqFEU07iJJKTA7OA
Work
Add
Clear
insert work id or work name.