fix styling for indicator
This commit is contained in:
parent
354949527b
commit
404117d170
2 changed files with 6 additions and 6 deletions
|
@ -601,7 +601,7 @@ label.theme-color-label {
|
||||||
|
|
||||||
/* Snap indicator styles */
|
/* Snap indicator styles */
|
||||||
.snap-indicator {
|
.snap-indicator {
|
||||||
transform: scale(13.6);
|
transform: scale(11.6);
|
||||||
transform-box: fill-box;
|
transform-box: fill-box;
|
||||||
transform-origin: center;
|
transform-origin: center;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
|
|
@ -1800,6 +1800,7 @@ editor = {
|
||||||
|
|
||||||
// Check each edge of the geometry
|
// Check each edge of the geometry
|
||||||
for (var i = 0; i < coordinates.length; i++) {
|
for (var i = 0; i < coordinates.length; i++) {
|
||||||
|
|
||||||
var p1 = coordinates[i];
|
var p1 = coordinates[i];
|
||||||
var p2 = coordinates[(i + 1) % coordinates.length];
|
var p2 = coordinates[(i + 1) % coordinates.length];
|
||||||
|
|
||||||
|
@ -1871,11 +1872,10 @@ editor = {
|
||||||
];
|
];
|
||||||
|
|
||||||
var indicator = L.rectangle(bounds, {
|
var indicator = L.rectangle(bounds, {
|
||||||
color: '#ff6b6b',
|
color: '#666',
|
||||||
weight: 2,
|
weight: 2,
|
||||||
lineCap: "square",
|
lineCap: "square",
|
||||||
fillColor: '#ff6b6b',
|
fillOpacity: 1.,
|
||||||
fillOpacity: 0.8,
|
|
||||||
className: 'snap-indicator'
|
className: 'snap-indicator'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue