<?php

/*
 * Provides a GoogleMap() function to DataObject objects.
 *
 * @author Uncle Cheese
 * @package mappable
 */
class MappableDataObjectSet extends Extension {

	public function RenderMap($width = null, $height = null) {
		$gmap = MapUtil::get_map($this->owner);
		$w = $width ? $width : MapUtil::$map_width;
		$h = $height ? $height : MapUtil::$map_height;
		$gmap->setSize($w,$h);
		return $gmap;
	}
	
	
}
<?php

/*
 * Provides a GoogleMap() function to DataObject objects.
 *
 * @author Uncle Cheese
 * @package mappable
 */
class MappableDataObjectSet extends Extension {

	public function GoogleMap($width = null, $height = null) {
		$gmap = GoogleMapUtil::get_map($this->owner);
		$w = $width ? $width : GoogleMapUtil::$map_width;
		$h = $height ? $height : GoogleMapUtil::$map_height;
		$gmap->setSize($w,$h);
		return $gmap;
	}
	
	
}
--- 
+++ 
@@ -8,10 +8,10 @@
  */
 class MappableDataObjectSet extends Extension {
 
-	public function GoogleMap($width = null, $height = null) {
-		$gmap = GoogleMapUtil::get_map($this->owner);
-		$w = $width ? $width : GoogleMapUtil::$map_width;
-		$h = $height ? $height : GoogleMapUtil::$map_height;
+	public function RenderMap($width = null, $height = null) {
+		$gmap = MapUtil::get_map($this->owner);
+		$w = $width ? $width : MapUtil::$map_width;
+		$h = $height ? $height : MapUtil::$map_height;
 		$gmap->setSize($w,$h);
 		return $gmap;
 	}
WIP: Change reference from google map to be generic
