mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-05-01 14:06:40 +07:00
new-poly: removed leaflet-editable
This commit is contained in:
parent
630ed43525
commit
34f99771b1
8 changed files with 15 additions and 15 deletions
src/modules
|
@ -1,5 +1,5 @@
|
|||
import { marker } from 'leaflet';
|
||||
import 'leaflet-editable';
|
||||
// import 'leaflet-editable';
|
||||
import React from 'react';
|
||||
import { DomMarker } from '$utils/DomMarker';
|
||||
|
||||
|
@ -60,7 +60,7 @@ export class Sticker {
|
|||
className: 'sticker-container',
|
||||
});
|
||||
|
||||
this.marker = marker(latlng, { icon: mark });
|
||||
this.marker = marker(latlng, { icon: mark, draggable: true });
|
||||
|
||||
this.element.addEventListener('mouseup', this.onDragStop);
|
||||
this.element.addEventListener('mouseup', this.preventPropagations);
|
||||
|
@ -89,7 +89,7 @@ export class Sticker {
|
|||
window.addEventListener('mousemove', this.onDrag);
|
||||
window.addEventListener('mouseup', this.onDragStop);
|
||||
|
||||
this.marker.disableEdit();
|
||||
// this.marker.disableEdit();
|
||||
};
|
||||
|
||||
preventPropagations = e => {
|
||||
|
@ -110,7 +110,7 @@ export class Sticker {
|
|||
|
||||
this.lockMapClicks(false);
|
||||
|
||||
this.marker.enableEdit();
|
||||
// this.marker.enableEdit();
|
||||
};
|
||||
|
||||
onDrag = e => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue