-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Report types | ||
============ | ||
|
||
.. toctree:: | ||
|
||
report-types/map |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
Map | ||
=== | ||
|
||
The *map* report type allows to display `GeoJSON <https://geojson.org/>`_ objects on a map. | ||
|
||
.. figure:: image/map-result.png | ||
|
||
Example of a map report | ||
|
||
To use it, select the map marker icon. | ||
|
||
.. figure:: image/map-empty.png | ||
|
||
Screenshot of an empty map report | ||
|
||
There are six different places where you can put your columns: | ||
|
||
GeoJSON column | ||
This is the most important one. Place the column containing GeoJSON data here. | ||
|
||
If your database does not contain GeoJSON data, you can probably convert | ||
other formats to GeoJSON using SQL functions. For instance, MySQL has | ||
`ST_AsGeoJSON <https://dev.mysql.com/doc/refman/5.7/en/spatial-geojson-functions.html#function_st-asgeojson>`_ | ||
(you may need to modify the layer to use those functions). | ||
|
||
Label column | ||
If you drop a column here, its text content will be shown next to the map marker. | ||
|
||
Value column | ||
If you drop a column here, its numeric content will be used to calculate a | ||
color intensity. Low values get low intensity and high values get high | ||
intensity. | ||
|
||
Group column | ||
If you drop a column here, its content will be used to group markers | ||
together. If two rows have the same value in this column, they belong to the | ||
same group. Each group is then assigned a unique color hue for the map | ||
marker. | ||
|
||
Type column | ||
If you drop a column here, its content will be used to assign a type to a | ||
row. Each type can then be associated with a specific icon to change the map | ||
marker appearance. | ||
|
||
Filters | ||
These are regular filters and work the same as for other report types. | ||
|
||
|
||
Report settings | ||
--------------- | ||
|
||
.. figure:: image/map-report-settings.png | ||
|
||
Screenshot of the map report settings modal window | ||
|
||
In the report settings you can change the map layer. It's the map that will be | ||
drawn under the GeoJSON objects. You can find different map layers on `the | ||
OpenStreetMap Wiki <https://wiki.openstreetmap.org/wiki/Tile_servers>`_. | ||
|
||
|
||
Configure icons | ||
--------------- | ||
|
||
If you use a *type* column, you can associate an icon with each type. To do | ||
that, click on the gear wheel icon next to the type column. | ||
|
||
.. figure:: image/map-type-column-settings.png | ||
|
||
Screenshot of the map type column settings modal window | ||
|
||
Each distinct value contained in the type column will be displayed in the form. | ||
Associate an icon with a type by entering the icon's name. Only | ||
`Font Awesome 4 icons <https://fontawesome.com/v4.7/icons/>`_ are available at | ||
the moment. |