diff --git a/src/index.js b/src/index.js index 84369f5..8ec352c 100644 --- a/src/index.js +++ b/src/index.js @@ -24,10 +24,13 @@ todo tooltips - todo better poly editor https://github.com/SupriyaSudhindra/leaflet-editable-polyline + done better poly editor https://github.com/SupriyaSudhindra/leaflet-editable-polyline + todo update after point delete + + todo stickers drag on rotate bug todo network operations notify - todo delayed notify (delay(2000).then(showLoadingMsg)) + done delayed notify (delay(2000).then(showLoadingMsg)) todo network error notifications todo check canvas support at startup todo check osrm is up diff --git a/src/modules/NewPoly.js b/src/modules/NewPoly.js index 02daa36..d1089c8 100644 --- a/src/modules/NewPoly.js +++ b/src/modules/NewPoly.js @@ -85,7 +85,6 @@ export class NewPoly { }; updateMarks = (e, callee) => { - console.log('upd', callee); // return; const coords = this.poly.toGeoJSON().geometry.coordinates; diff --git a/src/utils/EditablePolyline.js b/src/utils/EditablePolyline.js index 71b6902..d791008 100644 --- a/src/utils/EditablePolyline.js +++ b/src/utils/EditablePolyline.js @@ -31,6 +31,13 @@ L.Polyline.polylineEditor = L.Polyline.extend({ }); } + this.constrLineStyle = { + dashArray: '2,10', + weight: 4, + color: 'red', + opacity: 0.5, + }; + /** * Check if there is *any* busy editable polyline on this map. */ @@ -232,7 +239,6 @@ L.Polyline.polylineEditor = L.Polyline.extend({ * bounds. */ this._showBoundMarkers = () => { - console.log('FUCKING SHOW BOUNDS'); if (!this._map) { return; } @@ -665,12 +671,12 @@ L.Polyline.polylineEditor = L.Polyline.extend({ this.constr.is_drawing = true; if (point1) { - this.constr.line1 = L.polyline([marker.getLatLng(), this.constr.point1], { dasharray: '5,1', weight: 1 }) + this.constr.line1 = L.polyline([marker.getLatLng(), this.constr.point1], this.constrLineStyle) .addTo(that._map); } if (point2) { - this.constr.line2 = L.polyline([marker.getLatLng(), this.constr.point2], { dasharray: '5,1', weight: 1 }) + this.constr.line2 = L.polyline([marker.getLatLng(), this.constr.point2], this.constrLineStyle) .addTo(that._map); }