Skip to content

Commit

Permalink
docs: add English documentation for map statuses
Browse files Browse the repository at this point in the history
Refs #2390
  • Loading branch information
davidbgk committed Dec 23, 2024
1 parent ddddf4e commit aedc26f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion docs-users/support/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ With macOS, replace `Ctrl` by `Cmd`.
When the condition match, the associated style will be applied to the corresponding feature.


## How to use variables ? {: #variables}
## How to use variables? {: #variables}

In general, using a variable is as simple as `{myvar}`.

Expand Down Expand Up @@ -92,3 +92,22 @@ Any property of the feature will be available, plus:
- `{zoom}` → the current map zoom
- `{lat}` → the latitude of the current map center
- `{lng}` → the longitude of the current map center


## Which statuses can have a map? {: #map-statuses}

### Access statuses

* **Draft (private)**: You are the only one able to see your map.
* **Everybody (public)**: Everybody can see your map, it is listed on search results and potentially the homepage.
* **Anyone with link**: The map will be accessible only to people knowing the secret link.
* **Editors and team only**: Only you and your team will be able to see the map.

Providing a link of a map to unallowed people will display a `403 Forbidden` error.

### Edit statuses

* **Owner only**: only the owner of the map can edit it.
* **Editors and team only**: the owner, editors and members of the linked team will be able to edit the map.
* **Only editable with secret edit link**: Only people with a secret link will be able to edit the map.
* **Everyone**: Everybody can edit the map without even being logged in.
2 changes: 1 addition & 1 deletion umap/templates/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block content %}
<div class="content-40x">
<h1>{{ exception }}</h1>
<p>{% blocktrans %}<a href="">Find out here</a> how to manage map permissions.{% endblocktrans %}</p>
<p>{% blocktrans %}<a href="https://discover.umap-project.org/support/faq/#map-statuses">Find out here</a> how to manage map permissions.{% endblocktrans %}</p>
<p><a href="{% url 'home' %}">{% trans "Go back home" %}</a></p>
</div>
{% endblock %}

0 comments on commit aedc26f

Please sign in to comment.