Browse Source

https link to osm maps tiles (#615)

to avoid annoying mixed content warning in the browser
pull/617/head
EdoardoTona 5 years ago
committed by GitHub
parent
commit
12401d0d12
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      frontend/app/shared/components/forms/geolocation-editor.component.ts

6
frontend/app/shared/components/forms/geolocation-editor.component.ts

@ -180,9 +180,9 @@ export class GeolocationEditorComponent extends StatefulControlComponent<State,
.then(() => {
this.map = L.map(this.editor.nativeElement).fitWorld();
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png',
{
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(this.map);
this.resourceLoader.loadScript('https://cdnjs.cloudflare.com/ajax/libs/perliedman-leaflet-control-geocoder/1.9.0/Control.Geocoder.min.js')
@ -386,4 +386,4 @@ export class GeolocationEditorComponent extends StatefulControlComponent<State,
public setCompact(isCompact: boolean) {
this.next({ isCompact });
}
}
}

Loading…
Cancel
Save