示例#1
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     $this->callback = 'js:function(result){if(!result)return;$(this).gmap3({action:"addDirectionsRenderer",options:{draggable:false,directions:result}});}';
 }
 /**
  * Create a new action.
  * @param string An identifier for this style.
  * @param mixed $options Associative array or Options object
  */
 public function __construct($id, $options = null)
 {
     $this->id = $id;
     parent::__construct($options);
 }