Exemplo n.º 1
0
 /**
  * Set the maptype 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_maptype(array $options)
 {
     if (isset($options['display'])) {
         $this->_options['gmap_controls']['maptype']['display'] = (bool) $options['display'];
     }
     // if
     if (isset($options['style'])) {
         $this->_options['gmap_controls']['maptype']['style'] = Gmap::validate_control_maptype($options['style']);
     }
     // if
     if (isset($options['position'])) {
         $this->_options['gmap_controls']['maptype']['position'] = Gmap::validate_control_position($options['position']);
     }
     // if
     return $this;
 }