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:

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

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.