ソースを参照

Add support to GoogleMapV3Helper to have draggable

Add support to GoogleMapV3Helper to have the param draggable set by the end user.
Chris Hallgren 11 年 前
コミット
823b624374
1 ファイル変更4 行追加0 行削除
  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']);