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); |