Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3710 Rev 3811
Line 687... Line 687...
687
 
687
 
688
// Geoloc *********************************************************************/
688
// Geoloc *********************************************************************/
689
WidgetsSaisiesCommun.prototype.transfererCarto = function( donnees ) {
689
WidgetsSaisiesCommun.prototype.transfererCarto = function( donnees ) {
690
	var typeLocalisation = donnees.typeLocalisation || 'point',
690
	var typeLocalisation = donnees.typeLocalisation || 'point',
-
 
691
		isPoint          = ( typeLocalisation === 'point' ).toString(),
691
		isPoint          = ( typeLocalisation === 'point' ).toString(),
692
		locationFilter   = ( typeLocalisation === 'rue' ) ? 'linestring' : 'point',
692
		suffixe          = ( this.valOk( donnees.suffixe ) ) ? '-' + donnees.suffixe : '',
693
		suffixe          = ( this.valOk( donnees.suffixe ) ) ? '-' + donnees.suffixe : '',
693
		$cartoRemplacee  = donnees.cartoRemplacee || $( '#tb-geolocation' ),
694
		$cartoRemplacee  = donnees.cartoRemplacee || $( '#tb-geolocation' ),
694
		layer            = donnees.layer || 'osm',
695
		layer            = donnees.layer || 'osm',
695
		latitude         = donnees.latitude || '46.5',
696
		latitude         = donnees.latitude || '46.5',
Line 708... Line 709...
708
			' marker="' + isPoint + '"'+
709
			' marker="' + isPoint + '"'+
709
			' polyline="' + !isPoint + '"'+
710
			' polyline="' + !isPoint + '"'+
710
			' polygon="false"'+
711
			' polygon="false"'+
711
			' show_lat_lng_elevation_inputs="' + isPoint + '"'+
712
			' show_lat_lng_elevation_inputs="' + isPoint + '"'+
712
			' osm_class_filter=""'+
713
			' osm_class_filter=""'+
-
 
714
			' geometry_filter="'+ locationFilter + '"'+
713
			' elevation_provider="mapquest"'+
715
			' elevation_provider="mapquest"'+
714
			' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
716
			' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
-
 
717
			' height="400px"'+
715
		'>'+
718
		'>'+
716
		'</tb-geolocation-element>'
719
		'</tb-geolocation-element>'
717
	);
720
	);
718
	this.initEvtsGeoloc( true );
721
	this.initEvtsGeoloc( true );
719
};
722
};