From ac3e824579eaccefeec7980b9362ff2ec1e9ec9e Mon Sep 17 00:00:00 2001 From: muerwre Date: Fri, 22 Feb 2019 16:55:40 +0700 Subject: [PATCH] changed max markers to 100 --- src/modules/Poly.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/modules/Poly.ts b/src/modules/Poly.ts index 9d883d9..50ba42b 100644 --- a/src/modules/Poly.ts +++ b/src/modules/Poly.ts @@ -1,18 +1,11 @@ -import { Map, LayerGroup, Polyline, LatLng } from 'leaflet'; +import { Map, LayerGroup, LatLng } from 'leaflet'; import { EditablePolyline } from '$utils/EditablePolyline'; import { simplify } from '$utils/simplify'; -import { findDistance, getPolyLength, middleCoord } from '$utils/geom'; import { CLIENT } from '$config/frontend'; -import { MODES } from '$constants/modes'; import { editor, Editor } from "$modules/Editor"; import { ILatLng } from "$modules/Stickers"; import { InteractivePoly } from "$modules/InteractivePoly"; -const polyStyle = { - color: 'url(#activePathGradient)', - weight: '6', - markerMid: 'url(#arrow)' -}; interface Props { map: Map; @@ -30,7 +23,7 @@ export class Poly { this.poly = new InteractivePoly([], { color: 'url(#activePathGradient)', weight: 6, - maxMarkers: 300, + maxMarkers: 100, }) .on('distancechange', this.onDistanceUpdate);