mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
new-poly: fixes
This commit is contained in:
parent
193eca83c7
commit
6a15d98c04
3 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -85,7 +85,6 @@ export class NewPoly {
|
|||
};
|
||||
|
||||
updateMarks = (e, callee) => {
|
||||
console.log('upd', callee);
|
||||
// return;
|
||||
const coords = this.poly.toGeoJSON().geometry.coordinates;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue