Permalink
Browse files

fix bug

  • Loading branch information...
1 parent 5ac6f90 commit 069ec7be6b82f49482c95ec2689105d518261223 alvaro committed Jul 7, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/Haanga/lib/Haanga/Extension/Filter/Googlemaps.php
@@ -13,15 +13,15 @@ static function main($obj, $varname){
$latArr =""; $longArr=""; $nameArr = "";
$w = "400";
$h = "300";
-
+ $zoom = "10";
if($names[3] != null && $names[3] != ""){
$w = $names[3];
}
if($names[4] != null && $names[4] != ""){
$h = $names[4];
}
if($names[5] != null && $names[4] != ""){
- $z = $names[4];
+ $zoom = $names[5];
}
foreach($obj as $k){
@@ -49,8 +49,6 @@ static function main($obj, $varname){
$nameArr .= '"'.$k->$names[2]->value.'"';
$firstColumn = false;
}
- $zoom = 4;
- if($z != null){$zoom = $z}
$pre = "<div id='map_canvas_".$randId."' style='width: ".$w."px; height: ".$h."px'></div><script type='text/javascript'
src='http://maps.googleapis.com/maps/api/js?sensor=false'></script>

0 comments on commit 069ec7b

Please sign in to comment.