Do not override nogos on url load (#349)

This commit is contained in:
Gautier P 2020-12-02 21:11:57 +01:00
parent fde629fcb0
commit 8ca602575c
2 changed files with 7 additions and 8 deletions

View file

@ -96,10 +96,10 @@ BR.CircleGoArea = L.Control.extend({
},
onMapClick: function(e) {
this.setCircle([e.latlng.lng, e.latlng.lat]);
this.setCircle([e.latlng.lng, e.latlng.lat], false);
},
setCircle: function(center) {
setCircle: function(center, skipNogo) {
var self = this;
var icon = L.VectorMarkers.icon({
icon: 'home',
@ -119,7 +119,7 @@ BR.CircleGoArea = L.Control.extend({
this.clear();
marker.addTo(this.circleLayer);
this.setNogoCircle(center);
if (!skipNogo) this.setNogoCircle(center);
this.draw(false);
},