13,7 → 13,7 |
'https://osm.tela-botanica.org/tuiles/osmfr/{z}/{x}/{y}.png', |
{ |
attribution: 'Data © <a href="http://osm.org/copyright">OpenStreetMap</a>', |
maxZoom: 18 |
maxZoom: 18 |
} |
] |
}; |
153,8 → 153,7 |
|
Geoloc.prototype.initEvts = function() { |
this.initMap(); |
this.handleCoordinates(); |
this.onCoordinates(); |
this.initMapCoordinates(); |
this.initSearchLocality(); |
}; |
|
193,6 → 192,15 |
}); |
}; |
|
Geoloc.prototype.initMapCoordinates = function() { |
if (!!this.latitudeEl.value && !!this.longitudeEl.value) { |
this.setMapCoordinates({ |
'lat': this.latitudeEl.value, |
'lng': this.longitudeEl.value |
}); |
} |
this.onCoordinates(); |
}; |
|
Geoloc.prototype.reSetDrawControl = function() { |
this.map.removeLayer(this.layer); |
535,4 → 543,4 |
if (this.map != null) { |
this.map._leaflet_id = null; |
} |
}; |
}; |