map: Remove arrows from paths

they didn't really help, and made it hard to see things
This commit is contained in:
Adam Goldsmith 2018-07-31 21:09:07 +01:00
parent 3ac5d719de
commit 8ec3b8d230
2 changed files with 0 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

View File

@ -14,8 +14,6 @@ const packetLog = readFileSync(__dirname + '/../IS_packets.txt', 'utf-8');
import {APRSParser} from 'aprs-parser'; import {APRSParser} from 'aprs-parser';
import icon from "./arrow.png";
let tile_layer = new TileLayer({source: new OSM()}); let tile_layer = new TileLayer({source: new OSM()});
let map = new olMap({ 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; return styles;
} }