Language
ログイン
言語設定
X
English
日本語 [Japanese]
オープンデータを使ってアプリを作ろう
アプリケーションの作成と公開をサポートするサイト
お問い合わせ
HOME
チュートリアル
アプリ新規作成
アプリのFork
公開アプリ一覧
アプリ作品の情報
長野県塩尻市
塩尻市のAED設置箇所一覧
fullscreen
長野県塩尻市
塩尻市内のAED設置箇所一覧表示アプリです。推奨データセット対応版です。
1
評価指数
いいね!
1
Loading...
このアプリ作品で使われているデータと同じ形式のデータを作成し、このアプリに適用することができます。
ひな形として使うファイルをリストから選択し、"Create Templete"をクリックして下さい。
アプリケーション
fullscreen
play
stop
reload
Play
JavaScript
CSS
HTML
概要
保存した実行結果
塩尻市のAED設置箇所一覧
jquery-1.7.1.min.js
https://maps.googleapis.com/maps/api/js?key=AIzaSyDAbLPQ3XiDZRWkVgQJg53ywpN__Z0WLLM&sensor=false&language=ja
塩尻市のAED設置箇所一覧
塩尻市のAED設置箇所一覧
塩尻市のAED設置箇所一覧
塩尻市のAED設置箇所一覧
/* 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["NO"] = 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/rdf1s8101i#" + encodeURIComponent("名称")){ tmp_data["name"] = objValue; }else if(propValue == "http://www.w3.org/2003/01/geo/wgs84_pos#lat"){ tmp_data["lat"] = objValue; }else if(propValue == "http://www.w3.org/2003/01/geo/wgs84_pos#long"){ tmp_data["lng"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("住所")){ tmp_data["location"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("設置位置")){ tmp_data["pos"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("利用可能曜日")){ tmp_data["youbi"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("開始時間")){ tmp_data["start"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("終了時間")){ tmp_data["end"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("利用可能日時特記事項")){ tmp_data["tokki"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("小児対応設備の有無")){ tmp_data["forchild"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("URL")){ tmp_data["url"] = objValue; }else if(propValue == "http://linkdata.org/property/rdf1s8101i#" + encodeURIComponent("備考")){ tmp_data["appendix"] = objValue; } }); }); tmp_a_data.push(tmp_data); }); }); }); //全データ all_data = tmp_a_data; //地図センター緯度経度の初期値は「塩尻市役所」 var myLatLng = new google.maps.LatLng(36.115241,137.953483); var myMap = new google.maps.Map(document.getElementById('result'), { zoom: 12, 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: (all_data[i].genre == "予備" ? "http://labs.google.com/ridefinder/images/mm_20_blue.png" : "http://app.linkdata.org/asset/627241e3.png"), map: myMap }); // ウィンドウに表示するデータをつくる var spot_info = all_data[i].name + '<small>' + (all_data[i].location != undefined ? ('<br>【住所】' + all_data[i].location) : "") + (all_data[i].pos != undefined ? ('<br>【設置位置】' + all_data[i].pos) : "") + (all_data[i].youbi != undefined ? ('<br>【利用可能曜日】' + all_data[i].youbi) : "") + (all_data[i].start != undefined ? ('<br>【開始時刻】' + all_data[i].start) : "") + (all_data[i].end != undefined ? ('<br>【終了時刻】' + all_data[i].end) : "") + (all_data[i].tokki != undefined ? ('<br>【利用可能日時特記事項】' + all_data[i].tokki) : "") + (all_data[i].forchild != undefined ? ('<br>【小児対応設備の有無】' + all_data[i].forchild) : "") + (all_data[i].url != undefined ? ('<br>【URL】' + all_data[i].url) : "") + (all_data[i].appendix != undefined ? ('<br>【備考】' + all_data[i].appendix) : "") + '</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>
jquery-1.7.1.min.js
https://maps.googleapis.com/maps/api/js?key=AIzaSyDAbLPQ3XiDZRWkVgQJg53ywpN__Z0WLLM&sensor=false&language=ja
このアプリをForkして新しいアプリを作る
ダウンロード
Fork元のアプリは更新されました.
>>see
アプリは更新されました.
>>see
ツイート
このアプリ作品をwebから探す
作者
メッセージ送信
長野県塩尻市
Fork元のアプリ
長野県塩尻市
's
塩尻市の指定緊急避難場所一覧
実行回数
191
ウェブサイト
ライセンス
Fork count
0
作成日
2019年9月19日
最終更新日
2019年9月24日
Fork元のアプリ
塩尻市の指定緊急避難場所一覧
作者: 長野県塩尻市
更新日: 2019年9月5日
141 回実行
"
" コミュニティへの投稿が完了しました。投稿したアプリ作品は、コミュニティ管理者によって承認されるとコミュニティに公開されます。
エントリー先のコミュニティとカテゴリ名を選択し、「エントリー」ボタンをクリックして下さい。
チュートリアル
アプリ作品の削除をする場合は削除をクリックしてください
Close
入力データ
関連アイデア
このアプリ作品で入力データとして使われているデータ作品のリストです。
チェックボックスの選択を変更すると、入力データを変更して実行することができます。
AED設置箇所一覧
作者: 長野県塩尻市
更新日: 2020年3月18日
118 ダウンロード
,
1 アプリケーション
202151_aed
自分のデータを入力する
このアプリを使ったアイデアはまだ公開されていません
アイデアを作成
ニュースフィード
linkdata.org に関するツイート