mirror of
https://github.com/symfony/ux-google-map.git
synced 2026-03-23 23:42:13 +01:00
1.5 KiB
1.5 KiB
CHANGELOG
2.31
- Display a warning when trying to define
bridgeOptions.contentfor aMarkerthat already has anIcon
2.30
- Ensure compatibility with PHP 8.5
2.29.0
- Add Symfony 8 support
2.27
-
Fix
InfoWindowcompatibility with newCircleandRectanglesupported elements.This fix led to a refactoring that can impact the
InfoWindowposition when used withPolygonorPolyline, because their shapes are too complex. Instead, listen to theux:map:info-window:before-createevent to set the position manually.this.element.addEventListener('ux:map:info-window:before-create', (event) => { const { google, element, definition } = event.detail; if (element instanceof google.maps.Polygon) { // Set the position to the center of the polygon const bounds = new google.maps.LatLngBounds(); element.getPath().forEach((latLng) => bounds.extend(latLng)); definition.infoWindow.bridgeOptions.position = bounds.getCenter(); } });
2.25
- Downgrade PHP requirement from 8.3 to 8.1
2.22
- Add support for configuring a default Map ID
- Add argument
$defaultMapIdtoSymfony\UX\Map\Bridge\Google\Renderer\GoogleRendererFactoryconstructor - Add argument
$defaultMapIdtoSymfony\UX\Map\Bridge\Google\Renderer\GoogleRendererconstructor
2.20
BC Breaks
- Renamed importmap entry
@symfony/ux-google-map/map-controllerto@symfony/ux-google-map, you will need to update your importmap.
2.19
- Bridge added