mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
changed max markers to 100
This commit is contained in:
parent
5cd83ead64
commit
ac3e824579
1 changed files with 2 additions and 9 deletions
|
@ -1,18 +1,11 @@
|
||||||
import { Map, LayerGroup, Polyline, LatLng } from 'leaflet';
|
import { Map, LayerGroup, LatLng } from 'leaflet';
|
||||||
import { EditablePolyline } from '$utils/EditablePolyline';
|
import { EditablePolyline } from '$utils/EditablePolyline';
|
||||||
import { simplify } from '$utils/simplify';
|
import { simplify } from '$utils/simplify';
|
||||||
import { findDistance, getPolyLength, middleCoord } from '$utils/geom';
|
|
||||||
import { CLIENT } from '$config/frontend';
|
import { CLIENT } from '$config/frontend';
|
||||||
import { MODES } from '$constants/modes';
|
|
||||||
import { editor, Editor } from "$modules/Editor";
|
import { editor, Editor } from "$modules/Editor";
|
||||||
import { ILatLng } from "$modules/Stickers";
|
import { ILatLng } from "$modules/Stickers";
|
||||||
import { InteractivePoly } from "$modules/InteractivePoly";
|
import { InteractivePoly } from "$modules/InteractivePoly";
|
||||||
|
|
||||||
const polyStyle = {
|
|
||||||
color: 'url(#activePathGradient)',
|
|
||||||
weight: '6',
|
|
||||||
markerMid: 'url(#arrow)'
|
|
||||||
};
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
map: Map;
|
map: Map;
|
||||||
|
@ -30,7 +23,7 @@ export class Poly {
|
||||||
this.poly = new InteractivePoly([], {
|
this.poly = new InteractivePoly([], {
|
||||||
color: 'url(#activePathGradient)',
|
color: 'url(#activePathGradient)',
|
||||||
weight: 6,
|
weight: 6,
|
||||||
maxMarkers: 300,
|
maxMarkers: 100,
|
||||||
})
|
})
|
||||||
.on('distancechange', this.onDistanceUpdate);
|
.on('distancechange', this.onDistanceUpdate);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue