diff --git a/src/arrow.png b/src/arrow.png deleted file mode 100644 index a0d3834..0000000 Binary files a/src/arrow.png and /dev/null differ diff --git a/src/map.js b/src/map.js index 07260fd..5341544 100644 --- a/src/map.js +++ b/src/map.js @@ -14,8 +14,6 @@ const packetLog = readFileSync(__dirname + '/../IS_packets.txt', 'utf-8'); import {APRSParser} from 'aprs-parser'; -import icon from "./arrow.png"; - let tile_layer = new TileLayer({source: new OSM()}); let map = new olMap({ @@ -52,21 +50,6 @@ function pathStyle(feature) { )}) ]; - feature.getGeometry().forEachSegment((start, end) => { - let dx = end[0] - start[0]; - let dy = end[1] - start[1]; - let rotation = Math.atan2(dy, dx); - // arrows - styles.push(new Style({ - geometry: new Point(end), - image: new Icon({ - src: icon, - anchor: [0.75, 0.5], - rotateWithView: true, - rotation: -rotation - }) - })); - }); return styles; }