src/GoogleMapAPI.php
function getAddOverlayJS(){
		 $_output = "";
		 foreach($this->_overlays as $_key=>$_overlay){
			 $_output .= "
			 	 var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(".$_overlay["bounds"]["ne"]["lat"].", ".$_overlay["bounds"]["ne"]["long"]."), new google.maps.LatLng(".$_overlay["bounds"]["sw"]["lat"].", ".$_overlay["bounds"]["sw"]["long"]."));
				 var image = '".$_overlay["img"]."';
			     overlays".$this->map_id."[$_key] = new CustomOverlay(bounds, image, map".$this->map_id.", ".$_overlay["opacity"].");
			 ";
		 }
		 return $_output;
	 }
function getAddOverlayJS(){
		 $_output = "";
		 foreach($this->_overlays as $_key=>$_overlay){
			 $_output .= "
			 	 var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(".$_overlay["bounds"]["ne"]["lat"].", ".$_overlay["bounds"]["ne"]["long"]."), new google.maps.LatLng(".$_overlay["bounds"]["sw"]["lat"].", ".$_overlay["bounds"]["sw"]["long"]."));
				 var image = '".$_overlay["img"]."';
			     overlays".$this->map_id."[$_key] = new CustomOverlay(bounds, image, map".$this->map_id.", ".$_overlay["opacity"].");
			 ";
		 }
		 return $_output;
	 }
function getAddOverlayJS ( ) { $ _output = "" ; foreach ( $ this -> _overlays as $ _key => $ _overlay ) { $ _output .= "
			 	 var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(" . $ _overlay [ "bounds" ] [ "ne" ] [ "lat" ] . ", " . $ _overlay [ "bounds" ] [ "ne" ] [ "long" ] . "), new google.maps.LatLng(" . $ _overlay [ "bounds" ] [ "sw" ] [ "lat" ] . ", " . $ _overlay [ "bounds" ] [ "sw" ] [ "long" ] . "));
				 var image = '" . $ _overlay [ "img" ] . "';
			     overlays" . $ this -> map_id . "[$_key] = new CustomOverlay(bounds, image, map" . $ this -> map_id . ", " . $ _overlay [ "opacity" ] . ");
			 " ; } return $ _output ; }
function to get overlay creation JS.
function to get overlay creation JS .