Add your own geodata to the map
Your goal
You want to show places or areas from your geographic information system on the map of a phase, such as schools, drinking fountains, or a heat map.
Open project area
What you need
- The phase has been created.
- You have the “Administer project” permission in the project.
- Your data is available as GeoJSON in WGS 84, see “Prepare files”.
You import single places such as schools or fountains as pins, each with a name and address in the popup. You add areas such as a heat map as a map layer, colored by class if you like. Both require files in the right format.
Prepare files
Consul reads only GeoJSON and does not convert coordinates. So export shapefiles and GeoPackages beforehand, for example in QGIS.
- In QGIS, right-click the layer and choose “Export” → “Save Features As”.
- Choose “GeoJSON” as the format and “EPSG:4326 – WGS 84” as the coordinate reference system.
- For pins, create a separate file for each category, so daycare centers, schools, and care facilities are kept apart. Each file becomes its own dataset in Consul.
- Name the columns the way Consul recognizes them for the popup (see below).
- “NAME”
- Title of the pin. “BEZEICHNUNG” (designation) or “TITEL” (title) also work. If the column is missing, the pin shows only an ID.
- “ADRESSE” (address)
- Address in one line. You can also split it into “STRASSE” (street), “HAUS_NR” (house number), “PLZ” (postal code), and “ORT” (town).
- “TELEFON” (phone), “EMAIL”, “INTERNET”
- Contact details in the popup.
- “BESCHREIBUNG” (description), “OEFFNUNGSZEITEN” (opening hours)
- More details in the popup.
- “IMAGE_URL”
- Address of an icon image, such as a colored dot as PNG or SVG. This gives each pin its own icon. Otherwise, all pins show the same dot.
If your department delivers the data as a shapefile in UTM (EPSG:25832), demokratie.today helps with the conversion.
Import places as pins
This works in phases of the types proposals, participatory budget, and points of interest.
- Open the phase and then the “Map” tab.
- Under “Import Masterportal data”, go to “Upload GeoJSON files” and use “Choose files” to select your files, each up to 50 MB.
- Give each file a clear name under “Dataset name”, such as “Daycare centers”.
- If you also want each place to create an entry in the module, check “Vorschläge erzeugen” (create proposals), “Bürgerbudget-Einreichungen erzeugen” (create participatory budget submissions), or “Points of Interest erzeugen” (create points of interest).
- Click “Import”. The “Letzter Import” (last import) status then shows the number of entries.
If a dataset contains areas instead of points, set their color under “Area color” on its map.
Add areas as a map layer
- In the “Map” tab of the project or phase, click “Add map layer”.
- Under “Protocol”, choose the GeoJSON layer, and upload the file under “GeoJSON file”, up to 20 MB.
- For a uniform color, set “Fill color”, “Deckkraft der Füllung” (fill opacity), and “Stroke color” under “Appearance (uniform)”.
- For a heat map or other classes, turn on “Enable coloring by value”. Then enter “Data field”, “Breaks”, “Colors”, and “Legend title”.
The data field must contain numbers, such as class 1 to 6. With five breaks, enter six colors, one more than the number of breaks.
Pitfalls
Consul does not check the coordinate system. If your data is not in WGS 84, the places do not appear in the right location.
Importing again with the same dataset name replaces the dataset. A different name creates a second one.
You can’t delete imported pins one by one in the “Pins” tab. Instead, upload a corrected file under the same name and click “Import new and clean old”.