Subversion Repositories eFlore/Applications.cel

Rev

Rev 3532 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3532 Rev 3533
Line 365... Line 365...
365
WidgetSaisie.prototype.locationHandler = function( location ) {
365
WidgetSaisie.prototype.locationHandler = function( location ) {
366
	var locDatas = location.originalEvent.detail;
366
	var locDatas = location.originalEvent.detail;
Line 367... Line 367...
367
 
367
 
368
	if ( this.valOk( locDatas ) ) {
368
	if ( this.valOk( locDatas ) ) {
369
		console.log( locDatas );
369
		console.log( locDatas );
370
		var geometry      = locDatas.geometry;
370
		var geometry      = JSON.stringify(locDatas.geometry);
371
		var altitude      = ( this.valOk( locDatas.elevation ) ) ? locDatas.elevation : '';
371
		var altitude      = ( this.valOk( locDatas.elevation ) ) ? locDatas.elevation : '';
372
		var pays          = ( this.valOk( locDatas.osmCountryCode ) ) ? locDatas.osmCountryCode.toUpperCase() : 'FR';
372
		var pays          = ( this.valOk( locDatas.osmCountryCode ) ) ? locDatas.osmCountryCode.toUpperCase() : 'FR';
373
		var latitude      = '';
373
		var latitude      = '';
374
		var longitude     = '';
374
		var longitude     = '';