mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 11:36:40 +07:00
added notifications for hidden markers
This commit is contained in:
parent
32e1b4c3fd
commit
ba5e24a56d
12 changed files with 89 additions and 19 deletions
|
@ -20,7 +20,7 @@ export class NewPoly {
|
|||
|
||||
this.poly = L.Polyline.PolylineEditor(coordinates, {
|
||||
...polyStyle,
|
||||
maxMarkers: 50,
|
||||
maxMarkers: 100,
|
||||
|
||||
onPointsSet: this.updateMarks,
|
||||
onMarkerDragEnd: this.updateMarks,
|
||||
|
@ -28,8 +28,8 @@ export class NewPoly {
|
|||
onPointDropped: this.updateMarks,
|
||||
onContinueDrawing: this.setModeOnDrawing,
|
||||
|
||||
onMarkersHide: () => console.log('all markers are hidden'),
|
||||
onMarkersShow: () => console.log('all markers are visible'),
|
||||
onMarkersHide: () => editor.setMarkersShown(false),
|
||||
onMarkersShow: () => editor.setMarkersShown(true),
|
||||
}).addTo(map);
|
||||
|
||||
this.poly.addTo(map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue