diff --git a/code/GoogleMapAPI.php b/code/GoogleMapAPI.php index 85deb3e..91e0864 100755 --- a/code/GoogleMapAPI.php +++ b/code/GoogleMapAPI.php @@ -468,7 +468,7 @@ public function addArrayMarkerByCoords($coordtab,$category='',$icon='') */ public function addMarkerAsObject(ViewableData $obj) { if($obj instanceof Mappable) { - if(($obj->getLatitude() > 0) || ($obj->getLongitude() > 0)) { + if($obj->getLatitude() || $obj->getLongitude()) { { $cat = $obj->hasMethod('getMapCategory') ? $obj->getMapCategory() : "default"; $this->addMarkerByCoords($obj->getLatitude(), $obj->getLongitude(), $obj->getMapContent(), $cat, $obj->getMapPin()); } @@ -584,7 +584,7 @@ public function init() // JS variable init $this->content .= "\t".'