예제 #1
1
 /**
  * Construct.
  *
  * @param string              $identifier The identifier.
  * @param LatLng|string|array $latLng     LatLng.
  */
 public function __construct($identifier, $latLng)
 {
     parent::__construct($identifier);
     $this->setLatLng($latLng);
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
 /**
  * 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);
 }
예제 #4
0
 /**
  * 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;
 }
예제 #5
0
 /**
  * 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;
 }
예제 #6
0
 /**
  * Construct.
  *
  * @param string $identifier The unique identifier.
  * @param string $url        Tile url template.
  */
 public function __construct($identifier, $url)
 {
     parent::__construct($identifier);
     $this->url = $url;
 }
예제 #7
0
 /**
  * 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;
 }