/** * Construct. * * @param string $identifier The identifier. * @param LatLng|string|array $latLng LatLng. */ public function __construct($identifier, $latLng) { parent::__construct($identifier); $this->setLatLng($latLng); }
/** * Construct. * * @param string $identifier The element id. * @param string $url The url being loaded. * @param array $parserOptions Parser options. * @param Layer $customLayer Optional custom layer. */ public function __construct($identifier, $url, array $parserOptions = array(), Layer $customLayer = null) { parent::__construct($identifier); $this->customLayer = $customLayer; $this->url = $url; $this->setOptions($parserOptions); }
/** * OverpassLayer constructor. * * @param string $identifier Indicator of the layer. * @param array $options Options. */ public function __construct($identifier, array $options = []) { parent::__construct($identifier); $this->setOptions($options); }
/** * Construct. * * @param string $identifier The identifier. * @param Layer $source The source reference. */ public function __construct($identifier, Layer $source = null) { parent::__construct($identifier); $this->source = $source; }
/** * Construct. * * @param string $identifier Element identifier. * @param string $provider Provider name. * @param string $variant Map variant. */ public function __construct($identifier, $provider, $variant = null) { parent::__construct($identifier); $this->provider = $provider; $this->variant = $variant; }
/** * Construct. * * @param string $identifier The unique identifier. * @param string $url Tile url template. */ public function __construct($identifier, $url) { parent::__construct($identifier); $this->url = $url; }
/** * ImageOverlay constructor. * * @param string $identifier Layer identifier. * @param string $imageUrl Image url. * @param LatLngBounds $imageBounds Image bounds. */ public function __construct($identifier, $imageUrl, LatLngBounds $imageBounds = null) { parent::__construct($identifier); $this->imageUrl = $imageUrl; $this->imageBounds = $imageBounds; }