# Sketch Map Tool Exercise 4 - Basic Visualization of the results in QGIS & uMAP <a id="sketch-map-tool-exercise-4-basic-visualization-of-the-results-in-qgis-and-umap"></a>

## Characteristics of the exercise <a id="characteristics-of-the-exercise"></a>

Although all data and assumptions are fictional, they were created in the context of a real flood event described in a news article.

:::{card}
__Aim of this exercise:__
^^^
Learn how you can visualize your Sketch Map Tool Outputs in either [QGIS](../Wiki/en_qgis_installation_wiki.md) or [uMAP](https://umap.openstreetmap.fr/en/).

:::

::::{grid} 2
:::{grid-item-card}
__Type of trainings exercise:__
^^^
This exercise can be used in online and presence training and is focused on an hands-on experience with the basic of QGIS or UMAP.

:::

:::{grid-item-card}

#### Focus group (GIS-Knowlege Level) <a id="focus-group-gis-knowlege-level"></a>

- Exercise builds on prior-knowledge of Sketch Map Tool. Make sure [Exercise 1](en_SMT_ex1_.md) has been done before or knowledge on the background on Sketch Map Tool is there.

- GIS Beginners-level: no specific knowledge about QGIS/uMAP required

#### Phase of participatory/community mapping <a id="phase-of-participatorycommunity-mapping"></a>

- Analysing participatory mapping

:::
::::

::::{grid} 2

:::{grid-item-card}


#### Estimated time demand for the exercise. <a id="estimated-time-demand-for-the-exercise"></a>

__Exercise A__: with absolute beginners approx. 2 hours  

__Exercise B__: 30 min

:::

:::{grid-item-card}
#### Available Data <a id="available-data"></a>
- [Introductory slides on the Sketch Map Tool](https://nexus.heigit.org/repository/gis-training-resource-center/mobile_data_collection/sketch_map_tool/PPP/Introduction_Sketch_Map_Tool_21_03.pptx)
- Download the data for this exercise [here](https://nexus.heigit.org/repository/gis-training-resource-center/mobile_data_collection/sketch_map_tool_training/Sketch_Map_Tool_Exercise_4.zip) and unzip the folder
- In the data subfolder (`\data\input`), you will find the data you need to start the exercise (created raw map & pre-marked and photographed map). You will also find de geodata of the results (`\data\output`) and the intermediate result(`\data\temp`).
- [Printable exercise factsheet](https://nexus.heigit.org/repository/gis-training-resource-center/mobile_data_collection/sketch_map_tool_training/Factsheet_printing_%20Ex_4.pdf)

:::
::::

```{Tip}
Decide together with the responsible working group which GIS system is preferred and decide on one. There is no necessity to learn and use both ways. Generally QGIS will give you more opportunities for visualisation and analysis of the results. If a simple and quick visualization without installation of software packages is desired, UMAP might be an easy solution.
```



## Instructions for the trainers <a id="instructions-for-the-trainers"></a>

:::{dropdown} __Trainers Corner__

### Prepare the training <a id="prepare-the-training"></a>
- Online access and devices (PC)
- QGIS installed on the computer
- Take a look and make yourself familiar on the provided material for the exercise and the Sketch Map Tool in general.
- Check out [How to do trainings?](../Trainers_corner/en_how_to_training.md) for some general tips on training conduction 

```{Note}  
- If you like to skip parts of the workflow, you can use the available geodata or intermediate results.
- If you would like to adapt this exercise to your specific use case, create your own case-description. 
```

### Conduct the training: <a id="conduct-the-training"></a>
__Introduction:__ 
- Introduce the idea, the aim and the general workflow of the Sketch Map Tool beforehand 
- Provide access to the needed material 
- check-in if there are questions or problems.

__Wrap up:__ 
- Take some time at the end to wrap up and that several people present their result map
- Discuss Benefits of showing results as a map
- Time to for Open questions.
:::


## Step-by step introduction for participants <a id="step-by-step-introduction-for-participants"></a>


__You can choose whether you want to do the exercise with QGIS (Exercise A) or with uMAP (Exercise B) (or both)__. An internet connection is required to work with uMAP.

::::{grid} 2

:::{grid-item-card}
:link: https://giscience.github.io/gis-training-resource-center/english/content/en/Mobile_Data_collection/en_SMT_ex4_.html#exercise-a-exploration-basic-visualization-of-sketch-map-tool-outputs-in-qgis

__Click here to start exercise A (QGIS)__

:::

:::{grid-item-card}
:link: https://giscience.github.io/gis-training-resource-center/english/content/en/Mobile_Data_collection/en_SMT_ex4_.html#exercise-b-basic-visualization-of-sketch-map-tool-outputs-in-umap

__Click here to start exercise B (uMAP)__

:::
::::


If you experience any problems during your use of the [Sketch Map Tool](https://sketch-map-tool.heigit.org/), please take a look at the [Help page](https://sketch-map-tool.heigit.org/help).



## Exercise A: Exploration & basic visualization of Sketch Map Tool outputs in QGIS <a id="exercise-a-exploration-and-basic-visualization-of-sketch-map-tool-outputs-in-qgis"></a>

::::{dropdown} Exercise A: Exploration & basic visualization of Sketch Map Tool outputs in QGIS
:open:





#### 1. Scenario and Background <a id="1-scenario-and-background"></a>

Map the flood extent, potential emergency shelters and potential hazardous substances in a fictional flooding scenario in Kumasi using Sketch Maps.

#### 1. Data Collection <a id="1-data-collection"></a>

Please download the prepared maps [here](https://nexus.heigit.org/repository/gis-training-resource-center/mobile_data_collection/sketch_map_tool_training/Sketch_Map_Tool_Exercise_4.zip).
Unzip the .zip folder in order and navigate to `data\Input\marked_sketch_maps`.

Optional: You find the empty map in the data input folder: `\Sketch_Map_Tool_Exercise_4\data\input\empty_sketch_map`. Feel free to draw some additional flood maps by printing the template out and drawing on it or by using a simple graphics editor.


#### 2. Geo-referencing and auto-extraction with the Sketch Map tool <a id="2-geo-referencing-and-auto-extraction-with-the-sketch-map-tool"></a>

Upload the marked sketch maps back to the tool’s website ( already marked sketch maps: `\Sketch_Map_Tool_Exercise_4\data\input\marked_sketch_maps`). Head to [sketch-map-tool.heigit.org](https://sketch-map-tool.heigit.org/) and choose 'Digitize your Sketch maps' on the right. Upload all your sketches in .png or .jpg format. You can mark your sketches and simply drag and drop them into the window.

The sketch maps are now being processed and georeferenced with the annotations extracted and vectorized. Download the vectors. You may use the ones we have prepared in the input data folder: `\Sketch_Map_Tool_Exercise_4\data\output\Kumasi_SMT_Ex4.geojson`.

#### 3. Start your QGIS Project <a id="3-start-your-qgis-project"></a>

Open QGIS and navigate to `Project` -> `New` and click on `Save`. Navigate to where you want to save your project, give it a name and click `Save` again. When working in QGIS always remember to save your project every now and then.

Now load your vector file ("Kumasi_SMT_Ex4.geojson") and geotiff files ("Kumasi_sketch-map_Ex4_1.geotiff") by dragging and dropping them into the layer panel.


#### 3. Explore the data <a id="3-explore-the-data"></a>

1. __Orientate in the User Interface__

    If you are a beginner to QGIS get to know the basics of the QGIS User Interface [here](../Wiki/en_qgis_interface_wiki.md).

2. __Add a Basemap__

    For a better overview and orientation it is always helpful to add a basemap to your project and put your situation in a spatial context. Find in the `Browser` Panel `XYZ Tiles`, open the dropdown by clicking on it and select OpenStreetMap or another basemap.

    Click [here](../Wiki/en_qgis_basemaps_wiki.md) for more information on basemaps and how to add them to your project.

3. __Understand the Layer Concept__

    By dragging and dropping your data into QGIS the data will be visualized in the map canvas and its description will be visible in the `Layers` Panel. You should now have 7 layers in your panel: your geojson output (vector), your 5 geotiffs (Raster) and the OpenStreetMap basemap. In order to see all the information you have to bing them into order. It is important to understand the [Layer Concept](../Wiki/en_qgis_layer_concept_wiki.md).
    



    ```{figure} ../../../fig/en_3.34_SMT_Ex4_vector_raster.png
    ---
    height: 500px
    name: SMT EX4 Layer Interface QGIS
    align: center
    ---
    The QGIS interface with the data loaded into the QGIS-project
    ```

4. __Explore the data__

    __Vector data__

    In order to explore your detected markings, right-click on your vector file and navigate to `Open Attribute Table` and click on it. The table has one entry (row) for each detected marking. In our example, 13 markings where detected. The column "color" describes the color which has been detected for each marking and the column "name" contains the name of your uploaded Sketch Map.  

    ```{Note}
    When you upload several marked Sketch Maps simultaneously, you will get one vector output containing all the markings of all Sketch Maps. In this case the column "name" helps you to track on which map each marking was detected.
    ```

    ```{figure} ../../../fig/en_3.34_SMT_Ex4_attribute_table.png
    ---
    height: 400px
    name: SMT EX4 vector output attribute table
    align: center
    ---
    Attribute table of the vector file output of Sketch Map Tool
    ```

    __GeoTIFF__

    The Raster file as result of the Sketch Map Tool is the photo you took of your Sketch Map, but georeferenced. You see if the georeferencing is correct when it matches the base map. Furthermore your `.tiff`-file is helpful to compare and review the marking detection (vector file). In this case your tiff is your "ground truth" and you can check if the marking detection by the tool is true or if there are pieces missing or wrongly detected. 

    Question:
    Do your different output match or do you find any errors?

    -> Yes, you are right. Unfortunately, one marked polygon did not get detected. This can happen since markings are being detected by machine learning algorithms that can encounter problems in some situations. 


### 5. Correct or enhance your data <a id="5-correct-or-enhance-your-data"></a>



__1. Digitization: Add a marking manually__

So what can we do if a marking has not been detected? We can add missing markings manually by tracking the drawing on the geotiff file. This process is also called [digitisation](/content/Module_3/en_qgis_digitalisation.md). 

Right-click on your vector file and click on `Toggle Editing`. The `Digitizing Toolbox` in your menu bar on top of your QGIS will be activated:

```{figure} ../../../fig/en_3.34_SMT_Ex4_digit_polygon.png
---
width: 700px
name: digitizing toolbox
align: center
---
Digitsing Toolbox in QGIS 3.36
```

Click on `Add Feature: Capture Polygon`![](../../../fig/mActionCapturePolygon.png). You will note that your mouse pointer now changed its symbol into a target. This means you can now start tracing the missing polygon my left-clicking. You finish your polygon by a right-click and you will be asked to enter the descriptions. Enter the information and click ok.


```{figure} ../../../fig/en_3.34_SMT_Ex4_digitized_polygon.png
---
height: 400px
name: SMT Attribute table
align: center
---
Digitizing 
```

In the map canvas you can already see your hand-drawn polygon. In order to save it, you should now right-click on your vector layer and turn off the Editing mode by clicking on `Toggle Editing` -> `Save`. Check your result by looking at the Attribute Table again: You now have 14 features in your table.



```{figure} ../../../fig/en_3.34_SMT_Ex4_attribute_table_digit_polygon.png
---
height: 400px
name: SMT Attribute table with added polygon
align: center
---
Attribute Table with added polygon 
```

The whole process of Digitization is explained in detail [here](https://giscience.github.io/gis-training-resource-center/english/content/en/Module_3/en_qgis_digitalisation.html?highlight=digitize#digitalisation).


__2. Add a property/column to the Attribute Table__

Normally, you know the meaning of the markings in your Sketch Map. We will now learn how to add them to your vector layer. In our example, we assume we know that blue were used to mark flood extents, red was used to mark potential hazardous substances and green to mark potential emergency shelters. We want to replicate this:
- Right-click on your vector layer, navigate to `Open Attribute Table` and click on it.
- In the upper left corner click on ![](../../../fig/mActionToggleEditing.png) to toggle editing mode
- click on ![](../../../fig/mActionNewAttribute.png) to add a new field to the data source
- As `Name` enter "Description", choose "Text (String)" `Type`, as `Length` enter "20" and click `OK`

```{figure} ../../../fig/en_3.34_SMT_Ex4_add_field.png
---
height: 400px
name: SMT Attribute table add text field
align: center
---
Adding a new field to the attribute table
```

- by clicking on each field you can now enter the respective descriptions to the colors:

```{figure} ../../../fig/en_3.34_SMT_Ex4_descritption_field.png
---
height: 400px
name: SMT attribute add field description
align: center
---
Adding descriptions to the fields
```

- Make sure that you don't have any typos in the description
- Save by clicking on ![](../../../fig/mActionToggleEditing.png) once more -> `Save`


### 6. Visualize your data <a id="6-visualize-your-data"></a>

Now we want to visualize our results and generate a printable map so the results can be shown to third parties in a clear and comprehensible manner. We can now delete the geotiff layer by right-click -> `Remove Layer` since we will be working with the vector marking detections.

__1. Customize Symbology__

We can customize the symbology of our vector layer by right-clicking on it in the `Layers` Panel -> `Properties` -> `Symbology`.

First of all we want to assign different colors for different features:

In the topmost drop-down menu, choose `Categorized`. As Value choose "Description" and then click on the bottom left on `Classify`. We are now able to choose colors depending on the value in the column "Description". By double-clicking on the colored box in your window next to your value and Legend descriptions the `Symbol Selector` will open in a new window where you can choose the color of your preference by clicking on the drop-down arrow next to "Color".
Right below you can also adjust the opacity level of your feature.


```{figure} ../../../fig/en_3.34_SMT_Ex4_symbology.png
---
height: 400px
name: SMT adjusting symbology
align: center
---
Adjusting the symbology with the [symbology tab](../Module_4/en_qgis_map_design_I.md#styling-panel)
```

In the `Symbol Selector`, you can also click on `Simple line` in the upper window and change the `Symbol Layer Type`. In this example, we would like to symbolize the potential hazardous substances with red outlines, so we choose "Outline: Simple Line". Just below we can adjust the color, stroke width, stroke line type, etc. You can find more information about the visualization of vector data [here](../Wiki/en_qgis_visualisation_wiki.md).


```{figure} ../../../fig/en_3.34_SMT_Ex4_line_symbology.png
---
height: 400px
name: SMT symbol selector
align: center
---
Using the symbol selector
```


__2. Make a printable Map__


1. Open a new print layout by clicking on `Project` -> `New Print Layout` -> enter the name of your current Project e.g "Kumasi Flooding Sketch Map Tool". A new window will open with a blank canvas and a different set of tools. This is the __print layout designer__.

- Insert a new map by clicking on the ![New Map Icon](../../../fig/30.30.2_print_layout_insert_map_icon.png) ("Add Map") on the left toolbar, and drawing a rectangle on the print canvas. [Video](https://giscience.github.io/gis-training-resource-center/english/content/en/Module_4/en_qgis_map_design_2.html#adding-a-new-map)
2. Move and position the map so that the entire country is visible at a reasonable scale. 
4. Let's add a title: 
    - Click on the ![Add text icon](../../../fig/30.30.2_print_layout_add_text.png) (`Add text`)
    - Drag a rectangle on the canvas
    - In the items properties window on the right, you will find a text box with the text "Lorem ipsum". Here you can enter your map title (e.g.: Flood Extent, Potential Emergency Shelters and Potential Hazardous Substances in Kumasi, Ghana (fictional)).
    - Adjust the font size: Click on the __Font__ dropdown menu and adjust the font size for a title (25p or more). Adjust the text box if necessary.
5. Let's add a legend:
    - Click on the ![Add legend icon](../../../fig/30.30.2_print_layout_add_legend.png) (`Add legend`). 
    - Navigate to the __Item Properties__ panel on the right. 
    - Scroll down a bit and check turn off `Auto Update` by unchecking the check box. Now you can freely edit every item on the legend
    - Adjust the legend by removing unnecessary layers (which are not seen on the map) and rename the layer in the legend by clicking on ![Edit Icon](../../../fig/30.30.2_print_layout_legend_edit.png) (`Edit selected item properties`) below the legend entries.
6. Now, let's add a scale bar:
    - Click on the ![Add Scale bar icon](../../../fig/30.30.2_print_layout_add_scale_bar.png) (`Add Scale bar`)
    - Draw a rectangle on the map and position the scale bar on the edge of the map. You can adjust the scale bar units (meters, kilometers, ...), the fixed segment width (50 km, 75 km, 100 km, ...) and the number of segments (to the right).
7. Let's add North arrow:
    - Click on the ![Add North Arrow Icon](../../../fig/30.30.2_print_layout_add_orientation.png) (`Add North Arrow`). 
    - Drag a rectangle on the print layout. Adjust the size and location of the north arrow. You can also change the icon in the item properties.
8. Add a text box with additional information, sources, the author (you), and date of creation.
9. When you are happy with your print layout. You can export it as a PDF. You can save it in the project folder under "results".
10. Once you have exported the map. Look at the PDF and make sure it looks how you intended. Some things might look different in the PDF. If it does not look correct you may need to make some adjustments in the symbology.

The finished map could look something like this:

```{figure} ../../fig/en_3.34_SMT_Ex4_map_final.png
---
width: 700px
name: Digitized SMT Map Example
---
Example of a finished map using the Sketch Map Tool
```



You can find Videos along with all the necessary information about making printable maps and the print layout composer in the [Print Layout Chapter](../Module_4/en_qgis_map_design_2.md#understanding-the-print-layout-composer), the [Symbology Chapter](../Module_4/en_qgis_map_design_I.md), and in the [Map Making Wiki](../Wiki/en_qgis_map_making_wiki.md)
 
::::



## Exercise B: Basic visualization of Sketch Map Tool outputs in uMap <a id="exercise-b-basic-visualization-of-sketch-map-tool-outputs-in-umap"></a>

::::{dropdown} Exercise B: Basic visualization of Sketch Map Tool outputs in uMap
:open:

### 1. Background Information on UMAP <a id="1-background-information-on-umap"></a>

uMap is an online platform that allows users to create custom maps with OpenStreetMap (OSM) as basemap layer. Neither installation nor registration is necessary. This enables users to quickly gain an intuitive overview of their data.
Users can customize the appearance of the map and share it with others. It's particularly useful for collaborative mapping projects, quick visualization of geographic data, and creating custom maps tailored to specific needs.

| Feature| QGIS | UMAP |
| :-------------------- | :----------------- | :---------- |
| Type | Desktop Geographic Information System (GIS) software | Online mapping platform|
| Accessibility| Requires installation on a desktop computer | Accessible online via web browser |
| Purpose |Comprehensive GIS software for spatial data analysis | Interactive mapping tool for creating custom maps |
| Data Import | Supports various data formats (shapefiles, geodatabases, etc.) | Vector data only, user input via map canvas, some geo formats (geojson, .gpx, .kml, .osm) |
| Data Visualization and Analysis|Offers extensive visualization and analysis capabilities, Provides a wide range of spatial analysis tools  | Focuses on creating interactive maps with custom elements; No analysis tools |
| Output | Printable map with all necessary map elements | URL so share map online |


```{Hint}
The Geojson output of the Sketch Map Tool cannot be opened and inspected with commonly available tools. If you use the Sketch Map Tool and do not have QGIS installed but quickly want to examine your result, UMAP is a simple and quick way to do so. But be aware as it is an online platform, an internet connection is required.
```

#### 2. Data Collection <a id="2-data-collection"></a>

Please download the prepared maps [here](https://nexus.heigit.org/repository/gis-training-resource-center/mobile_data_collection/sketch_map_tool_training/Sketch_Map_Tool_Exercise_4.zip).
Unzip the .zip folder in order to be able to access the geotiff output.

Optional: You find the empty map in the data input folder: `\Sketch_Map_Tool_Exercise_4\data\input\empty_sketch_map`. Feel free to draw some additional flood maps by printing the template out and drawing on it or by using a simple graphics editor.


#### 3. Georeferencing and auto-extraction with the Sketch Map tool <a id="3-georeferencing-and-auto-extraction-with-the-sketch-map-tool"></a>

Upload the marked sketch maps back to the tool’s website (already marked sketch maps:  `\Sketch_Map_Tool_Exercise_4\data\input\marked_sketch_maps`). Head to [sketch-map-tool.heigit.org](https://sketch-map-tool.heigit.org/) and choose 'Digitize your Sketch maps' on the right. Upload all your sketches in .png or .jpg format. You can mark your sketches and simply drag and drop them into the window.

The sketch maps are now being processed and georeferenced with the annotations extracted and vectorized. Download the vectors. You may use the ones we have prepared in the output data folder: `\Sketch_Map_Tool_Exercise_4\output\Kumasi_SMT_Ex4.geojson`.

### 4. Load your data <a id="4-load-your-data"></a>

1. Open the Browser of your choice and navigate to the [uMap Website](https://umap.openstreetmap.fr/en/) and click on the large green button `Create a Map`. Your Map Canvas and User interface will open.

2. Right above your map canvas, you can click in "Untitled Map" in order to edit your map properties. Give your Map a title and a short description.


```{figure} ../../../fig/en_SMT_ex4_UMAP_map_name.png
---
width: 400px
name: SMT Ex4B uMap properties
align: center
---
Editing the map properties
```

3. You can load your data into the map frame by clicking on the arrow button. The `Import data` window will open on the right hand side. Click on `Select file` and navigate to your vector output from the Sketch Map Tool ("Kumasi_SMT_Ex4.geojson") and click on `Open`. uMap will automatically detect that your vector is a geojason format. Click on `Import` to load your data to your map canvas.

```{figure} ../../../fig/en_SMT_ex4_UMAP_Data_Loaded.png
---
height: 400px
name: UMAP Data Loaded
align: center
---
uMap interface with the Sketch Map vectors
```


4. Click in the upper right corner on `Save`. If you are not logged in you will be provided with an URL where you can access and your map any time later on. Save it somewhere or send it to your email. 


```{Attention}
Without an account, the maps you create are stored temporarily in your browser's local storage or session storage. This means that if you clear your browser's cache or use a different device or browser, you may lose access to the maps you created.
```


```{Note}
Generally, you can create maps, edit them, and share them with others on uMap without signing up for an account. However, if you decide to use uMAP frequently it might be beneficial to create an account. Signing up ensures persistent access to your created maps allowing to manage and edit maps over time. Also, some customization options or advanced features may only be available to registered users
```


### 5. Customize your map <a id="5-customize-your-map"></a>

Now that you imported your own data, you are ready to customize your own map in order to show your results to others in a vivid manner.
In the toolbar on the right hand side you have various options to do so.

__1. Change the background__

Click on `Change tilelayers`![](../../../fig/en_SMT_ex4_UMAP_basemap.PNG) to choose another background map.

__2. Explore and Manage Data Layers__

Click on `Manage Layers`![](../../../fig/en_SMT_ex4_UMAP_layers.PNG) to open your layers panel. In this windows you will see all the layers in your project (in our case it is just one) and you are able to add additional information layers. The small symbols on the left hand side of you layer give you the option to hide, zoom to or delete your layer.


```{figure} ../../../fig/en_SMT_ex4_UMAP_Managelayers.png
---
height: 150px
name: Umap Manage layer Interface
align: center
---
Manage Layers Interface in uMap
```

You can click on the table button ![](../../../fig/en_SMT_ex4_UMAP_Table.PNG) in order to view or edit properties in the attribute table of your layer. The table has one entry (row) for each detected marking. In our example 13 markings where detected. The column "color" describes the color which has been detected for each marking and the column "name" contains the name of your uploaded Sketch Map.

```{Note}
Sketch Map Vector Output always have this same attribute table structure.
```


```{figure} ../../../fig/en_SMT_ex4_UMAP_AttributeTable.png
---
width: 1000px
name: SMT Ex4 Attribute Table
---
Attribute Table in uMap
```

__2. Customize your visualization__

Now we want to display the potential emergency shelters in green, potential hazardous substances in red and the flood extents in blue. For this we first have to create a group for each:

- Click on `Manage Layers`![](../../../fig/en_SMT_ex4_UMAP_layers.PNG) `Add Layers`
- We name the first new layer "Potential Emergency Shelters" and choose as `Type of layer` -> `Clustered` 
When you click on  `Close` and then on `Manage Layers`![](../../../fig/en_SMT_ex4_UMAP_layers.PNG) again, you will see you recently create layer "Potential Emergency Shelters"


```{figure} ../../../fig/en_SMT_ex4_UMAP_Taddlayer.png
---
height: 450px
name: UMAP Add Layer
align: center
---
Adding clustered layer
```

- repeat the process creating clustered layers for "Flood Extent" and "Potential Hazardous Substances"

```{figure} ../../../fig/en_SMT_ex4_UMAP_4Layers.png
---
width: 400px
name: SMT EX4 UMAP Layers
align: center
---
The layer manager should look like this
```


- In the map canvas, you can now click on one of the polygons and toggle editing modus by clicking on the small pen button that appears.

```{figure} ../../../fig/en_SMT_ex4_UMAP_Toggle_editing.png
---
height: 300px
name: Toggle Editing
align: center
---
Toggle editing
```

- The `Feature properties` window will open on the right hand side. On the very top, you can now choose the layer group you want to assign this feature to. Choose a meaningful name. For the flood polygons, we can simply choose as name "Flood Extent" and for the potential emergency shelters polygons you can either choose "Potential Emergency Shelter" or "school" or "hotel" as just an example. Click on `Close`. If you click on a flood extent polygon and toggle editing you assign it to you layer "Flood Extent" and if you click on a potential emergency shelter polygon and toggle editing you assign it to you layer "Potential Emergency Shelters". Assign now all 13 polygons to the respective layer.


```{figure} ../../../fig/en_SMT_ex4_UMAP_assign_layer.png
---
width: 450px
name: UMAP assign features to layer
align: center
---
Assign features to layers
```

- Now click on `Manage Layers`![](../../../fig/en_SMT_ex4_UMAP_layers.PNG) again and `Edit`![](../../../fig/en_SMT_ex4_UMAP_Edit.PNG) one of your new layers (e.g. "Flood Extent"). Click on `Shape Properties` to change the color of the layer. You can explore other option you have for styling your features. You finish by clicking on `Close` in the upper right corner.
- In `Interaction Options` the behavior of the labeling can be determined. For example, you can choose `Popup` as `Popup shape` and set `Display label` either `on hover` in order to only display the features descriptions when you scroll with the mouse over the respective feature on the map, or on `always`, in order to always see the respective description.


```{figure} ../../../fig/en_SMT_ex4_UMAP_Shape_Properties.png
---
width: 300px
name: UMAP Shape properties
align: center
---
Shape properties interface in UMAP
```

### 6. Save and publish your map <a id="6-save-and-publish-your-map"></a>

Your map could now look like this:

```{figure} ../../../fig/en_SMT_ex4_UMAP_final.png
---
height: 400px
name: SMT EX4 FINAL Map UMAP
align: center
---
Finalized Map in UMAP
```

If you have displayed everything you want and you have zoomed to the map extent of your choice, you can click on `Save this center and zoom`![](../../../fig/en_SMT_ex4_UMAP_save.PNG) in order to save your map section. Next, click on `Save` in the upper right corner.


In order to publish the map, you can click on `Share and download`![](../../../fig/en_SMT_ex4_UMAP_share.PNG) on the menu bar on the left side.

```{figure} ../../../fig/en_SMT_ex4_UMAP_share_draft.png
---
height: 400px
name: UMAP Share
align: center
---
Share and download interface in uMap
```

On the top beneath `Link to view the map`, you receive a URL that you can share with other people so they can view the map you have created.
You also have the option to download your layers as data files, a full backup of the project or to copy an iframe link so you can embed your map on your own website.

```{Hint}
If you want to use your map as a simple figure to show offline, you can simply take a screenshot or use the Snipping Tool.
```

::::
