mirror of
https://github.com/symfony/ux-google-map.git
synced 2026-03-23 23:42:13 +01:00
35 lines
836 B
PHP
35 lines
836 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\UX\Map\Bridge\Google\Option;
|
|
|
|
/**
|
|
* Options for the rendering of the Street View pegman control on the map.
|
|
*
|
|
* @see https://developers.google.com/maps/documentation/javascript/reference/control#StreetViewControlOptions
|
|
*
|
|
* @author Hugo Alliaume <hugo@alliau.me>
|
|
*/
|
|
final readonly class StreetViewControlOptions
|
|
{
|
|
public function __construct(
|
|
private ControlPosition $position = ControlPosition::INLINE_END_BLOCK_END,
|
|
) {
|
|
}
|
|
|
|
public function toArray(): array
|
|
{
|
|
return [
|
|
'position' => $this->position->value,
|
|
];
|
|
}
|
|
}
|