Carte Geocodage

This commit is contained in:
Michael RICOIS 2015-07-10 18:40:07 +00:00
parent ccc10ba342
commit 188a0c6941
2 changed files with 3 additions and 3 deletions

View File

@ -428,7 +428,7 @@ class IdentiteController extends Zend_Controller_Action
$user = new Scores_Utilisateur();
$userAccessEdition = $user->checkModeEdition();
$this->view->userAccessEdition = $userAccessEdition;
$this->view->AuthorizeGeocode = $userAccessEdition;
// --- Gestion source
$mapSource = 'google';

View File

@ -73,7 +73,7 @@ $(document).ready(function(){
marks[i].location = new google.maps.LatLng(item.gps.lat, item.gps.lon);
markDone++;
} else {
<?php if ($this->userAccessEdition) {?>
<?php if ($this->AuthorizeGeocode) {?>
geocoder.geocode({ address:item.address, region:'FR' }, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
if (results[0]) {
@ -123,8 +123,8 @@ $(document).ready(function(){
markDone++;
//console.log("GeoCode: " + status + ' - index: ' + i);
});
}
<?php }?>
}
});
});
</script>