From c7ebbe4567cb63bdde3819d52ad27c87f86fa33d Mon Sep 17 00:00:00 2001 From: ztimson Date: Sun, 8 Sep 2019 20:30:13 -0400 Subject: [PATCH] Increased measurement thickness --- src/app/services/map.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/map.service.ts b/src/app/services/map.service.ts index a4616c7..1bbd337 100644 --- a/src/app/services/map.service.ts +++ b/src/app/services/map.service.ts @@ -137,7 +137,7 @@ export class MapService { } newMeasurement(m: Measurement) { - let line = L.polyline([m.latlng, m.latlng2], Object.assign({color: '#e9403d', autoPan: false, weight: 8, lineCap: "square", dashArray: '10, 20'}, m)).addTo(this.map); + let line = L.polyline([m.latlng, m.latlng2], Object.assign({color: '#e9403d', autoPan: false, weight: 10, lineCap: "square", dashArray: '10, 20'}, m)).addTo(this.map); if(!m.noDelete) this.measurements.push(line); let distance = latLngDistance(m.latlng, m.latlng2); line.bindPopup(`${distance > 1000 ? Math.round(distance / 100) / 10 : Math.round(distance)} ${distance > 1000 ? 'k' : ''}m`, {autoPan: false, autoClose: false, closeOnClick: false}).openPopup();