Add required attribution

This commit is contained in:
Gautier P 2019-06-10 13:11:24 +02:00 committed by Gautier Pelloux-Prayer
parent b11ccb78ff
commit 4dcd4e91df

View file

@ -19,7 +19,12 @@ export class LeafletComponent {
options = { options = {
layers: [ layers: [
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 18, attribution: '...' }), L.tileLayer(
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
{
maxZoom: 18,
attribution: '&copy; <a href="https://www.openstreetmap.org">OpenStreetMapcontributors</a>',
}),
], ],
zoom: 5, zoom: 5,
center: L.latLng({ lat: 38.991709, lng: -76.886109 }), center: L.latLng({ lat: 38.991709, lng: -76.886109 }),