From 1aa724e7fc45298813a2e6dea44332c86316c2b8 Mon Sep 17 00:00:00 2001 From: Dennis Orlando Date: Sat, 2 Aug 2025 08:08:39 +0200 Subject: [PATCH] fix indicator --- src/c3nav/editor/static/editor/js/editor.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index 0e3f5a59..31b8f921 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -2076,17 +2076,18 @@ editor = { _show_snap_indicator: function(latlng, snapInfo) { editor._clear_snap_indicators(); - // snap point indicator - var indicator = L.circleMarker(latlng, { - radius: 4, - color: '#ff6b6b', - fillColor: '#ff6b6b', - fillOpacity: 0.8, + var size = 0.001; + var bounds = [ + [latlng.lat - size, latlng.lng - size], + [latlng.lat + size, latlng.lng + size] + ]; + var indicator = L.rectangle(bounds, { + color: '#666', weight: 2, lineCap: "square", fillOpacity: 1., - className: 'snap-indicator' - }); + className: 'snap-indicator' + }); editor._snap_indicator.addLayer(indicator);