Attribution
Required by license. Where, what, how.
What you must show
© OpenStreetMap contributors · © MapsForDevsBoth attributions, every map view, on every device.
When the map shows raster satellite (phase 2):
© OpenStreetMap contributors · © MapsForDevs · © Maxar TechnologiesWhere it lives
- Style.json (recommended):
attributionproperty on eachsource. MapLibre auto-renders it in a small expandable control bottom-right. - NOT in PMTiles header: our pmtiles archives contain zero attribution metadata. This keeps the data clean and lets you control attribution per surface.
MapLibre default control
new maplibregl.Map({
style: {
sources: {
mfd: {
type: 'vector',
tiles: [`https://tiles.mapsfordevs.com/tiles/{z}/{x}/{y}.pbf?key=${KEY}`],
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> · © <a href="https://mapsfordevs.com">MapsForDevs</a>'
}
}
}
});Hide the default control only if you render attribution elsewhere:
new maplibregl.Map({ ..., attributionControl: false });Custom attribution UI
You may render attribution in your own component as long as it remains visible while the map is shown.
<div class="custom-attr">
© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>
· © <a href="https://mapsfordevs.com">MapsForDevs</a>
</div>.custom-attr {
position: absolute; bottom: 4px; right: 8px;
background: rgba(255,255,255,0.85);
font-size: 11px; padding: 2px 6px; border-radius: 3px;
}Both attributions and the © symbol must be present. Links are required and must be clickable.
Print / export
When exporting a static image (PNG, PDF, screenshot for marketing), attribution must be burned into the image. The export helpers we ship handle this automatically.
Mobile
iOS / Android MapLibre Native render the attribution control by default — leave it on. For iOS you may move it; do not hide it.
Embed widget
The free embed widget always renders both attributions. You cannot remove them from embed.mapsfordevs.com URLs.
License terms summary
- ODbL (OpenStreetMap data) — attribution required, share-alike for derivative databases.
- MapsForDevs commercial — attribution required.
- See
../LICENSE_TERMS.mdfor full terms.