Skip to content

Commit

Permalink
Add documentation on the upload modal
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Nov 2, 2024
1 parent 604dbce commit eb0dc03
Show file tree
Hide file tree
Showing 11 changed files with 84 additions and 14 deletions.
2 changes: 1 addition & 1 deletion documentation/docs/help/en/Custom imagery.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* imagery layers in [MBTiles](https://github.com/mapbox/mbtiles-spec) and [PMtiles V3](https://github.com/protomaps/PMTiles/blob/main/spec/v3/spec.md) format on device
* WMS servers supporting images in EPSG:3857 (including alternative names like EPSG:900913 etc) and EPSG:4326 projections

Besides manually adding layers you can add WMS layers by querying a WMS server for a list of supported layers see [layer control](Main%20map%20display.md#Layer%20control), or by querying the Open Aerial Map (OAM) service.
Besides manually adding layers you can add WMS layers by querying a WMS server for a list of supported layers see [layer control](Main%20map%20display.md#layer_control), or by querying the Open Aerial Map (OAM) service.

__NOTE__ even though the URLs may look similar to those for a WMS layer, we do not support requesting data from ESRI MapServer with their native protocol.

Expand Down
4 changes: 2 additions & 2 deletions documentation/docs/help/en/Introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ When the red lock is displayed all non-editing actions are available. Additional

Select the same button or menu item you did for the download and now select "Upload data to OSM server".

Vespucci supports OAuth authorization and the classical username and password method. OAuth is preferable since it avoids sending passwords in the clear.
Vespucci supports OAuth 2, OAuth 1.0a authorization and the classical username and password method. Since July 1st 2024 the standard OpenStreetMap API only supports OAuth 2 and other methods are only available on private installations of the API or other projects that have repurposed OSM software.

New Vespucci installs will have OAuth enabled by default. On your first attempt to upload modified data, a page from the OSM website loads. After you have logged on (over an encrypted connection) you will be asked to authorize Vespucci to edit using your account. If you want to or need to authorize the OAuth access to your account before editing there is a corresponding item in the "Tools" menu.
Authorizing Vespucci to access your account on your behalf requires you to one time login with your display name and password. If your Vespucci install isn't authorized when you attempt to upload modified data you will be asked to login to the OSM website (over an encrypted connection). After you have logged on you will be asked to authorize Vespucci to edit using your account. If you want to or need to authorize the OAuth access to your account before editing there is a corresponding item in the "Tools" menu.

If you want to save your work and do not have Internet access, you can save to a JOSM compatible .osm file and either upload later with Vespucci or with JOSM.

Expand Down
10 changes: 8 additions & 2 deletions documentation/docs/help/en/Main map display.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ _shop_, _amenity_, _leisure_, _tourism_, _craft_, _office_ or _emergency_. If an

Tapping an entry in the display will center the map on the object and select it, tapping it a second time (just as on the map display) will start the property editor, in _Tag only_ mode the property editor will start directly as expected. The POI entries are highlighted with the same validation indication as map icons, see [validation styling](https://github.com/MarcusWolschon/osmeditor4android/blob/master/src/main/assets/styles/Color-round.xml#L39).

<a id="layer_control"></a>

### Layer control

Vespucci currently supports multiple tiled background imagery layers, multiple tiled overlay layers (both raster and Mapbox vector tiles), a grid/scale layer, a task layer, a photo layer, multiple GeoJSON layers, multiple GPX/GPS layers and, naturally, an OSM data layer. Tapping the layer control (upper right corner) will display the layer dialog).
Expand Down Expand Up @@ -85,7 +87,7 @@ The layer dialog supports the following actions on the layer entries:
* __Configure...__ Change layer settings
* __Discard__ Turn this layer off. For the task layer this will free resources if the app is exited and re-started.
* Data layer:
* __Configure...__ Select the API instance, configure the URLs including read-only sources and authentication method. Basic Authentication, OAuth 1.0a and OAuth 2 are supported, however the API instance on openstreetmap.org only supports OAuth 2 since June 2024.
* __Configure...__ Select the API instance, configure the URLs including read-only sources and authentication method. Basic Authentication, OAuth 1.0a and OAuth 2 are supported, however the API instance on openstreetmap.org only supports OAuth 2 since July 2024.
* Data and Tasks layers:
* __Info__ Display some information on the contents.
* __Prune__ remove downloaded data from storage that is outside of the current screen and unmodified.
Expand Down Expand Up @@ -169,6 +171,8 @@ To reposition or remove the "on-map" GPS button use the "Follow position button
* **Pause GPX track** - pause recording the current GPX track
* **Clear GPX track** - clear the current GPX track

<a id="transfer"></a>

### ![Transfer](../images/menu_transfer.png) Transfer

Select either the transfer icon ![Transfer](../images/menu_transfer.png) or the "Transfer" menu item. This will display seven or eight options:
Expand All @@ -183,7 +187,7 @@ Select either the transfer icon ![Transfer](../images/menu_transfer.png) or the
* **Pan and zoom auto download** - download the area shown in the current screen automatically *(requires network connectivity)*
* **Update data** - re-download data for all areas and update what is in memory *(requires network connectivity)*
* **Clear data** - remove any OSM data in memory
* **File...** - saving and loading OSM data to/from on device files.
* **File...** - saving and loading OSM data to/from on device files. <a id="file"></a>
* **Export changes to OSC file** - write a ".osc" format file containing the current edits
* **Apply changes from OSC file** - read a ".osc" format file and apply its contents
* **Save to JOSM file...** - save as a JOSM compatible XML format file
Expand All @@ -206,6 +210,8 @@ Select either the transfer icon ![Transfer](../images/menu_transfer.png) or the

Show the user preference screens. The settings are split into two sets: the first screen contains the more commonly used preferences, the "Advanced preferences" contains the less used ones.

<a id="tools"></a>

### ![Tools](../images/menu_tools.png) Tools…

* **Apply stored offset to imagery** - apply stored offset, if it exists, for the current background layer
Expand Down
33 changes: 33 additions & 0 deletions documentation/docs/help/en/Uploading your changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Uploading your changes

While Vespucci allows you to save your edits to local files on your device, most use cases center around uploading and publishing your data
to a server providing the [OpenStreetMap editing API](https://wiki.openstreetmap.org/wiki/API_v0.6) and that will be the instance available on [openstreetmap.org](https://openstreetmap.org) if you are contributing to regular OpenStreetMap. The following information only concerns itself with this standard configuration, other APIs and non-standard authorizations methods can be configured in the [data layer configuration](Main%20map%20display.md#layer_control).

## Authorization

To successfully publish your edits you need to authorize your Vespucci on your device to access your account on openstreetmap.prg on your behalf. You can start the authorization process by either selecting the corresponding option in the configuration dialog display on initial install of the app, by starting an upload process or by using the _Authorize OAuth_ option from the [Tools menu](Main%20map%20display.md#tools).

_Note_ that you will need to have your OSM display name and password available and be connected to the Internet to successfully complete authorization, if you don't already have an account you will have to create one outside of Vespucci prior to starting authorization. While it technically would be possible to create the account from inside the app, doing so invokes additional requirements from google that we cannot fulfill for legal reasons.

During the authorization process you will be connected to openstreetmap.org and asked to login to your account, you then need to confirm the authorization and will be returned back to Vespuccis map map display.

If you have pending edits and for whatever reason cannot authorize, Vespucci reliably saves your edits on your device until you upload them or explicitly delete them. If you want to be extra safe you can [save them to a local file](Main%20map%20display.md#file) in OCS or (J)OSM format that you can read with Vespucci or import in to JOSM.

## Uploading

To upload your edits you can either select _Upload data to OSM server_ from the [Transfer menu](Main%20map%20display.md#trasfer), or select _Upload element_ from the overflow menu in any of the element selection modes or multi-select. The later will only upload the selected elements.

The _Upload changes_ dialog display two tabs _Changes_ and _Properties_. The _Changes_ tab displays a list of all the OSM elements that will be affected by the upload, the type of change and an information button that allows you to view further information on the element and jump to it to make corrections. The _Properties_ tab allows you to set a _comment_
for this upload and document that _source_ that was used to create the changes (for example _survey_ if you were personally present at the location in question). Prior entries in both
fields are retained and can be used when appropriate.

It is considered best practice to provide meaningful information for other mappers in these fields. However Vespucci will automatically include a summary of your changes (starting with version 20.2) and a list of all imagery layers used for the current set of changes. If you leave the comment field empty it will include text pointing to the automatically generated summary.

## Upload options

- _Close changeset_ close the changeset after the upload. If this is unchecked, changesets will be left open and further uploads will be appended. Note that the changeset may be automatically closed by the API, this is detected on upload and a new changeset will be created. The default setting for this is enabled.
- _Close open changeset_ only displayed if an open changeset has been detected (that is _Close changeset_ must be disabled). Close the current changeset after upload. This setting only applies to the current upload. The default setting for this is disabled.
- _Request review_ add a tag asking for a review of the changes. Note this does not stop your changes from being immediately available after you have completed the upload, it is
simply an indication to other contributors and they might or might not actually review your edits. The default setting for this is disabled.
- _Warn if comment is empty_ As described above it is best practice to add a meaningful comment to your upload, if you don't want to do this, unchecking this option
will disable warnings that the comment is empty and disable the automatic switch to the _Properties_ tab prior to the upload. This is available from version 20.2 on, the default setting for this is enabled.
1 change: 1 addition & 0 deletions documentation/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ nav:
- 'Tag only mode': 'help/en/Tag only mode.md'
- 'Indoor mode': 'help/en/Indoor mode.md'
- 'Address mode': 'help/en/Address mode.md'
- 'Uploading your changes': 'help/en/Uploading your changes.md'
- 'Conflict resolution': 'help/en/Conflict resolution.md'
- 'Presets': 'help/en/Presets.md'
- 'Aligning background imagery': 'help/en/Aligning background imagery.md'
Expand Down
2 changes: 1 addition & 1 deletion src/main/assets/help/en/Custom imagery.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2>Supported layer types</h2>
<li>imagery layers in <a href="https://github.com/mapbox/mbtiles-spec">MBTiles</a> and <a href="https://github.com/protomaps/PMTiles/blob/main/spec/v3/spec.md">PMtiles V3</a> format on device</li>
<li>WMS servers supporting images in EPSG:3857 (including alternative names like EPSG:900913 etc) and EPSG:4326 projections</li>
</ul>
<p>Besides manually adding layers you can add WMS layers by querying a WMS server for a list of supported layers see <a href="Main%20map%20display.md#Layer%20control">layer control</a>, or by querying the Open Aerial Map (OAM) service.</p>
<p>Besides manually adding layers you can add WMS layers by querying a WMS server for a list of supported layers see <a href="Main%20map%20display.md#layer_control">layer control</a>, or by querying the Open Aerial Map (OAM) service.</p>
<p><strong>NOTE</strong> even though the URLs may look similar to those for a WMS layer, we do not support requesting data from ESRI MapServer with their native protocol.</p>
<h2>Adding a custom imagery source</h2>
<p>To add a custom layer goto the <em>Preferences</em> screen and select <em>Custom imagery</em>, press the <em>+</em> button to add a new layer, or you can select the same from the layer control, &quot;+&quot; menu. In the form you can set</p>
Expand Down
4 changes: 2 additions & 2 deletions src/main/assets/help/en/Introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ <h3>Vespucci in &quot;locked&quot; mode</h3>
<h3>Saving Your Changes</h3>
<p><em>(requires network connectivity)</em></p>
<p>Select the same button or menu item you did for the download and now select &quot;Upload data to OSM server&quot;.</p>
<p>Vespucci supports OAuth authorization and the classical username and password method. OAuth is preferable since it avoids sending passwords in the clear.</p>
<p>New Vespucci installs will have OAuth enabled by default. On your first attempt to upload modified data, a page from the OSM website loads. After you have logged on (over an encrypted connection) you will be asked to authorize Vespucci to edit using your account. If you want to or need to authorize the OAuth access to your account before editing there is a corresponding item in the &quot;Tools&quot; menu.</p>
<p>Vespucci supports OAuth 2, OAuth 1.0a authorization and the classical username and password method. Since July 1st 2024 the standard OpenStreetMap API only supports OAuth 2 and other methods are only available on private installations of the API or other projects that have repurposed OSM software.</p>
<p>Authorizing Vespucci to access your account on your behalf requires you to one time login with your display name and password. If your Vespucci install isn't authorized when you attempt to upload modified data you will be asked to login to the OSM website (over an encrypted connection). After you have logged on you will be asked to authorize Vespucci to edit using your account. If you want to or need to authorize the OAuth access to your account before editing there is a corresponding item in the &quot;Tools&quot; menu.</p>
<p>If you want to save your work and do not have Internet access, you can save to a JOSM compatible .osm file and either upload later with Vespucci or with JOSM.</p>
<h4>Resolving conflicts on uploads</h4>
<p>Vespucci has a simple conflict resolver. However if you suspect that there are major issues with your edits, export your changes to a .osc file (&quot;Export&quot; menu item in the &quot;Transfer&quot; menu) and fix and upload them with JOSM. See the detailed help on <a href="Conflict%20resolution.md">conflict resolution</a>.</p>
Expand Down
7 changes: 5 additions & 2 deletions src/main/assets/help/en/Main map display.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ <h3>Nearby point-of-interest display</h3>
<p>A nearby point-of-interest display can be shown by pulling the handle in the middle and top of the bottom menu bar up.</p>
<p>The view will include a filtered view of all &quot;POI&quot;s displayed on the current map view. If no explicit filter is set this is limited to objects that have a key with one of <em>shop</em>, <em>amenity</em>, <em>leisure</em>, <em>tourism</em>, <em>craft</em>, <em>office</em> or <em>emergency</em>. If an explicit filter is set, that is a tag filter or a preset filter, or a mode (<em>Indoor</em> and <em>C</em>-mode) is selected that sets a filter the display will display objects that are allowed by the filter. For example if <em>Indoor</em> mode is selected, the display will only show POIs on the currently selected level.</p>
<p>Tapping an entry in the display will center the map on the object and select it, tapping it a second time (just as on the map display) will start the property editor, in <em>Tag only</em> mode the property editor will start directly as expected. The POI entries are highlighted with the same validation indication as map icons, see <a href="https://github.com/MarcusWolschon/osmeditor4android/blob/master/src/main/assets/styles/Color-round.xml#L39">validation styling</a>.</p>
<p><a id="layer_control"></a></p>
<h3>Layer control</h3>
<p>Vespucci currently supports multiple tiled background imagery layers, multiple tiled overlay layers (both raster and Mapbox vector tiles), a grid/scale layer, a task layer, a photo layer, multiple GeoJSON layers, multiple GPX/GPS layers and, naturally, an OSM data layer. Tapping the layer control (upper right corner) will display the layer dialog).</p>
<p>The layer dialog supports the following actions on the layer entries:</p>
Expand Down Expand Up @@ -100,7 +101,7 @@ <h3>Layer control</h3>
</li>
<li>Data layer:
<ul>
<li><strong>Configure...</strong> Select the API instance, configure the URLs including read-only sources and authentication method. Basic Authentication, OAuth 1.0a and OAuth 2 are supported, however the API instance on openstreetmap.org only supports OAuth 2 since June 2024.</li>
<li><strong>Configure...</strong> Select the API instance, configure the URLs including read-only sources and authentication method. Basic Authentication, OAuth 1.0a and OAuth 2 are supported, however the API instance on openstreetmap.org only supports OAuth 2 since July 2024.</li>
</ul>
</li>
<li>Data and Tasks layers:
Expand Down Expand Up @@ -181,6 +182,7 @@ <h3><img src="../images/menu_gps.png" alt="Location" /> Location</h3>
<li><strong>Pause GPX track</strong> - pause recording the current GPX track</li>
<li><strong>Clear GPX track</strong> - clear the current GPX track</li>
</ul>
<p><a id="transfer"></a></p>
<h3><img src="../images/menu_transfer.png" alt="Transfer" /> Transfer</h3>
<p>Select either the transfer icon <img src="../images/menu_transfer.png" alt="Transfer" /> or the &quot;Transfer&quot; menu item. This will display seven or eight options:</p>
<ul>
Expand All @@ -194,7 +196,7 @@ <h3><img src="../images/menu_transfer.png" alt="Transfer" /> Transfer</h3>
<li><strong>Pan and zoom auto download</strong> - download the area shown in the current screen automatically <em>(requires network connectivity)</em></li>
<li><strong>Update data</strong> - re-download data for all areas and update what is in memory <em>(requires network connectivity)</em></li>
<li><strong>Clear data</strong> - remove any OSM data in memory</li>
<li><strong>File...</strong> - saving and loading OSM data to/from on device files.
<li><strong>File...</strong> - saving and loading OSM data to/from on device files. <a id="file"></a>
<ul>
<li><strong>Export changes to OSC file</strong> - write a &quot;.osc&quot; format file containing the current edits</li>
<li><strong>Apply changes from OSC file</strong> - read a &quot;.osc&quot; format file and apply its contents</li>
Expand Down Expand Up @@ -224,6 +226,7 @@ <h3><img src="../images/menu_transfer.png" alt="Transfer" /> Transfer</h3>
</ul>
<h3><img src="../images/menu_config.png" alt="Preferences" /> Preferences</h3>
<p>Show the user preference screens. The settings are split into two sets: the first screen contains the more commonly used preferences, the &quot;Advanced preferences&quot; contains the less used ones.</p>
<p><a id="tools"></a></p>
<h3><img src="../images/menu_tools.png" alt="Tools" /> Tools…</h3>
<ul>
<li><strong>Apply stored offset to imagery</strong> - apply stored offset, if it exists, for the current background layer</li>
Expand Down
Loading

0 comments on commit eb0dc03

Please sign in to comment.