fix indicator
This commit is contained in:
parent
9215e39131
commit
1aa724e7fc
1 changed files with 9 additions and 8 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue