src/Charcoal/Admin/Property/Input/MapWidgetInput.php
public function setMapOptions(array $settings)
    {
        if (isset($settings['api_key'])) {
            $this->setApiKey($settings['api_key']);
        }

        if ($this->mapOptions) {
            $this->mapOptions = array_replace_recursive($this->mapOptions, $settings);
        } else {
            $this->mapOptions = array_replace_recursive($this->defaultMapOptions(), $settings);
        }

        return $this;
    }
public function setMapOptions(array $settings)
    {
        if (isset($settings['api_key'])) {
            $this->setApiKey($settings['api_key']);
        }

        if ($this->mapOptions) {
            $this->mapOptions = array_replace_recursive($this->mapOptions, $settings);
        } else {
            $this->mapOptions = array_replace_recursive($this->defaultMapOptions(), $settings);
        }

        return $this;
    }
public function setMapOptions ( array $ settings ) { if ( isset ( $ settings [ 'api_key' ] ) ) { $ this -> setApiKey ( $ settings [ 'api_key' ] ) ; } if ( $ this -> mapOptions ) { $ this -> mapOptions = array_replace_recursive ( $ this -> mapOptions , $ settings ) ; } else { $ this -> mapOptions = array_replace_recursive ( $ this -> defaultMapOptions ( ) , $ settings ) ; } return $ this ; }
Set the map widget's options.

This method always merges default settings.

@param  array $settings The map widget options.
@return MapWidgetInput Chainable
Set the map widget s options .