Browse Source

Add open option for markers and cleanup.

euromark 12 years ago
parent
commit
a4897b6377
2 changed files with 243 additions and 198 deletions
  1. 2 2
      Test/Case/View/Helper/GoogleMapV3HelperTest.php
  2. 241 196
      View/Helper/GoogleMapV3Helper.php

+ 2 - 2
Test/Case/View/Helper/GoogleMapV3HelperTest.php

@@ -307,8 +307,8 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 	public function testDynamic3() {
 	public function testDynamic3() {
 		//echo '<h2>Map with Directions</h2>';
 		//echo '<h2>Map with Directions</h2>';
 		$options = array(
 		$options = array(
-			'zoom'=>5,
-			'type'=>'H',
+			'zoom' => 5,
+			'type' => 'H',
 			'map' => array()
 			'map' => array()
 		);
 		);
 		//echo $this->GoogleMapV3->map($options);
 		//echo $this->GoogleMapV3->map($options);

File diff suppressed because it is too large
+ 241 - 196
View/Helper/GoogleMapV3Helper.php