From f73e426d3efe78c3b2402bdd45b1a1c21794af2d Mon Sep 17 00:00:00 2001
From: Etienne LOUPIAS <eloupias@grandlyon.com>
Date: Mon, 15 May 2023 11:36:39 +0200
Subject: [PATCH] fix(carto): add osm attribution

---
 src/app/map/components/map.component.ts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/app/map/components/map.component.ts b/src/app/map/components/map.component.ts
index b1bf2fa92..58a2c3108 100644
--- a/src/app/map/components/map.component.ts
+++ b/src/app/map/components/map.component.ts
@@ -1,5 +1,5 @@
 import { Component, EventEmitter, HostListener, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
-import L, { geoJSON, latLng, layerGroup, Map, MapOptions, tileLayer } from 'leaflet';
+import L, { Map, MapOptions, geoJSON, latLng, layerGroup, tileLayer } from 'leaflet';
 import * as _ from 'lodash';
 import metropole from '../../../assets/geojson/metropole.json';
 import { Structure } from '../../models/structure.model';
@@ -248,7 +248,8 @@ export class MapComponent implements OnChanges {
     // Init WMS service with param from data.grandlyon.com
     layerGroup();
     const carteLayer = tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png', {
-      attribution: '&copy; <a href="https://carto.com/attributions">CARTO</a>',
+      attribution:
+        '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, &copy; <a href="https://carto.com/attributions">CARTO</a>',
       maxZoom: ZoomLevel.max,
     });
     // Center is set on townhall
-- 
GitLab