Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3863 → Rev 3864

/branches/v3.01-serpe/widget/modules/saisie/squelettes/js/tb-geoloc/js/Geoloc.js
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,7 → 192,17
});
};
 
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);
this.map.removeControl(this.drawControl);
/branches/v3.01-serpe/widget/modules/saisie/squelettes/js/ReleveASL.js
678,7 → 678,6
$( '#geoloc-arbres' ).closest( '.control-group' ).addClass( 'error' );
}
}
this.geoloc.map.setView([latitude, longitude], 18);
} else {
console.dir( 'Error location' );
}