Skip to content

Commit 4439323

Browse files
committed
fix linter
1 parent b505d21 commit 4439323

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

src/Map/doc/index.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,22 @@ You can add markers to a map using the ``addMarker()`` method::
136136
))
137137
;
138138

139+
Add Polylines
140+
~~~~~~~~~~~~~
141+
142+
You can add Polylines, which represents a path made by a series of `Point` instances
143+
$myMap->addPolyline(new Polyline(
144+
points: [
145+
new Point(48.8566, 2.3522),
146+
new Point(45.7640, 4.8357),
147+
new Point(43.2965, 5.3698),
148+
new Point(44.8378, -0.5792),
149+
],
150+
infoWindow: new InfoWindow(
151+
content: 'A line passing through Paris, Lyon, Marseille, Bordeaux',
152+
),
153+
));
154+
139155
Add Polygons
140156
~~~~~~~~~~~~
141157

src/Map/src/Bridge/Google/assets/src/map_controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class extends AbstractMapController<
3838
google.maps.InfoWindowOptions,
3939
google.maps.InfoWindow,
4040
google.maps.PolygonOptions,
41-
google.maps.Polygon
41+
google.maps.Polygon,
4242
google.maps.PolylineOptions,
4343
google.maps.Polyline
4444
> {

src/Map/src/Bridge/Leaflet/assets/src/map_controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import AbstractMapController from '@symfony/ux-map';
2-
import type { Point, MarkerDefinition, PolygonDefinition PolylineDefinition } from '@symfony/ux-map';
2+
import type { Point, MarkerDefinition, PolygonDefinition, PolylineDefinition } from '@symfony/ux-map';
33
import 'leaflet/dist/leaflet.min.css';
44
import * as L from 'leaflet';
55
import type { MapOptions as LeafletMapOptions, MarkerOptions, PopupOptions, PolygonOptions , PolylineOptions } from 'leaflet';

0 commit comments

Comments
 (0)