51 Commits

Author SHA1 Message Date
Steven Renaux
97e5fd66c6 [Map] Add Map::removeAll*() methods 2025-12-26 10:58:22 +01:00
Romain Monteil
9928a5cfec [Map] Add fitBoundsToMarkers option to Twig extension and component 2025-10-02 08:39:00 +02:00
Hugo Alliaume
0a7f3a1b4e [Map] Deprecate option title from Polygon, Polyline, Rectangle and Circle in favor of infoWindow
While writing E2E tests for Map, I found that our `title` option from `Polygon`, `Polyline`, `Rectangle` and `Circle` was wrongly used, and does not make sense.

Using `title` won't add an HTML attribute `title` as I expected, it's not something supported by Google nor Leaflet.
Instead, we used it to display a popup, like the `infoWindow` (which is more complete).

I suggest deprecating `title` from 2.x and remove it in 3.0.
2025-08-21 08:30:19 +02:00
Hugo Alliaume
6dece8c2e9 [Map][Docs] Correct and reword typos about polygons 2025-08-20 15:07:20 +02:00
Simon André
211ed3c911 [Map] Add Clustering Algorithms 2025-08-07 23:49:43 +02:00
Nicolas Grekas
ca4119e8d5 Apply fabbot rules 2025-07-29 17:18:27 +02:00
Hugo Alliaume
9b184b2c08 [Map] Mark package as non experimental 2025-07-27 09:22:02 +02:00
Hugo Alliaume
4d418ae89e [Map] Add options minZoom and maxZoom
Co-authored-by: Nina Alin <56309556+nina-alin@users.noreply.github.com>
2025-07-07 09:04:19 +02:00
Hugo Alliaume
1c4f299df7 [Map] Rewrite documentation about extra data 2025-06-27 15:07:09 +02:00
Hugo Alliaume
20710e90cf [Map] Add extra data to Map 2025-06-23 14:21:48 +02:00
Hugo Alliaume
40e5bb5ddd [Map] Add missing doc for Circle and Rectangle 2025-06-23 09:44:21 +02:00
Hugo Alliaume
3ace5e6df7 [Map] Allows Map options customization in ux:map:pre-connect event (e.g.: zoom, options, bridgeOptions...) 2025-06-23 09:44:21 +02:00
Hugo Alliaume
ebd77336ab [Map] Deprecate property rawOptions from ux:map:*:before-create events, in favor of bridgeOptions 2025-06-23 00:17:13 +02:00
Valmonzo
b6b8a155ec [Map] Add support for rectangle
Co-authored-by: Hugo Alliaume <hugo@alliau.me>
2025-06-22 16:55:04 +02:00
Valmonzo
81d4877dcb [Map] Add Circle support 2025-06-13 23:13:31 +02:00
Raphaël Geffroy
f084039728 fix: missing dynamic attributes on ux-map example 2025-06-13 13:53:46 +02:00
Danny van Wijk
db5611bfeb [Map] Do not override fitBoundsToMarkers when using LiveComponent 2025-06-10 21:33:39 +02:00
Danny van Wijk
e31f255cd8 [Map] Add polygones-with-holes support 2025-05-26 23:59:34 +02:00
Danny van Wijk
d6ac0473bd [Map] Remove invalid marker icon example 2025-05-25 13:54:05 +02:00
Hugo Alliaume
4566c7c680 [Map][Docs] Improve "Interact with the map" section 2025-03-18 17:09:13 -05:00
Hugo Alliaume
5503274c35 [Map] Rework SvgIcon and factory method name, UX Icon to get generated HTML, and icons rendering 2025-03-18 06:40:54 -05:00
Hugo Alliaume
819542b895 [Map] Refactor and simplify the way to create a custom Icon 2025-03-17 15:12:39 -05:00
Sylvain Blondeau
97d27ae464 feat: custom icon on markers 2025-03-15 20:07:50 +01:00
Hugo Alliaume
c4850b428d Document about alternative JS assets installation with npm packages 2025-03-09 22:10:04 +01:00
Sylvain Blondeau
05d69bdad0 [Map] Add dedicated methods to remove Marker, Polygon and Polyline instances from a Map 2025-02-15 17:18:56 +01:00
Hugo Alliaume
66b9b9648c [Maps] Fix documentations docblocks for the LiveComponent integration 2024-12-01 10:32:01 +01:00
Sylvain Blondeau
211e15a9fb [Map] Add support for Polyline 2024-11-23 00:43:29 +01:00
Hugo Alliaume
0fb89a899e Apply @smnandre's suggestions from code review
Co-authored-by: Simon André <smn.andre@gmail.com>
2024-11-22 22:26:06 +01:00
Hugo Alliaume
fae2ffeb47 [Map] Listen for zoom, center, markers and polygons changes, and update JS tests 2024-11-22 22:26:06 +01:00
Javier Eguiluz
449401fa7e Fix some misc doc issues 2024-11-18 10:41:24 +01:00
Javier Eguiluz
56a6b2a939 minor #2360 [Map] Add position and missing closing parenthesis (tacman)
This PR was merged into the 2.x branch.

