Немного поправил визуал

This commit is contained in:
2025-12-04 09:27:06 +03:00
parent 24314b84ac
commit 30b56de709
2 changed files with 16 additions and 15 deletions

View File

@@ -385,11 +385,12 @@ class CustomMarkerTool {
this.map.on('click', this.clickHandler);
// Show instruction
this.showInstruction('Кликните на карту для размещения маркера. ESC для отмены.');
this.showInstruction('Кликните на карту для размещения маркера.');
// Add keyboard handlers
this.keyHandler = (e) => {
if (e.key === 'Escape') {
console.log("Жму кнопку");
this.deactivate();
} else if (e.key === 'Enter' && this.pendingMarkerLatLng) {
this.placeMarker(this.pendingMarkerLatLng);
@@ -526,17 +527,17 @@ class CustomMarkerTool {
}
instruction.innerHTML = `
<span>${text}</span>
<button id="finishMarkerBtn" style="
background: white;
color: #007bff;
border: none;
padding: 4px 12px;
border-radius: 3px;
cursor: pointer;
font-weight: 500;
font-size: 12px;
">Отмена (ESC)</button>
`;
// <button id="finishMarkerBtn" style="
// background: white;
// color: #007bff;ы
// border: none;
// padding: 4px 12px;
// border-radius: 3px;
// cursor: pointer;
// font-weight: 500;
// font-size: 12px;
// ">Отмена (ESC)</button>
instruction.style.display = 'flex';
// Add finish button handler