Пример #1
0
 /**
  * Set the scale 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_scale(array $options)
 {
     if (isset($options['display'])) {
         $this->_options['gmap_controls']['scale']['display'] = (bool) $options['display'];
     }
     // if
     if (isset($options['position'])) {
         $this->_options['gmap_controls']['scale']['position'] = Gmap::validate_control_position($options['position']);
     }
     // if
     return $this;
 }