| Line 599... |
Line 599... |
| 599 |
' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
|
599 |
' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
|
| 600 |
'>'+
|
600 |
'>'+
|
| 601 |
'</tb-geolocation-element>'
|
601 |
'</tb-geolocation-element>'
|
| 602 |
);
|
602 |
);
|
| 603 |
// Empêcher que le module carto ne bind ses events partout
|
603 |
// Empêcher que le module carto ne bind ses events partout
|
| 604 |
$( '#tb-geolocation-arbres' ).on( 'submit blur click focus mousedown mouseleave mouseup change', '*', function( event ) {
|
604 |
$( '#zone-arbres' ).on( 'submit blur click focus mousedown mouseleave mouseup change', '#tb-geolocation-arbres *', function( event ) {
|
| 605 |
event.preventDefault();
|
605 |
event.preventDefault();
|
| 606 |
return false;
|
606 |
return false;
|
| 607 |
});
|
607 |
});
|
| 608 |
$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind(this) );
|
608 |
$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind(this) );
|
| 609 |
}
|
609 |
}
|
| Line 1291... |
Line 1291... |
| 1291 |
$( '#geoloc-datas-arbres,#retour' ).removeClass( 'hidden' );
|
1291 |
$( '#geoloc-datas-arbres,#retour' ).removeClass( 'hidden' );
|
| 1292 |
} else {
|
1292 |
} else {
|
| 1293 |
// quand on change ou qu'on revient à la normale :
|
1293 |
// quand on change ou qu'on revient à la normale :
|
| 1294 |
$( '#geoloc-arbres,#bouton-fichier,#miniature-arbres-info' ).removeClass( 'hidden' );
|
1294 |
$( '#geoloc-arbres,#bouton-fichier,#miniature-arbres-info' ).removeClass( 'hidden' );
|
| 1295 |
$( '#geoloc-datas-arbres,#retour' ).addClass( 'hidden' );
|
1295 |
$( '#geoloc-datas-arbres,#retour' ).addClass( 'hidden' );
|
| - |
|
1296 |
// reset carto
|
| - |
|
1297 |
$( '#tb-geolocation-arbres' ).remove();
|
| - |
|
1298 |
$( '#geoloc-arbres' ).append(
|
| - |
|
1299 |
'<tb-geolocation-element'+
|
| - |
|
1300 |
' id="tb-geolocation-arbres"'+
|
| - |
|
1301 |
' layer="google hybrid"'+
|
| - |
|
1302 |
' zoom_init="20"'+
|
| - |
|
1303 |
' lat_init="' + $( '#latitude' ).val() + '"'+
|
| - |
|
1304 |
' lng_init="' + $( '#longitude' ).val() + '"'+
|
| - |
|
1305 |
' marker="true"'+
|
| - |
|
1306 |
' polyline="false"'+
|
| - |
|
1307 |
' polygon="false"'+
|
| - |
|
1308 |
' show_lat_lng_elevation_inputs="true"'+
|
| - |
|
1309 |
' osm_class_filter=""'+
|
| - |
|
1310 |
' elevation_provider="mapquest"'+
|
| - |
|
1311 |
' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
|
| - |
|
1312 |
'>'+
|
| - |
|
1313 |
'</tb-geolocation-element>'
|
| - |
|
1314 |
);
|
| - |
|
1315 |
$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind( this ) );
|
| 1296 |
// retour aux valeurs par defaut
|
1316 |
// retour aux valeurs par defaut
|
| 1297 |
$( '#equipement-pied-arbre .other' ).text( 'Autre' ).val( 'other' );
|
1317 |
$( '#equipement-pied-arbre .other' ).text( 'Autre' ).val( 'other' );
|
| 1298 |
// $( '#equipement-pied-arbre .other' ).val( 'other' );
|
1318 |
// $( '#equipement-pied-arbre .other' ).val( 'other' );
|
| 1299 |
$(
|
1319 |
$(
|
| 1300 |
'#certitude option,'+
|
1320 |
'#certitude option,'+
|