Skip to content

Commit 95448cf

Browse files
committed
some data restructuring and added train icon pins
1 parent 864f7e1 commit 95448cf

File tree

5 files changed

+50
-420
lines changed

5 files changed

+50
-420
lines changed

data.js

+29-10
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,34 @@ const connectors = [
313313
{ station: 'Lonsdale Quay', x: 28.6, y: 90.6 },{},
314314
{ station: 'Phibbs Exchange', x: 41.53, y: 92.55 }
315315
]
316+
const icons = [{
317+
type: 'ferryIcon',
318+
color: am4core.color("#1c59ae"),
319+
data: [
320+
{ icon: 'ferry.png', angle: 0, station: 'Burrard', x: 20.1, y: 82.73333 }, {},
321+
{ icon: 'ferry.png', angle: 45, station: 'Vancouver City Centre', x: 19, y: 78.5}, {},
322+
{ icon: 'ferry.png', angle: 45, station: 'Park Royal', x: 13.7, y: 95.3 }, {},
323+
{ icon: 'ferry.png', angle: 135, station: 'Granville', x: 24.25, y: 78.5 },{},
324+
{ icon: 'ferry.png', angle: 45, station:'Bridgeport' , x: 21.9, y: 29.45 }, {}]
325+
},{
326+
type: 'planeIcon',
327+
color: am4core.color('#709abd'),
328+
data: [
329+
{ icon: 'plane.png', angle: 45, station:'YVR Airport' , x: 8.35, y: 27.25 }],
330+
},{
331+
type: 'walkingIcon',
332+
color: am4core.color('#999'),
333+
data: [
334+
{ icon: 'walking.png', angle: -90, station: 'Vancouver City Centre/Granville ', x: 21.625, y: 77.75}],
335+
},{
336+
type: 'trainIcon',
337+
color: am4core.color("#701c8aff"),
338+
data: [
339+
{ icon: 'train.png', angle: 180, station: 'Waterfront', x: 24.5, y: 84.25},{},
340+
{ icon: 'train.png', angle: 90, station: 'Moody Centre', x: 73.64, y: 78.05},{},
341+
{ icon: 'train.png', angle: 160, station: 'Coquitlam Central', x: 81.25, y: 78. },{},
316342

317-
const icons = [
318-
{ icon: 'walking.png', angle: -90, station: 'Vancouver City Centre/Granville ', x: 21.625, y: 77.75}, {},
319-
{ icon: 'plane.png', angle: 45, station:'YVR Airport' , x: 8.35, y: 27.25 }, {},
320-
{ icon: 'seaBus.png', angle: 0, station: 'Burrard', x: 20.1, y: 82.73333 }, {},
321-
{ icon: 'seaBus.png', angle: 45, station: 'Vancouver City Centre', x: 19, y: 78.5}, {},
322-
{ icon: 'seaBus.png', angle: 45, station: 'Park Royal', x: 13.7, y: 95.3 }, {},
323-
{ icon: 'seaBus.png', angle: 135, station: 'Granville', x: 24.25, y: 78.5 },{},
324-
{ icon: 'seaBus.png', angle: 45, station:'Bridgeport' , x: 21.9, y: 29.45 }, {},
325-
]
343+
]
344+
}]
326345

327-
export { routes, connectors, icons }
346+
export { routes, connectors, icons }

ferry.png

1.98 KB
Loading

0 commit comments

Comments
 (0)