Skip to content

Commit 603ff48

Browse files
committed
fix linter
1 parent 58ee732 commit 603ff48

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
@@ -130,6 +130,22 @@ You can add markers to a map using the ``addMarker()`` method::
130130
)
131131
;
132132

133+
Add Polylines
134+
~~~~~~~~~~~~~
135+
136+
You can add Polylines, which represents a path made by a series of `Point` instances
137+
$myMap->addPolyline(new Polyline(
138+
points: [
139+
new Point(48.8566, 2.3522),
140+
new Point(45.7640, 4.8357),
141+
new Point(43.2965, 5.3698),
142+
new Point(44.8378, -0.5792),
143+
],
144+
infoWindow: new InfoWindow(
145+
content: 'A line passing through Paris, Lyon, Marseille, Bordeaux',
146+
),
147+
));
148+
133149
Add Polygons
134150
~~~~~~~~~~~~
135151

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)