improved josm; snapping

This commit is contained in:
zyphlar
2026-07-08 14:57:47 -07:00
parent 37398aac8c
commit cc925fd345
5 changed files with 805 additions and 9 deletions
+15 -1
View File
@@ -346,11 +346,25 @@
</div>
<button id="loadButton" class="load-button">Load from Server</button>
<button id="saveButton" disabled>Save Accepted Items</button>
<button id="saveButton" disabled>Save GeoJSON</button>
<button id="exportOsmButton" disabled style="background:#6f42c1;">Export to JOSM (.osm)</button>
<div id="status" class="status hidden"></div>
</div>
<!-- Auto-fix preview modal -->
<div id="autoFixModal" style="display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.55);z-index:10000;align-items:center;justify-content:center;">
<div style="background:white;border-radius:8px;padding:20px;max-width:520px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:0 4px 24px rgba(0,0,0,0.35);">
<h3 style="margin:0 0 8px;font-size:15px;">Review Auto-Fix Plans</h3>
<p style="font-size:12px;color:#555;margin:0 0 12px;">These removed roads need splitting. Uncheck any to skip (old way excluded from export).</p>
<div id="autoFixModalBody"></div>
<div style="margin-top:16px;display:flex;gap:8px;justify-content:flex-end;">
<button id="autoFixCancel" style="padding:8px 16px;background:#6c757d;color:white;border:none;border-radius:4px;cursor:pointer;font-size:13px;">Cancel</button>
<button id="autoFixExport" style="padding:8px 16px;background:#6f42c1;color:white;border:none;border-radius:4px;cursor:pointer;font-size:13px;">Export</button>
</div>
</div>
</div>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="{{ url_for('static', filename='map.js') }}"></script>
</body>