Commit 09d315b3 authored by Ayolo's avatar Ayolo

gmap

parent db746b09
...@@ -181,7 +181,19 @@ function(point) ...@@ -181,7 +181,19 @@ function(point)
} }
else else
{ {
$this->buffer .= 'var '.$this->pays->nom."= new google.maps.Directions(map);\n"; $this->buffer .= 'var '.$this->pays->nom."= new google.maps.ClientGeocoder();\n";
$this->buffer .= $this->pays->nom.getLatLng(\"".$this->pays->nom."\",
function(point)
{
if(!point)
return;
else
{
".$this->name.".setCenter(point,16);
".$this->name.".addOverlay(new google.maps.Marker(point));
}
}
);\n";
$this->buffer .= $this->pays->nom.".load(\"from: ".$this->pays->nom."\", {getSteps:true});\n"; $this->buffer .= $this->pays->nom.".load(\"from: ".$this->pays->nom."\", {getSteps:true});\n";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment