This commit is contained in:
@@ -50,8 +50,6 @@ export class MapComponent implements OnInit {
|
||||
|
||||
this.map = new L.Map('map');
|
||||
this.map.setView(this.defaultLocation, this.defaultZoom);
|
||||
// this.setMapMarker(this.defaultLocation);
|
||||
// this.map.on('click', (e) => this.setMapMarker(e.latlng));
|
||||
|
||||
this.tileLayer = new L.TileLayer('https://cloud.locoslab.com/carta/restful-services/tile/{z}/{x}/{y}.png', {
|
||||
attribution: 'Maptology',
|
||||
@@ -60,6 +58,10 @@ export class MapComponent implements OnInit {
|
||||
|
||||
L.easyButton('fa-globe', this.onSidebarToggle).addTo(this.map);
|
||||
|
||||
// Initialize marker
|
||||
// this.marker.bindTooltip('Tooltip', {sticky: true});
|
||||
this.setMapMarker(this.defaultLocation);
|
||||
|
||||
// If there is a given shareId in the URL, fetch the location from the API and
|
||||
// start to update every x seconds
|
||||
if (this.currentShare) {
|
||||
|
||||
Reference in New Issue
Block a user