From 8ec3b8d230d0436e6c6325802b411787ee6b78b7 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 31 Jul 2018 21:09:07 +0100 Subject: [PATCH] map: Remove arrows from paths they didn't really help, and made it hard to see things --- src/arrow.png | Bin 398 -> 0 bytes src/map.js | 17 ----------------- 2 files changed, 17 deletions(-) delete mode 100644 src/arrow.png diff --git a/src/arrow.png b/src/arrow.png deleted file mode 100644 index a0d3834586169c71ca1e2fec8d23a4235e1a950d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 398 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eW!3-oPYs<_AQq09po*^6@9Je3(KLBz$3p^r= z85p>QL70(Y)*K0-pk#?_L`iUdT1k0gQ7S`udAVL@UUqSEVnM22eo^}DcQ#T$MMVKV zA+G;HfB}S7h5p~~@c)eQ|Et>nFY5h2Vhv(n(*1wZ48%QU`u~DHh&*Qq5=Ta-O+Z`- z2^UA>!o|-RFV0N33$$IeB*-tAfsu)sg_Vt)mtRm=OhQ`L*=_cMB`epi+q8Ax;p3;z zUAlVh=ACcW5zeoH8e%a=h5HS477;B)78&qol`;+0Q0M`nE(I) 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; }