mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
removed unused things
This commit is contained in:
parent
cb3fabaf74
commit
8333807b31
3 changed files with 2 additions and 5 deletions
|
@ -21,7 +21,6 @@ export class Poly {
|
|||
}
|
||||
|
||||
updateMarks = () => {
|
||||
console.log('upd');
|
||||
const coords = this.poly.toGeoJSON().geometry.coordinates;
|
||||
this.latlngs = (coords && coords.length && coords.map(([lng, lat]) => ({ lng, lat }))) || [];
|
||||
const meters = (this.poly && (L.GeometryUtil.length(this.poly) / 1000)) || 0;
|
||||
|
@ -67,11 +66,9 @@ export class Poly {
|
|||
|
||||
continue = () => {
|
||||
if (this.latlngs && this.latlngs.length) {
|
||||
console.log('continue?');
|
||||
this.poly.enableEdit().continueForward();
|
||||
this.poly.editor.reset();
|
||||
} else {
|
||||
console.log('start over');
|
||||
this.poly = this.map.editTools.startPolyline();
|
||||
this.poly.setStyle(polyStyle);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue