Carte Geocodage
This commit is contained in:
parent
ccc10ba342
commit
188a0c6941
@ -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';
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user