Немного поправил визуал
This commit is contained in:
@@ -28,14 +28,14 @@
|
||||
<!-- Layer Manager Panel -->
|
||||
<div class="layer-manager-panel" id="layerManagerPanel" style="display: none;">
|
||||
<div class="layer-manager-header">
|
||||
<h6><i class="bi bi-layers"></i> Управление слоями</h6>
|
||||
<h6> Управление слоями</h6>
|
||||
<button type="button" class="btn-close btn-close-white btn-sm" id="closeLayerPanel"></button>
|
||||
</div>
|
||||
<div class="layer-manager-body">
|
||||
<!-- Base Layers Section -->
|
||||
<div class="layer-section">
|
||||
<div class="layer-section-title">
|
||||
<span>🗺️ Базовые слои (тайлы)</span>
|
||||
<span>Базовые слои (тайлы)</span>
|
||||
</div>
|
||||
<div id="baseLayers"></div>
|
||||
</div>
|
||||
@@ -43,7 +43,7 @@
|
||||
<!-- Markers Layer Section (Playback) -->
|
||||
<div class="layer-section">
|
||||
<div class="layer-section-title">
|
||||
<span>📍 Слой маркеров (Playback)</span>
|
||||
<span> Слой маркеров (Playback)</span>
|
||||
</div>
|
||||
<div id="markersLayerControl"></div>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
<!-- Drawing Layers Section -->
|
||||
<div class="layer-section">
|
||||
<div class="layer-section-title">
|
||||
<span>✏️ Слои рисования</span>
|
||||
<span> Слои рисования</span>
|
||||
<button class="btn btn-sm btn-primary add-layer-btn" id="addDrawingLayerBtn" style="width: auto; margin: 0; padding: 2px 8px;">
|
||||
<i class="bi bi-plus"></i> Добавить
|
||||
</button>
|
||||
|
||||
@@ -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