for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Maps\Elements;
use DataValues\Geo\Values\LatLongValue;
use InvalidArgumentException;
/**
* @since 3.0
*
* @licence GNU GPL v2+
* @author Kim Eik < [email protected] >
* @author Jeroen De Dauw < [email protected] >
*/
class ImageOverlay extends Rectangle {
private $imageUrl;
public function __construct( LatLongValue $boundsNorthEast, LatLongValue $boundsSouthWest, string $image ) {
parent::__construct( $boundsNorthEast, $boundsSouthWest );
$this->imageUrl = $image;
}
public function getImage(): string {
return $this->imageUrl;
public function getJSONObject( string $defText = '', string $defTitle = '' ): array {
$data = parent::getJSONObject( $defText, $defTitle );
$data['image'] = $this->imageUrl;
return $data;