Skip to content

Commit 31ef6de

Browse files
authored
fix: Updates sample to use correct attribute for strokeWeight. (#768)
Change-Id: Id615005748b4d137e8bc05f3f044fa201411c440
1 parent a6f2173 commit 31ef6de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

samples/routes-get-alternatives/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,15 @@ function drawRoute(route, isPrimaryRoute) {
8383
mapPolylines = mapPolylines.concat(
8484
route.createPolylines({
8585
polylineOptions: isPrimaryRoute
86-
? { map: innerMap }
86+
? {
87+
map: innerMap,
88+
strokeWeight: 5,
89+
}
8790
: {
8891
map: innerMap,
8992
strokeColor: "#669DF6",
9093
strokeOpacity: 0.5,
91-
strokeWidth: 8,
94+
strokeWeight: 5,
9295
},
9396
colorScheme: innerMap.get("colorScheme"),
9497
}),

0 commit comments

Comments
 (0)