Skip to content

Commit

Permalink
Remove optional Leaflet attribution prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper authored and nyalldawson committed Jan 9, 2023
1 parent 361faa9 commit 9bcce8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/developersmap.html
Expand Up @@ -41,7 +41,8 @@
"Core committer" : "Core contributor" ));
}
});
var map = L.map('developers-map').fitBounds(geojson.getBounds());
var map = L.map('developers-map', { attributionControl: false }).fitBounds(geojson.getBounds());
L.control.attribution( { prefix: false } ).addTo( map );
developersMapTiles.addTo(map);
geojson.addTo(map);
setTimeout(function() {
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/TilesXYZ.py
Expand Up @@ -497,7 +497,8 @@ def processAlgorithm(self, parameters, context, feedback):
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([{centery}, {centerx}], {avgzoom});
var map = L.map('map', {{ attributionControl: false }} ).setView([{centery}, {centerx}], {avgzoom});
L.control.attribution( {{ prefix: false }} ).addTo( map );
L.tileLayer({tilesource}, {{
minZoom: {minzoom},
maxZoom: {maxzoom},
Expand Down

0 comments on commit 9bcce8d

Please sign in to comment.