Skip to content

Commit

Permalink
Readme.md and install.md add
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichigmf committed Mar 27, 2023
1 parent 9bfe7fa commit dded0b5
Show file tree
Hide file tree
Showing 43 changed files with 490 additions and 2 deletions.
161 changes: 159 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,159 @@
# lhazardmap
simple hazard map


# 軽量ハザードマップアプリ説明



1.コンセプト
=======

   サーバー費用無料でハザードマップのWEB配信を行う

   プログラムのソースコードはオープンソースとする

   権限を持ったユーザが地図に情報を書き込み、WEB地図で共有を行えるようにする

2.実現するための技術
===========

 Google Spread Sheetのアカウントを作り、そこにWEB地図関連パラメータの定義、ポイントデータを格納する。

それらのデータにアクセスするためのWEB APIと地図表示用WEBページをGoogle App Scriptとして記述を行いGoogle App Script編集画面からデプロイを行う。

データ編集可能なモードのWEB地図ソフトウェアと閲覧専用地図ソフトウェアを別に用意。編集可能ソフトウェアはGoogle Spread Sheetのメニューから起動。当該Google Spread Sheetの編集権限があり、ユーザーリストにメールアドレスが登録されてあるユーザでSpread Sheetにログインしている場合のみ利用可能(Google Spread Sheetのユーザ権限でユーザ管理)。閲覧専用ソフトウェアは外部WEBサイトのHTMLからWEB API利用で地図データを取得して表示を行う(今回のプロトタイプはGithubを利用)。

地図データとしては背景図に地理院ベクタタイル、地理院ラスタタイルを利用。ハザードマップデータとしては国土地理院ハザードマップポータルを利用している。またユーザが登録可能なポイントデータをGoogle Spread Sheet内に格納して利用している。

Google Spread Sheet,Githubの基本機能は無料で利用できる。サーバー費用無料で運用することも可能であるため本ハザードマップは運用のための費用を低くすることが可能である。

* * *

3.機能説明
======

3.1  ハザードマップ閲覧モード
-----------------

### 3.1.1 起動

指定URLをWEBブラウザで開く(サンプルだと[https://akbousai.github.io/lhazardmap/](https://www.google.com/url?q=https://akbousai.github.io/lhazardmap/&sa=D&source=editors&ust=1679912953215595&usg=AOvVaw1ZcZtjX-biRQ8I1kYd8D0u) )

![](images/image6.png)

### 3.1.2 ハザードマップ表示指定

![](images/image16.png)

右側パネルに表示されるハザードマップのリストをマウス左ボタンでクリックするとそのハザードマップの地図表示が切り替わる(非表示ー>表示 または 表示ー>非表示)

### 3.1.3 凡例表示

![](images/image7.png)

左側パネルを開くとその時点で表示指定されているハザードマップの凡例が表示される。

### 3.1.4 登録情報表示

![](images/image29.png)

地図上に表示されているアイコンをマウス左ボタンでクリックすると当該位置に登録された情報の種別と登録したテキストがポップアップで表示される。

### 3.1.5 背景図切り替え

右側パネルの上部3番目のドロップボックスで背景図の切り替えを行うことができる

![](images/image2.png)

![](images/image22.png)

* * *

### 3.1.6 地図拡大・縮小・スクロール

地図右下の +- コントロールボックスのクリックで地図の拡大・縮小を行うことができる。マウスセンターホイールの操作でも拡大・縮小を行うことができる。

地図上でマウス左ボタンを押してそのままドラッグすると地図のスクロールをすることができる。

![](images/image40.png)

マウス右ボタンを地図上で押してドラッグすると地図を表示する角度を変えることができる。地図右下のコンパスの針のボタンをクリックすると表示が通常の角度に戻る。

![](images/image3.png)

### 3.1.7  地名選択による地図表示位置の移動

右パネル上部の旧町名選択リストで旧町名を選択するとその下の地名リストが指定地域に属する地名のリストに切り替わる

![](images/image9.png)

そのリストで地名を選択すると地図が指定した地点近辺を中心とした表示になる

![](images/image18.png)

選択地点近辺の地図

![](images/image24.png)

* * *

3.2  地域情報入力モード
--------------

### 3.2.1 起動

当該Google Spread Sheetのメニューに「地図機能」というものがあるのでそこから「地図を開く」を選択する。(ブラウザの設定でGoogle Spread Sheetからのポップアップを許可しておく必要がある)

![](images/image19.png)
-----------------------

起動すると以下のように地図がブラウザ別タブに表示される![](images/image33.png)

3.2.2 地域情報入力

ハザードマップ閲覧モードのWEB地図では地図上をマウス左ボタンでクリックするとそこに登録情報のアイコンがある場合は登録情報を表示するポップアップが表示される。

地域情報入力モードの地図の場合は地図上をマウス左ボタンでクリックした場合は閲覧モードと同じ処理になるモードと、当該位置に新規にデータ登録を行う2種類の状態を切り替えることができる。

![](images/image20.png)

地図画面左上に「情報入力」というテキストがついたチェックボックスがある。

このチェックボックスがチェックされていない状態の時は閲覧モードと同じで、マウス左ボタンで地図をクリックしたときにその位置にアイコンがあればアイコンに登録されている情報を表示するポップアップが表示される。

![](images/image27.png)

チェックボックスをチェックした後に地図上の情報登録したい位置をマウス左ボタンでクリックする。

* * *

![](images/image26.png)

上図のように情報登録用ポップアップが表示される。

![](images/image15.png)

ドロップダウンリストから登録データの種別を選択

![](images/image8.png)

説明テキストを入力してから「登録」ボタンをクリックする

![](images/image10.png)

指定位置にアイコンが表示される

### 3.2.3 入力情報編集・削除

入力した地域情報は「シート1」というシートに1行のデータとして登録される。

![](images/image14.png)

シート1内の登録情報のカラムを編集することでデータ内容の編集を行うことができる。

また当該データ行を削除するとデータの削除を行うことができる。


* * *
[システム設定手順](./install.md) 

--------------
Binary file added images/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image32.png
Binary file added images/image33.png
Binary file added images/image34.png
Binary file added images/image35.png
Binary file added images/image36.png
Binary file added images/image37.png
Binary file added images/image38.png
Binary file added images/image39.png
Binary file added images/image4.png
Binary file added images/image40.png
Binary file added images/image41.png
Binary file added images/image5.png
Binary file added images/image6.png
Binary file added images/image7.png
Binary file added images/image8.png
Binary file added images/image9.png
Loading

0 comments on commit dded0b5

Please sign in to comment.