Skip to content

Commit 661d2ac

Browse files
added 1px white stroke to paths and geodesic edges
1 parent 84a8fd7 commit 661d2ac

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

js/tracker.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,15 +1219,28 @@ function addPosition(position) {
12191219
path_length: 0,
12201220
curr_position: position,
12211221
line: [],
1222-
polyline: [new google.maps.Polyline({
1222+
polyline: [
1223+
new google.maps.Polyline({
1224+
map: map,
1225+
zIndex: Z_PATH,
1226+
strokeColor: "#ffffff",
1227+
strokeOpacity: 0.8,
1228+
strokeWeight: 5,
1229+
clickable: true,
1230+
draggable: false,
1231+
geodesic: true
1232+
}),
1233+
new google.maps.Polyline({
12231234
map: map,
12241235
zIndex: Z_PATH,
12251236
strokeColor: balloon_colors[c],
12261237
strokeOpacity: 0.8,
12271238
strokeWeight: 3,
12281239
clickable: true,
12291240
draggable: false,
1230-
})],
1241+
geodesic: true
1242+
}),
1243+
],
12311244
prediction: null,
12321245
ascent_rate: 0.0,
12331246
horizontal_rate: 0.0,
@@ -1284,6 +1297,7 @@ function addPosition(position) {
12841297
strokeWeight: (k*4) + 2,
12851298
clickable: true,
12861299
draggable: false,
1300+
geodesic: true
12871301
}));
12881302
}
12891303
}

0 commit comments

Comments
 (0)