mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
done update after point delete
This commit is contained in:
parent
121ec610e0
commit
d0b5f3bd94
6 changed files with 13 additions and 15 deletions
|
@ -267,10 +267,10 @@ L.Polyline.polylineEditor = L.Polyline.extend({
|
|||
}
|
||||
|
||||
// todo: optimise this
|
||||
for (let polylineNo in that._map._editablePolylines) {
|
||||
for (const polylineNo in that._map._editablePolylines) {
|
||||
const polyline = that._map._editablePolylines[polylineNo];
|
||||
|
||||
for (let markerNo in polyline._markers) {
|
||||
for (const markerNo in polyline._markers) {
|
||||
const marker = polyline._markers[markerNo];
|
||||
|
||||
if (found < that._options.maxMarkers) {
|
||||
|
@ -435,6 +435,8 @@ L.Polyline.polylineEditor = L.Polyline.extend({
|
|||
|
||||
this._markers.splice(_pointNo, 1);
|
||||
this._reloadPolyline(_pointNo);
|
||||
|
||||
if (this._options.onPointAdded) this._options.onPointAdded(event, 'dropped');
|
||||
});
|
||||
|
||||
// marker.on(that._options.addFirstLastPointEvent, (event) => {
|
||||
|
|
|
@ -30,7 +30,7 @@ export const pushLoaderState = state => {
|
|||
document.getElementById('loader-bar').style.width = `${state}%`;
|
||||
};
|
||||
|
||||
export const pushNetworkInitError = state => {
|
||||
export const pushNetworkInitError = () => {
|
||||
document.getElementById('loader-error').style.opacity = 1;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue