Mapstore lets you enrich the map with special features which expose additional information, mark particular position on the map and so on. Those features make up the so called Annotations layers.
Starting from a new map or an already existing one, the editor can access the Annotations button from the TOC panel on the top-left corner of the map viewer.
The annotation panel will open:
Add new Annotation
To begin, from the annotation panel, the editor can open the new annotation panel by selecting the button.
From here the editor can insert a Title (required), a Description (optional) and choose between five different types of Geometries:
After selecting a geometry type, the editor can:
- Draw a Geometry on the map.
- Enter the vertices of the geometry or modify the existing ones through the Coordinates editor using
- For Line and Polygon, add new vertices using the button and typing the
If the vertices are invalid, they are notified with a red exclamation point. In this case, it is not possible to add new geometry or save the annotation until a valid value is entered. It is still possible to interact with the geometries already present in the annotation, by zooming in on it or deleting it, as follows:
- Customize the Style of the annotation, as explained in the following paragraph.
Once the geometry has been saved through the Save button, for each geometry created, the editor can perform the following operations:
Zoom to the geometry annotation on map through the button
Delete the geometry annotation through the button
Once all the Geometries have been created, the editor can save the annotation through the Save button that will be visible in the annotation list:
Then, if not present, a new Annotations layer will be created and added to the TOC
Based on which type of annotation was chosen, MapStore allows you to customize the annotation style through a powerful editor. It is accessible from the Style tab of the annotation viewer. During the style editing a preview placed on top of the styler form shows a preview of the edited style.
MapStore provides two types of Marker annotations, so you have to choose what type do you prefer using the Type combo box (Marker is the default):
- Marker types can be customized through the following editor:
Icon that best fit your needs.
- Symbol types can have different
Fill colorwith a customizable
Opacitylevel (%), a
Strokeof different types (continuous, dashed, etc) and customizable
Width. Only few symbols are provided by default in MapStore but a custom list of symbols can be configured.
Polyline annotations can be styled using the following editor:
You can customize the
Stroke in order to consider the
Line/Dash type (continuous, dashed, dotted, etc),
Width. You can also have styled Start/End Points: enable the StartPoint Style/EndPoint Style panel using the corresponding check box, the editor will be the same used for Marker/Symbol annotations.
With polygonal annotations changing the style means choose the
Shape and the size the
Size of the polygon, its
Fill color (with custom
Opacity), the type of the
Stroke (continuous, dashed, dotted, etc), its
See the example below to better understand these options.
Text annotations are a bit different from the geometric ones. They display a formatted text on a given point of the map.
The style editor allows you to customize the text
You can also choose the text
Fill color and its
Stroke type, its
Width. Take a look at the following example.
Circle annotations can have custom
Fill color (with custom
Stroke type (continuous, dashed, dotted, etc) with custom
Width. The Center can be also customized through the same editor described for Marker annotations.
See the example below.
Click on to apply the style.
Once annotations are added to the TOC, the editor can Manage them by clicking to button from the TOC toolbar and the Main Annotations panel will be open.
From it, the editor is allowed to:
Download a file with all the existing annotations by clicking on button
Upload annotations from a valid
jsonfile by clicking on button
Zoom an annotation on map by clicking on button
Show/Hide an annotation on the map by clicking on button
From the Main Annotations Panel, by selecting an annotation from the list, the editor is returned to the Annotation Viewer where the annotation can be edited.
In particular, the editor can:
- Change the Coordinates and the Style by clicking a geometry from list of geometries.
- Download the annotation in
jsonformat and reused in other maps by clicking on button