Browse Source

Add support to GoogleMapV3Helper to have draggable

Add support to GoogleMapV3Helper to have the param draggable set by the end user.
Chris Hallgren 11 years ago
parent
commit
823b624374
1 changed files with 4 additions and 0 deletions
  1. 4 0
      View/Helper/GoogleMapV3Helper.php

+ 4 - 0
View/Helper/GoogleMapV3Helper.php

@@ -474,6 +474,10 @@ class GoogleMapV3Helper extends AppHelper {
 
 		$params = array();
 		$params['map'] = $this->name();
+		
+		if (isset($options['draggable'])) {
+            		$params['draggable'] = 'true';
+        	}
 
 		if (isset($options['title'])) {
 			$params['title'] = json_encode($options['title']);