浏览代码

Merge pull request #123 from challgren/patch-2

Add support to GoogleMapV3Helper to have draggable
Mark S. 11 年之前
父节点
当前提交
017cac093b
共有 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'] = $options['draggable'];
+		}
 
 		if (isset($options['title'])) {
 			$params['title'] = json_encode($options['title']);