You are here

function openlayers_layer_type_maptiler::__construct in Openlayers 6.2

Overrides openlayers_layer_type::__construct

File

includes/layer_types/maptiler.inc, line 13
TileWarper Layer Type

Class

openlayers_layer_type_maptiler
OpenLayers MapTiler Layer Type class

Code

function __construct($layer = array(), $map = array()) {
  parent::__construct($layer, $map);
  if (isset($this->data)) {
    $this->data += $this
      ->options_init();
    $this->data['baselayer'] = $this->data['isBaseLayer'];
  }
  else {
    $this->data = $this
      ->options_init();
  }
}