(id: string, data: StyledLine[])
| 98 | } |
| 99 | |
| 100 | function newLineLayer(id: string, data: StyledLine[]) { |
| 101 | return new base.layers.LineLayer({ |
| 102 | id, |
| 103 | data, |
| 104 | widthUnits: 'pixels', |
| 105 | coordinateSystem: base.deck.COORDINATE_SYSTEM.CARTESIAN, |
| 106 | getColor: (o: StyledLine) => o.color, |
| 107 | getWidth: (o: StyledLine) => o.strokeWidth, |
| 108 | }); |
| 109 | } |
| 110 | |
| 111 | |
| 112 | function newPathLayer(id: string, data: Path[]) { |