Example #1
0
 public function getOptions()
 {
     $res = parent::getOptions() + array('lat' => $this->getLat(), 'lng' => $this->getLng(), 'title' => $this->title);
     if ($this->icon) {
         $res['icon'] = $this->getIcon();
     }
     if ($this->content) {
         $res['content'] = $this->getContent();
     }
     return $res;
 }
Example #2
0
 public function getOptions()
 {
     return parent::getOptions() + $this->options + array('coords' => $this->coords);
 }