예제 #1
0
 /**
  * Set the navigation controls for your gmap.
  * For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki .
  *
  * @param array $options Set the options for the controls here.
  * @return Gmap
  */
 public function set_gmap_controls_navigation(array $options)
 {
     if (isset($options['display'])) {
         $this->_options['gmap_controls']['navigation']['display'] = (bool) $options['display'];
     }
     // if
     if (isset($options['style'])) {
         $this->_options['gmap_controls']['navigation']['style'] = Gmap::validate_control_navigation($options['style']);
     }
     // if
     if (isset($options['position'])) {
         $this->_options['gmap_controls']['navigation']['position'] = Gmap::validate_control_position($options['position']);
     }
     // if
     return $this;
 }