* @version 0.10.1311_pre_beta * @license OPPL * * Modified by Mahmoud Lababidi * Date Dec 16, 2006 * * */ class GoogleMapHelper extends Helper { var $errors = array(); var $key = "ABQIAAAAvCbGW5EV-rEJpZP96-o0NxQ1SJ3zY01f5orEIl-iQQteZ6BtLxQEPgACixUBYnGKDDbCXFOnFTJ1JQ"; function map($default, $style = 'width: 400px; height: 400px' ) { //if (empty($default)){return "error: You have not specified an address to map"; exit();} $out = "
// "; return $out; } function addMarkers(&$data, $icon=null) { $out = " "; return $out; } function addClick($var, $script=null) { $out = " "; return $out; } function addMarkerOnClick($innerHtml = null) { $mapClick = ' var mapClick = function (overlay, point) { var point = new GPoint(point.x,point.y); var marker = new GMarker(point,icon); map.addOverlay(marker) GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml('.$innerHtml.'); }); } '; return $this->addClick('mapClick', $mapClick); } } ?>