-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #2340 [Map] add polyline support (sblondeau)
This PR was merged into the 2.x branch. Discussion ---------- [Map] add polyline support | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Add polyline support to Map for Leaflet and GoogleMap (useful e.g. for itinerary drawing) ```php public function index(): Response { $map = (new Map('default')) ->center(new Point(45.7534031, 4.8295061)) ->zoom(6) ->addPolyline( new Polyline( title: 'my title', points: [ new Point(48.8566, 2.3522), new Point(45.7640, 4.8357), new Point(43.2965, 5.3698), ] ) ) ; return $this->render('hom/index.html.twig', [ 'map' => $map, ]);; } ``` ![image](https://github.com/user-attachments/assets/d49631ee-fbea-4baa-835a-0dfad4fbbbc2) Commits ------- 754fd35 [Map] Add support for Polyline
- Loading branch information
Showing
25 changed files
with
632 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.