Немного поправил визуал
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user