Skip to content

Add custom tiles

Guillaume AMAT edited this page Mar 21, 2017 · 4 revisions

By default, MapContrib handles several tiles source but the instance administrator can add some custom ones by modifying its configuration.

In the config folder, create a local.yml file if it does not already exist and add that content in it:

            name: OpenStreetMap
            attribution: Data &copy; <a href="" rel="noopener noreferrer" target="_blank">OpenStreetMap</a>
            changesetAttribution: A custom attribution added to contributions changeset
                - https://{s}{z}/{x}/{y}.png
            minZoom: 0
            maxZoom: 19

Replace all the OSM related informations by yours and restart the instance.