Пример #1
0
 /**
  * Make it possible to include multiple maps per page
  * resets markers, infoWindows etc
  *
  * @param bool $full true=optionsAsWell
  * @return void
  */
 public function reset($full = true)
 {
     static::$markerCount = static::$infoWindowCount = 0;
     $this->markers = $this->infoWindows = [];
     if ($full) {
         $this->_config = $this->_defaultOptions;
     }
 }
Пример #2
0
 /**
  * Make it possible to include multiple maps per page
  * resets markers, infoWindows etc
  * @param full: true=optionsAsWell
  * @return void
  */
 public function reset($full = true)
 {
     static::$markerCount = static::$infoWindowCount = 0;
     $this->markers = $this->infoWindows = array();
     if ($full) {
         $this->settings = $this->_defaultOptions;
     }
 }