mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
Now we display lesser points on mobile
This commit is contained in:
parent
31e042e945
commit
c10ea8a685
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import { ILatLng } from "$modules/Stickers";
|
|||
import { InteractivePoly } from "$modules/InteractivePoly";
|
||||
import { Arrows } from "$modules/Arrows";
|
||||
import { KmMarks } from "$modules/KmMarks";
|
||||
import { isMobile } from "$utils/window";
|
||||
|
||||
interface Props {
|
||||
map: Map;
|
||||
|
@ -23,7 +24,7 @@ export class Poly {
|
|||
this.poly = new InteractivePoly([], {
|
||||
color: 'url(#activePathGradient)',
|
||||
weight: 6,
|
||||
maxMarkers: 100,
|
||||
maxMarkers: isMobile() ? 20 : 100,
|
||||
smoothFactor: 3,
|
||||
})
|
||||
.on('distancechange', this.onDistanceUpdate)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue