Skip to content

Commit e653f48

Browse files
committed
minor #2658 [Map] Make renderer tests way easier to maintain, use snapshots (Kocal)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Map] Make renderer tests way easier to maintain, use snapshots | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Update/add documentation as required (we can help!) - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 74b9737 [Map] Make renderer tests way easier to maintain, use snapshots
2 parents 167419a + 74b9737 commit e653f48

File tree

30 files changed

+322
-30
lines changed

30 files changed

+322
-30
lines changed

src/Map/src/Bridge/Google/composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
},
2323
"require-dev": {
2424
"symfony/phpunit-bridge": "^6.4|^7.0",
25-
"symfony/ux-icons": "^2.18"
25+
"symfony/ux-icons": "^2.18",
26+
"spatie/phpunit-snapshot-assertions": "^5.1.8"
2627
},
2728
"autoload": {
2829
"psr-4": { "Symfony\\UX\\Map\\Bridge\\Google\\": "src/" },

src/Map/src/Bridge/Google/phpunit.xml.dist

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<php>
1717
<ini name="error_reporting" value="-1"/>
1818
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
19+
<server name="SYMFONY_PHPUNIT_VERSION" value="11.5.0"/>
1920
</php>
2021

2122
<testsuites>

src/Map/src/Bridge/Google/tests/GoogleRendererTest.php

+1-15
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;my_api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[{&quot;position&quot;:{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522},&quot;title&quot;:&quot;Paris&quot;,&quot;infoWindow&quot;:null,&quot;icon&quot;:{&quot;type&quot;:&quot;url&quot;,&quot;width&quot;:32,&quot;height&quot;:32,&quot;url&quot;:&quot;https:\/\/cdn.jsdelivr.net\/npm\/[email protected]\/icons\/geo-alt.svg&quot;},&quot;extra&quot;:[],&quot;id&quot;:null,&quot;@id&quot;:&quot;217fa57668ad8e64&quot;},{&quot;position&quot;:{&quot;lat&quot;:45.764,&quot;lng&quot;:4.8357},&quot;title&quot;:&quot;Lyon&quot;,&quot;infoWindow&quot;:null,&quot;icon&quot;:{&quot;type&quot;:&quot;ux-icon&quot;,&quot;width&quot;:32,&quot;height&quot;:32,&quot;name&quot;:&quot;fa:map-marker&quot;,&quot;_generated_html&quot;:&quot;&lt;svg xmlns=\&quot;http:\/\/www.w3.org\/2000\/svg\&quot; width=\&quot;24\&quot; height=\&quot;24\&quot;&gt;...&lt;\/svg&gt;&quot;},&quot;extra&quot;:[],&quot;id&quot;:null,&quot;@id&quot;:&quot;255b208136900fc0&quot;},{&quot;position&quot;:{&quot;lat&quot;:45.8566,&quot;lng&quot;:2.3522},&quot;title&quot;:&quot;Dijon&quot;,&quot;infoWindow&quot;:null,&quot;icon&quot;:{&quot;type&quot;:&quot;svg&quot;,&quot;width&quot;:24,&quot;height&quot;:24,&quot;html&quot;:&quot;&lt;svg xmlns=\&quot;http:\/\/www.w3.org\/2000\/svg\&quot; width=\&quot;24\&quot; height=\&quot;24\&quot;&gt;...&lt;\/svg&gt;&quot;},&quot;extra&quot;:[],&quot;id&quot;:null,&quot;@id&quot;:&quot;1a410e92214f770c&quot;}]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="my-custom-controller symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
class="map"
14+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;my_api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:&quot;CustomMapId&quot;,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;my_api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:&quot;DefaultMapId&quot;,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;my_api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:&quot;DefaultMapId&quot;,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;id&quot;:&quot;gmap&quot;,&quot;language&quot;:&quot;fr&quot;,&quot;region&quot;:&quot;FR&quot;,&quot;nonce&quot;:&quot;abcd&quot;,&quot;retries&quot;:10,&quot;url&quot;:&quot;https:\/\/maps.googleapis.com\/maps\/api\/js&quot;,&quot;version&quot;:&quot;quarterly&quot;,&quot;apiKey&quot;:&quot;api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[{&quot;position&quot;:{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522},&quot;title&quot;:&quot;Paris&quot;,&quot;infoWindow&quot;:null,&quot;icon&quot;:null,&quot;extra&quot;:[],&quot;id&quot;:&quot;marker1&quot;,&quot;@id&quot;:&quot;872feba9ebf3905d&quot;},{&quot;position&quot;:{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522},&quot;title&quot;:&quot;Lyon&quot;,&quot;infoWindow&quot;:{&quot;headerContent&quot;:null,&quot;content&quot;:&quot;Lyon&quot;,&quot;position&quot;:null,&quot;opened&quot;:false,&quot;autoClose&quot;:true,&quot;extra&quot;:[]},&quot;icon&quot;:null,&quot;extra&quot;:[],&quot;id&quot;:&quot;marker2&quot;,&quot;@id&quot;:&quot;6028bf5e41f644ab&quot;}]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[{&quot;position&quot;:{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522},&quot;title&quot;:&quot;Paris&quot;,&quot;infoWindow&quot;:null,&quot;icon&quot;:null,&quot;extra&quot;:[],&quot;id&quot;:&quot;marker1&quot;,&quot;@id&quot;:&quot;872feba9ebf3905d&quot;},{&quot;position&quot;:{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522},&quot;title&quot;:&quot;Lyon&quot;,&quot;infoWindow&quot;:{&quot;headerContent&quot;:null,&quot;content&quot;:&quot;Lyon&quot;,&quot;position&quot;:null,&quot;opened&quot;:false,&quot;autoClose&quot;:true,&quot;extra&quot;:[]},&quot;icon&quot;:null,&quot;extra&quot;:[],&quot;id&quot;:null,&quot;@id&quot;:&quot;bce206d73dc5c164&quot;}]"
11+
data-symfony--ux-google-map--map-polygons-value="[]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- This HTML has been prettified for testing purposes, and may not represent the actual HTML output.
2+
Run "php vendor/bin/phpunit -d --update-snapshots" to update the snapshot. -->
3+
<div
4+
data-controller="symfony--ux-google-map--map"
5+
data-symfony--ux-google-map--map-provider-options-value="{&quot;apiKey&quot;:&quot;api_key&quot;}"
6+
data-symfony--ux-google-map--map-center-value="{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}"
7+
data-symfony--ux-google-map--map-zoom-value="12"
8+
data-symfony--ux-google-map--map-fit-bounds-to-markers-value="false"
9+
data-symfony--ux-google-map--map-options-value="{&quot;mapId&quot;:null,&quot;gestureHandling&quot;:&quot;auto&quot;,&quot;backgroundColor&quot;:null,&quot;disableDoubleClickZoom&quot;:false,&quot;zoomControlOptions&quot;:{&quot;position&quot;:22},&quot;mapTypeControlOptions&quot;:{&quot;mapTypeIds&quot;:[],&quot;position&quot;:14,&quot;style&quot;:0},&quot;streetViewControlOptions&quot;:{&quot;position&quot;:22},&quot;fullscreenControlOptions&quot;:{&quot;position&quot;:20},&quot;@provider&quot;:&quot;google&quot;}"
10+
data-symfony--ux-google-map--map-markers-value="[]"
11+
data-symfony--ux-google-map--map-polygons-value="[{&quot;points&quot;:[{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522},{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522},{&quot;lat&quot;:48.8566,&quot;lng&quot;:2.3522}],&quot;title&quot;:null,&quot;infoWindow&quot;:null,&quot;extra&quot;:[],&quot;id&quot;:null,&quot;@id&quot;:&quot;7cdd432ea54d0ce9&quot;},{&quot;points&quot;:[{&quot;lat&quot;:1.1,&quot;lng&quot;:2.2},{&quot;lat&quot;:3.3,&quot;lng&quot;:4.4},{&quot;lat&quot;:5.5,&quot;lng&quot;:6.6}],&quot;title&quot;:null,&quot;infoWindow&quot;:{&quot;headerContent&quot;:null,&quot;content&quot;:&quot;Polygon&quot;,&quot;position&quot;:null,&quot;opened&quot;:false,&quot;autoClose&quot;:true,&quot;extra&quot;:[]},&quot;extra&quot;:[],&quot;id&quot;:null,&quot;@id&quot;:&quot;9074e0a9ead08c1e&quot;}]"
12+
data-symfony--ux-google-map--map-polylines-value="[]"
13+
></div>

0 commit comments

Comments
 (0)