Skip to content
Snippets Groups Projects
Commit ba0bb408 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

Merge branch '314-carto-openstreetmap-attribution' into 'dev'

Resolve "[Carto]- OpenStreetMap Attribution"

See merge request !519
parents a1796e73 f73e426d
No related branches found
No related tags found
2 merge requests!525V2.3.0,!519Resolve "[Carto]- OpenStreetMap Attribution"
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment