You are here

function openlayers_layer_type_xyz::__construct in Openlayers 6.2

Overrides openlayers_layer_type::__construct

File

includes/layer_types/xyz.inc, line 13
XYZ Layer Type http://dev.openlayers.org/docs/files/OpenLayers/Layer/XYZ-js.html

Class

openlayers_layer_type_xyz
OpenLayers XYZ Layer Type class

Code

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