widget/OpenLayers.php
protected function processMapOptions()
	{
		if (isset($this->mapOptions['view']) && is_array($this->mapOptions['view'])) {
			$this->mapOptions['view'] = new OL('View', $this->mapOptions['view']);
		}
		
		if (isset($this->mapOptions['layers'])) {
			$this->processSimplifiedLayers();
		}
	}
protected function processMapOptions()
	{
		if (isset($this->mapOptions['view']) && is_array($this->mapOptions['view'])) {
			$this->mapOptions['view'] = new OL('View', $this->mapOptions['view']);
		}
		
		if (isset($this->mapOptions['layers'])) {
			$this->processSimplifiedLayers();
		}
	}
Checks whether several "complex" options have been specified as a key => value pair where key is a string.
If found, those properies will be automatically turned into the JavaScript expression that instantiates the corresponding OpenLayers object, thus eliminating the need to manually create a JsExpression object.
The value for these processed keys will be passed as options to the constructor of the OpenLayers object.
Supported simplified properties are:
<ul>
<li><b>view</b>: Can be specified as 'view' => $optionArray.
For example, <code>['view' => ['center'=>[0,0],'zoom'=>2]]</code> will produce this JS: <code>new ol.View({"center":[0,0], "zoom":2})</code>
<li><b>layers</b>: Each layer in the array can be specified as $type => $options, where $type is a string.
For example, <code>['layers' => ['Tile' => ['visible' => false]</code> will produce this JS: <code>new ol.layer.Tile({"visible": false})</code>
<li><b>layer sources</b>: In addition, when a layer's $type => $option pair are both strings, the $option is considered the layer's "source", and will also be converted to the corresponding object.
For example, <code>['layers' => ['Tile' => 'OSM']</code> will produce this JS: <code>new ol.layer.Tile({"source": new ol.source.OSM()})</code>
</li>
</ul>
If these simplifications are not enough to avoid using complex JsExpression structures, make sure to see the {@link OL} class for an abbreviated way of specifying OpenLayers object instances.
@see OL