Mapforge enables you to add custom data layers from OpenStreetMap using Overpass queries. Overpass is a powerful search language for map data: You can find specific places, roads, buildings, or any feature mapped in OpenStreetMap's global database.
Overpass layers get loaded for the currently visible view of the map. When the map gets moved or zoomed, a reload button appears to fetch data for the new area.
Mapforge has a couple of ready-to-use layers prepared that can easily get added to your map.
Open the 'Layers' window, click on 'Add query' and chose the query to add.
There are prepared queries to cover common mapping needs for example for public toilets, camp sites and hiking tracks.
Overpass queries are defined in Overpass QL (short for "Overpass Query Language").
This powerful language lets you query any data available in OpenStreetMap. You can browse the official tags list, taginfo.openstreetmap.org, or the 'Query Features' option on openstreetmap.org to discover interesting tags to create queries for and include in your map.
You can enhance your layers with visual customization, for example setting symbols or icons for clusters and markers. This can be achieved by adding one or more of these
settings as comments to the query:
// heatmap=true
- Results will be rendered as a heat map (default=false)
// marker-symbol=🍻
- Nodes/points will use this symbol (emoji)
// marker-image-url=/icons/hydrant.png
- URL pointing to icon image
// cluster=true
- Results will be clustered when too many results are close to each other (default=true)
// cluster-symbol=🍻
- Emoji/icon path used for clusters
// cluster-image-url=/icons/hydrant.png
- URL pointing to icon image for clusters
Other recommended sites that can create maps from Overpass queries are: overpass-ultra.us and overpass-turbo.eu.