Discussion
----------

[Map] Add position and missing closing parenthesis

so that it works when blindly cutting and pasting.

Commits
-------

a432df84 add position and missing closing parenthesis
2024-11-14 15:36:10 +01:00
Romain Monteil
39b9d263cc [Map] Fix Twig Component example 2024-11-14 12:16:33 +01:00
Tac Tacelosky
4edb840aba add position and missing closing parenthesis
so that it works when blindly cutting and pasting.
2024-11-10 05:53:45 -05:00
Hugo Alliaume
85522f409d [Map][Google] Add documentation about ux_map.google_maps.default_map_id 2024-11-10 08:49:16 +01:00
LesRouxDominerontLeMonde
25185ff4b3 Update index.rst
added :: instead of : , visual effect
2024-11-04 19:32:35 +01:00
Simon André
e52a4b061e [Map] Update documentation 2024-11-04 02:07:50 +01:00
Felix Eymonot
ecbf1b3592 docs(liveComponents) - remove stimulus-bundle warning 2024-10-15 12:36:49 +02:00
Edym Komlan BEDY
9f553cb360 Update index.rst
Correction du nom de la variable $map -> $myMap
2024-10-02 11:50:44 +01:00
rrr63
db1fc9c98a [Map] Add support for Polygons 2024-09-24 08:08:11 +02:00
Javier Eguiluz
4a38c80011 [Doc] Fix some links in UX Map docs 2024-09-23 17:30:16 +02:00
$!m0n
5d10cee517 Fixed typo in links to Symfony UX repo
I fixed typo in the links to Symfony UX repo (before: symfony/symfony-ux).
Note: I wasn't able to deal with the "version" variable.
2024-09-23 11:01:47 +02:00
Javier Eguiluz
8d0279685f [UX Map] Misc updates in the docs 2024-08-31 10:56:27 +02:00
Javier Eguiluz
f3f2badb5b [Doc] Fix a Twig function name in UX Map docs 2024-08-30 10:50:46 +02:00
Simon André
f588a6a04d Rename render_map Twig function ux_map 2024-08-16 21:05:52 +02:00
Yoan Bernabeu
216594c4be Fix Typo Map 2024-08-14 13:50:02 +02:00
Simon André
e84fc75aab [Map] Fix doc link
As https://symfony.com/ux now redirects to the "FrontEnd page" of Symfony docs (that barely mention Symfony UX), i think directing users to the website could be less missleading.
2024-08-13 20:32:52 +02:00
Hugo Alliaume
701e5de40f [Map] Add the possibility to not configure map zoom/center if fit bounds to markers 2024-08-11 08:06:58 +02:00
Hugo Alliaume
8e45418cbe [Map] Add "extra" data for markers and infowindows 2024-08-09 11:59:14 +02:00
Hugo Alliaume
a1a80b4b9d [Map] Change "BeforeConnect" for "BeforeCreate" in documentation 2024-08-09 10:04:12 +02:00
Hugo Alliaume
5dfb2fa901 [Map] Rename "symfony/ux-map-%s" to "symfony/ux-%s-map" 2024-08-07 16:39:22 +02:00