From 52e9c2b0c5001cc4bb18bb9ffe108c7f2d84cd36 Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 24 Aug 2019 20:51:53 -0400 Subject: [PATCH] Made measurement lines thicker to make them easier to select --- src/app/services/map.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/services/map.service.ts b/src/app/services/map.service.ts index 8b5aa51..0ceb34a 100644 --- a/src/app/services/map.service.ts +++ b/src/app/services/map.service.ts @@ -132,10 +132,10 @@ export class MapService { } newMeasurement(latlng1: LatLng, latlng2: LatLng) { - let line = L.polyline([latlng1, latlng2], {color: '#ff4141', weight: 5}); + let line = L.polyline([latlng1, latlng2], {color: '#ff4141', weight: 10}); let decoration = L.polylineDecorator(line, {patterns: [ - {offset: '100%', repeat: 0, symbol: L.Symbol.arrowHead({pixelSize: 15, polygon: false, headAngle: 180, pathOptions: {color: '#ff4141', stroke: true}})}, - {offset: '-100%', repeat: 0, symbol: L.Symbol.arrowHead({pixelSize: 15, polygon: false, headAngle: 180, pathOptions: {color: '#ff4141', stroke: true}})} + {offset: '100%', repeat: 0, symbol: L.Symbol.arrowHead({pixelSize: 15, polygon: false, headAngle: 180, pathOptions: {color: '#ff4141', weight: 10, stroke: true}})}, + {offset: '-100%', repeat: 0, symbol: L.Symbol.arrowHead({pixelSize: 15, polygon: false, headAngle: 180, pathOptions: {color: '#ff4141', weight: 10, stroke: true}})} ]}); this.measurements.push({line: line, decoration: decoration}); let distance = distanceInM(latlng1.lat, latlng1.lng, latlng2.lat, latlng2.lng);