| Line 606... |
Line 606... |
| 606 |
' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
|
606 |
' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
|
| 607 |
'>'+
|
607 |
'>'+
|
| 608 |
'</tb-geolocation-element>'
|
608 |
'</tb-geolocation-element>'
|
| 609 |
);
|
609 |
);
|
| 610 |
// Empêcher que le module carto ne bind ses events partout
|
610 |
// Empêcher que le module carto ne bind ses events partout
|
| 611 |
$( '#tb-geolocation-arbres' ).on( 'submit blur click focus mousedown mouseleave mouseup change', '*', function( event ) {
|
611 |
$( '#zone-arbres' ).on( 'submit blur click focus mousedown mouseleave mouseup change', '#tb-geolocation-arbres *', function( event ) {
|
| 612 |
event.preventDefault();
|
612 |
event.preventDefault();
|
| 613 |
return false;
|
613 |
return false;
|
| 614 |
});
|
614 |
});
|
| 615 |
$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind( this ) );
|
615 |
$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind( this ) );
|
| 616 |
}
|
616 |
}
|
| Line 1328... |
Line 1328... |
| 1328 |
$( '#geoloc-datas-arbres,#retour' ).removeClass( 'hidden' );
|
1328 |
$( '#geoloc-datas-arbres,#retour' ).removeClass( 'hidden' );
|
| 1329 |
} else {
|
1329 |
} else {
|
| 1330 |
// quand on change ou qu'on revient à la normale :
|
1330 |
// quand on change ou qu'on revient à la normale :
|
| 1331 |
$( '#geoloc-arbres,#bouton-fichier,#miniature-arbres-info' ).removeClass( 'hidden' );
|
1331 |
$( '#geoloc-arbres,#bouton-fichier,#miniature-arbres-info' ).removeClass( 'hidden' );
|
| 1332 |
$( '#geoloc-datas-arbres,#retour' ).addClass( 'hidden' );
|
1332 |
$( '#geoloc-datas-arbres,#retour' ).addClass( 'hidden' );
|
| - |
|
1333 |
// reset carto
|
| - |
|
1334 |
$( '#tb-geolocation-arbres' ).remove();
|
| - |
|
1335 |
$( '#geoloc-arbres' ).append(
|
| - |
|
1336 |
'<tb-geolocation-element'+
|
| - |
|
1337 |
' id="tb-geolocation-arbres"'+
|
| - |
|
1338 |
' layer="google hybrid"'+
|
| - |
|
1339 |
' zoom_init="20"'+
|
| - |
|
1340 |
' lat_init="' + $( '#latitude' ).val() + '"'+
|
| - |
|
1341 |
' lng_init="' + $( '#longitude' ).val() + '"'+
|
| - |
|
1342 |
' marker="true"'+
|
| - |
|
1343 |
' polyline="false"'+
|
| - |
|
1344 |
' polygon="false"'+
|
| - |
|
1345 |
' show_lat_lng_elevation_inputs="true"'+
|
| - |
|
1346 |
' osm_class_filter=""'+
|
| - |
|
1347 |
' elevation_provider="mapquest"'+
|
| - |
|
1348 |
' map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"'+
|
| - |
|
1349 |
'>'+
|
| - |
|
1350 |
'</tb-geolocation-element>'
|
| - |
|
1351 |
);
|
| - |
|
1352 |
$( '#tb-geolocation-arbres' ).on( 'location', this.locationArbresHandler.bind( this ) );
|
| 1333 |
// retour aux valeurs par defaut
|
1353 |
// retour aux valeurs par defaut
|
| 1334 |
$( '#equipement-pied-arbre .other' ).text( 'Autre' ).val( 'other' );
|
1354 |
$( '#equipement-pied-arbre .other' ).text( 'Autre' ).val( 'other' );
|
| 1335 |
$(
|
1355 |
$(
|
| 1336 |
'#certitude option,'+
|
1356 |
'#certitude option,'+
|
| 1337 |
'#equipement-pied-arbre option,'+
|
1357 |
'#equipement-pied-arbre option,'+
|