fix indicator

This commit is contained in:
Dennis Orlando 2025-08-02 08:08:39 +02:00
parent 9215e39131
commit 1aa724e7fc

View file

@ -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);