I am trying to customize the attribution section of a Leaflet.js map. The custom part of the attribution is everything that follows Leaflet |
as shown in the screenshot.
My custom attribution string is added as follows:
var ATTRIBUTION = '...'
var map;
$(document).ready(function() {
var tiles = new L.TileLayer(TILES_URL, {attribution: ATTRIBUTION});
map = new L.Map('map').addLayer(tiles);
// ...
});
Leaflet.js adds itself to the front of my existing attribution string which can be seen in the sources. How can I append the Leaflet attribution string instead?