Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hazmapper documentation. #96

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM python:3.8-alpine

# Set build directory
WORKDIR /tmp

# Copy files necessary for build
# COPY material material
# COPY MANIFEST.in MANIFEST.in
# COPY package.json package.json
# COPY README.md README.md
COPY requirements.txt requirements.txt
# COPY setup.py setup.py

# Perform build and cleanup artifacts
RUN apk add --no-cache \
git curl \
&& apk add --no-cache --virtual .build gcc musl-dev \
&& pip install --user -r requirements.txt \
&& apk del .build gcc musl-dev \
&& rm -rf /tmp/*

ENV PATH=$PATH:/root/.local/bin
# Set working directory

WORKDIR /docs

# Expose MkDocs development server port
EXPOSE 8000

# Start development server by default
ENTRYPOINT ["mkdocs"]
CMD ["serve", "--dev-addr=0.0.0.0:8000"]
14 changes: 14 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DOCKER_IMAGE=taccaci/hazmapper-docs

.PHONY: build
build:
docker build --rm -t $(DOCKER_IMAGE) .

.PHONY: run
run:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs $(DOCKER_IMAGE)

.PHONY: publish
publish:
docker push $(DOCKER_IMAGE)

7 changes: 7 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Running locally
```
make build
make run
```
Then navigate to `localhost:8000`.

32 changes: 32 additions & 0 deletions docs/custom_theme/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<footer>
{%- block next_prev %}
{%- if config.theme.prev_next_buttons_location|lower in ['bottom', 'both']
and page and (page.next_page or page.previous_page) %}
<div class="rst-footer-buttons" role="navigation" aria-label="{% trans %}Footer Navigation{% endtrans %}">
{%- if page.previous_page %}
<a href="{{ page.previous_page.url|url }}" class="btn btn-neutral float-left" title="{{ page.previous_page.title }}"><span class="icon icon-circle-arrow-left"></span> {% trans %}Previous{% endtrans %}</a>
{%- endif %}
{%- if page.next_page %}
<a href="{{ page.next_page.url|url }}" class="btn btn-neutral float-right" title="{{ page.next_page.title }}">{% trans %}Next{% endtrans %} <span class="icon icon-circle-arrow-right"></span></a>
{%- endif %}
</div>
{%- endif %}
{%- endblock %}

<hr/>

<div role="contentinfo">
<!-- Copyright etc -->
{%- if config.copyright %}
<p>{{ config.copyright }}</p>
{%- endif %}
</div>

<div role="contentinfo">
{%- if config.last_updated %}
<p>{{ config.last_updated }}</p>
{%- endif %}
</div>

<!-- {% trans mkdocs_link='<a href="https://www.mkdocs.org/">MkDocs</a>', sphinx_link='<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>', rtd_link='<a href="https://readthedocs.org">Read the Docs</a>' %}Built with %(mkdocs_link)s using a %(sphinx_link)s provided by %(rtd_link)s.{% endtrans %} -->
</footer>
18 changes: 18 additions & 0 deletions docs/docs/accessing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Accessing Hazmapper
To access Hazmapper from Designsafe, the user can first navigate to the top menu bar and find *Workspace* (*Fig 1.1*).

<figure><img src="../img/designsafe-toolbar.png" alt="" style="filter:drop-shadow(2px 2px 3px black); width:100%"><figcaption style="padding-top: 20px" align = "center"><b>Fig 1.1</b></figcaption></figure>

From there, the user can hover on the *Workspace* section and select *Tools & Application* (*Fig 1.2*).

<figure style="display: flex; justify-content: center; align-items: center; flex-direction: column"><img src="../img/designsafe-menu.png" alt="" style="filter:drop-shadow(2px 2px 3px black); width:50%"><figcaption style="padding-top: 20px" align = "center"><b>Fig 1.2</b></figcaption></figure>

From the *Tools & Applications* page, the user can navigate to *Hazmapper (2.0)* (*Fig 1.3*) and then *Launch Hazmapper* (*Fig 1.4*).

<figure><img src="../img/designsafe-tools.png" alt="" style="filter:drop-shadow(2px 2px 3px black); width:100%"><figcaption style="padding-top: 20px" align = "center"><b>Fig 1.3</b></figcaption></figure>

<figure><img src="../img/designsafe-launch.png" alt="" style="filter:drop-shadow(2px 2px 3px black); width:100%"><figcaption style="padding-top: 20px" align = "center"><b>Fig 1.4</b></figcaption></figure>




54 changes: 54 additions & 0 deletions docs/docs/assets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Supported Asset Types<a id='supported-asset-types'></a>

## Map Associated Assets<a id='map-associated-assets'></a>
### Media Assets
Currently, we support the following media assets.
Note that these assets must have geospatial data (lat/lon) for Hazmapper to properly process and handle them.
If the image is problematic, Hazmapper should show an error during the import process.

- Image Assets:
jpeg, jpg, png

- Video Assets:
mp4, mov, mpeg4, webm

- GeoJSON/Shapefiles


### Point Cloud Assets
Point cloud assets are represented as bounding boxes showing their respective geographic locations.

They can be analyzed further through the Potree Viewer, which shows a 3D model of the point cloud.

### Imported Streetview Assets<a id='imported-streetview-assets'></a>
These are imported versions of mapillary streetview assets and bound to the map (different from [non-imported streetview assets](assets.md#non-imported-streetview-assets) shown and accessed through the [Streetview panel](interface.md#streetview-panel)).

Thus, they can be shared among users of the map and with those who have access to the public link map if the map has a public version.

### Tile Layers<a id='supported-tile-formats'></a>
These are tile layers from an external tile server. They are managed through the [Layers panel](interface.md#layers-panel).

Currently, supported formats are:

- TMS
- WMS
- ArcGIS Tile Server
- `.ini` file containing tms/wms information
- Formats accessible through [Quick Map Services](https://qms.nextgis.com/)

**NOTE**: *Tile layers are not regular Feature Assets (i.e. they do not show up in the assets panel), but they are part of the map and can be shared among collaborators and those with access to the public version of the map.*

<!-- TODO -->
<!-- #### Shapefiles -->

<!-- #### Overlays -->

<!-- #### Coming Soon -->
<!-- KML and KMZ (Coming Soon!) -->


## Third-party Assets

### Non-imported Streetview Assets<a id='non-imported-streetview-assets'></a>
These are supported through a Mapillary's tile service. Because these are user-dependent services, they cannot be shared among users of a map. Thus, they must be [imported](interface.md#importing-streetview-assets) as [imported streetview assets](interface.md#imported-streetview-assets)

11 changes: 11 additions & 0 deletions docs/docs/collaboration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Collaboration

## Shared Maps<a id='shared-maps'></a>
As briefly mentioned in the [Maps](maps.md) section, maps that are saved in the DesignSafe project will be shared among the [members of the project](interface.md#members-tab).
These maps will automatically display in the [welcome menu](interface.md#welcome-menu).
Because of the connection, the addition/deletion of members is also managed by each corresponding DesignSafe project.

## Public Maps<a id='public-maps'></a>
Any map can have a public version of the map through the [public tab of the manage panel](interface.md#public-tab). The generated link will be permanent unless the owner of the map makes the map private, or unless the owner of the map deletes the original map.


Binary file added docs/docs/img/assets-import-prompt.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 docs/docs/img/assets-panel-full.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 docs/docs/img/assets-panel-import.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 docs/docs/img/assets-panel.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 docs/docs/img/control-bar.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 docs/docs/img/designsafe-launch.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 docs/docs/img/designsafe-menu.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 docs/docs/img/designsafe-save.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 docs/docs/img/designsafe-toolbar.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 docs/docs/img/designsafe-tools.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 docs/docs/img/filters-panel.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 docs/docs/img/layers-panel-add.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 docs/docs/img/layers-panel-added.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 docs/docs/img/layers-panel-modified.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 docs/docs/img/layers-panel-options.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 docs/docs/img/layers-panel.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 docs/docs/img/layers-prompt-ini.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 docs/docs/img/layers-prompt-manual.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 docs/docs/img/layers-prompt-qms.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 docs/docs/img/layers-prompt-suggestions.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 docs/docs/img/manage-panel-map.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 docs/docs/img/manage-panel-members.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 docs/docs/img/manage-panel-public-private.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 docs/docs/img/manage-panel-public.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 docs/docs/img/manage-panel-save.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 docs/docs/img/manage-public-link.png
Binary file added docs/docs/img/map-creation-1.png
Binary file added docs/docs/img/map-creation-2.png
Binary file added docs/docs/img/map-panel.png
Binary file added docs/docs/img/map-point-cloud-click.png
Binary file added docs/docs/img/map-point-cloud.png
Binary file added docs/docs/img/map-points.png
Binary file added docs/docs/img/map-polygon-info.png
Binary file added docs/docs/img/map-polygon.png
Binary file added docs/docs/img/map-start.png
Binary file added docs/docs/img/map-streetview-asset-empty.png
Binary file added docs/docs/img/map-streetview-asset-viewer.png
Binary file added docs/docs/img/map-streetview-asset.png
Binary file added docs/docs/img/map-streetview-mapillary-asset.png
Binary file added docs/docs/img/menu-buttons.png
Binary file added docs/docs/img/menu-selected.png
Binary file added docs/docs/img/menu.png
Binary file added docs/docs/img/point-clouds-import-prompt.png
Binary file added docs/docs/img/point-clouds-panel-add-asset.png
Binary file added docs/docs/img/point-clouds-panel-add.png
Binary file added docs/docs/img/point-clouds-panel-empty.png
Binary file added docs/docs/img/point-clouds-panel-with-object.png
Binary file added docs/docs/img/point-clouds-panel.png
Binary file added docs/docs/img/point-clouds-potree.png
Binary file added docs/docs/img/point-clouds-prompt.png
Binary file added docs/docs/img/public-map.png
Binary file added docs/docs/img/streetview-association.png
Binary file added docs/docs/img/streetview-imported-assets.png
Binary file added docs/docs/img/streetview-linked-assets.png
Binary file added docs/docs/img/streetview-login-1.png
Binary file added docs/docs/img/streetview-login-mapillary-auth.png
Binary file added docs/docs/img/streetview-login-organization-1.png
Binary file added docs/docs/img/streetview-login-organization.png
Binary file added docs/docs/img/streetview-login-user.png
Binary file added docs/docs/img/streetview-mapillary-user-1.png
Binary file added docs/docs/img/streetview-mapillary-user-2.png
Binary file added docs/docs/img/streetview-panel-1-all.png
Binary file added docs/docs/img/streetview-panel-1-buttons.png
Binary file added docs/docs/img/streetview-panel-1-display.png
Binary file added docs/docs/img/streetview-panel-1-publish.png
Binary file added docs/docs/img/streetview-panel-1.png
Binary file added docs/docs/img/streetview-panel-account.png
Binary file added docs/docs/img/streetview-panel-assets.png
Binary file added docs/docs/img/streetview-panel-filter.png
Binary file added docs/docs/img/streetview-panel-log-progress.png
Binary file added docs/docs/img/streetview-panel-log.png
Binary file added docs/docs/img/streetview-publish-prompt.png
Binary file added docs/docs/img/streetview-sequence-info.png
1 change: 1 addition & 0 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Hazmapper User Guide
Loading