Initial commit: RF Mapper v0.3.0-dev

WiFi & Bluetooth signal mapping tool for Raspberry Pi with:
- WiFi scanning via iw command
- Bluetooth Classic/BLE device discovery
- RSSI-based distance estimation
- OUI manufacturer lookup
- Web dashboard with multiple views:
  - Radar view (polar plot)
  - 2D Map (Leaflet/OpenStreetMap)
  - 3D Map (MapLibre GL JS with building extrusion)
- Floor-based device positioning
- Live BT tracking mode (auto-starts on page load)
- SQLite database for historical device tracking:
  - RSSI time-series history
  - Device statistics (avg/min/max)
  - Movement detection and velocity estimation
  - Activity patterns (hourly/daily)
  - New device alerts
  - Automatic data retention/cleanup
- REST API for all functionality

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
User
2026-02-01 00:08:21 +01:00
commit 52df6421be
33 changed files with 8939 additions and 0 deletions

View File

@@ -0,0 +1,948 @@
/* RF Mapper - Main Stylesheet */
:root {
--bg-primary: #1a1a2e;
--bg-secondary: #16213e;
--bg-tertiary: #0f3460;
--bg-dark: #0a0a1a;
--color-primary: #00ff88;
--color-secondary: #4dabf7;
--color-warning: #ffd93d;
--color-danger: #ff6b6b;
--color-text: #eee;
--color-text-muted: #888;
--color-text-dim: #666;
--border-color: #0f3460;
--border-radius: 4px;
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--font-family);
background: var(--bg-primary);
color: var(--color-text);
min-height: 100vh;
}
/* Header */
.header {
background: var(--bg-secondary);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid var(--border-color);
}
.header h1 {
color: var(--color-primary);
font-size: 1.5rem;
}
.header-controls {
display: flex;
gap: 1rem;
align-items: center;
}
/* Buttons */
.btn {
background: var(--bg-tertiary);
color: var(--color-primary);
border: 1px solid var(--color-primary);
padding: 0.5rem 1rem;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s;
}
.btn:hover {
background: var(--color-primary);
color: var(--bg-primary);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-danger {
border-color: var(--color-danger);
color: var(--color-danger);
}
.btn-danger:hover {
background: var(--color-danger);
color: var(--bg-primary);
}
/* Layout */
.main-container {
display: grid;
grid-template-columns: 1fr 350px;
height: calc(100vh - 60px);
}
.map-container {
position: relative;
}
#map {
height: 100%;
width: 100%;
background: var(--bg-dark);
}
/* View Toggle */
.view-toggle {
position: absolute;
top: 10px;
left: 50px;
z-index: 1000;
display: flex;
gap: 0;
}
.view-toggle button {
background: var(--bg-secondary);
color: var(--color-text-muted);
border: 1px solid var(--border-color);
padding: 0.5rem 1rem;
cursor: pointer;
}
.view-toggle button:first-child {
border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.view-toggle button:last-child {
border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.view-toggle button:not(:first-child):not(:last-child) {
border-radius: 0;
}
.view-toggle button.active {
background: var(--bg-tertiary);
color: var(--color-primary);
}
/* Filter Controls */
.filter-controls {
position: absolute;
top: 10px;
right: 10px;
z-index: 1000;
display: flex;
gap: 0.5rem;
}
.filter-btn {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
padding: 0.5rem 0.75rem;
border-radius: var(--border-radius);
cursor: pointer;
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.85rem;
transition: all 0.2s;
}
.filter-btn.wifi {
color: var(--color-primary);
border-color: var(--color-primary);
}
.filter-btn.wifi.inactive {
color: #555;
border-color: #333;
background: #111;
}
.filter-btn.bluetooth {
color: var(--color-secondary);
border-color: var(--color-secondary);
}
.filter-btn.bluetooth.inactive {
color: #555;
border-color: #333;
background: #111;
}
.filter-btn:hover {
transform: scale(1.05);
}
.filter-indicator {
width: 8px;
height: 8px;
border-radius: 50%;
background: currentColor;
}
.filter-btn.inactive .filter-indicator {
background: #333;
}
/* Sidebar */
.sidebar {
background: var(--bg-secondary);
border-left: 2px solid var(--border-color);
overflow-y: auto;
padding: 1rem;
}
.section {
margin-bottom: 1.5rem;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border-color);
}
.section-title {
color: var(--color-primary);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.device-count {
background: var(--bg-tertiary);
color: var(--color-primary);
padding: 0.2rem 0.5rem;
border-radius: 10px;
font-size: 0.8rem;
}
/* Device Cards */
.device-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.device-card {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 0.75rem;
cursor: pointer;
transition: all 0.2s;
}
.device-card:hover {
border-color: var(--color-primary);
transform: translateX(3px);
}
.device-card.wifi {
border-left: 3px solid var(--color-primary);
}
.device-card.bluetooth {
border-left: 3px solid var(--color-secondary);
}
.device-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.device-name {
font-weight: 600;
margin-bottom: 0.25rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.device-info {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: var(--color-text-muted);
}
/* Signal Bars */
.signal-bar {
display: flex;
gap: 2px;
align-items: flex-end;
height: 12px;
}
.signal-bar span {
width: 4px;
background: #333;
border-radius: 1px;
}
.signal-bar span.active {
background: var(--color-primary);
}
.signal-bar.weak span.active {
background: var(--color-danger);
}
.signal-bar.fair span.active {
background: var(--color-warning);
}
/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}
.stat-card {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 0.75rem;
text-align: center;
}
.stat-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--color-primary);
}
.stat-label {
font-size: 0.7rem;
color: var(--color-text-muted);
text-transform: uppercase;
}
/* Radar Canvas */
.radar-canvas {
width: 100%;
height: 100%;
display: none;
}
.radar-canvas.active {
display: block;
}
#leaflet-map {
height: 100%;
width: 100%;
}
#leaflet-map.hidden {
display: none;
}
/* Misc */
.scan-info {
font-size: 0.8rem;
color: var(--color-text-muted);
margin-bottom: 1rem;
}
.manufacturer {
font-size: 0.75rem;
color: var(--color-text-dim);
font-style: italic;
}
.position-input {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.position-input input {
flex: 1;
background: var(--bg-primary);
border: 1px solid var(--border-color);
color: var(--color-text);
padding: 0.5rem;
border-radius: var(--border-radius);
font-size: 0.9rem;
}
.loading {
display: flex;
align-items: center;
justify-content: center;
height: 100px;
color: var(--color-text-muted);
}
.loading::after {
content: '';
width: 20px;
height: 20px;
border: 2px solid var(--border-color);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-left: 10px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.distance-badge {
background: var(--bg-tertiary);
color: var(--color-primary);
padding: 0.1rem 0.4rem;
border-radius: 3px;
font-size: 0.75rem;
}
/* Bluetooth Identify */
.identify-btn {
background: transparent;
border: 1px solid var(--color-secondary);
color: var(--color-secondary);
padding: 0.2rem 0.4rem;
border-radius: 3px;
cursor: pointer;
font-size: 0.7rem;
transition: all 0.2s;
}
.identify-btn:hover {
background: var(--color-secondary);
color: var(--bg-primary);
}
.identify-btn.loading {
opacity: 0.5;
cursor: wait;
}
.device-services {
font-size: 0.7rem;
color: var(--color-secondary);
margin-top: 0.3rem;
display: none;
}
.device-services.visible {
display: block;
}
.service-tag {
display: inline-block;
background: var(--bg-tertiary);
color: var(--color-secondary);
padding: 0.1rem 0.3rem;
border-radius: 2px;
margin: 0.1rem;
font-size: 0.65rem;
}
.device-type-badge {
background: #1a3a5c;
color: var(--color-secondary);
padding: 0.2rem 0.5rem;
border-radius: 3px;
font-size: 0.7rem;
margin-top: 0.3rem;
display: inline-block;
}
/* Auto-Scan Controls */
.autoscan-status {
font-size: 0.75rem;
padding: 0.2rem 0.5rem;
border-radius: 3px;
background: var(--bg-tertiary);
color: var(--color-text-muted);
}
.autoscan-status.running {
background: rgba(0, 255, 136, 0.2);
color: var(--color-primary);
}
.autoscan-controls {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.autoscan-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.autoscan-row label {
font-size: 0.8rem;
color: var(--color-text-muted);
}
.autoscan-row input {
width: 80px;
padding: 0.3rem 0.5rem;
background: var(--bg-dark);
border: 1px solid var(--border-color);
color: var(--color-text);
border-radius: var(--border-radius);
font-size: 0.8rem;
}
.autoscan-row input[type="text"] {
width: 100px;
}
#autoscan-info {
font-size: 0.75rem;
color: var(--color-text-dim);
padding: 0.25rem 0;
}
.autoscan-buttons {
display: flex;
gap: 0.5rem;
margin-top: 0.25rem;
}
.btn-small {
padding: 0.3rem 0.75rem;
font-size: 0.75rem;
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--color-text);
}
.btn-secondary:hover {
background: #1a5a8a;
}
#autoscan-btn.active {
background: rgba(0, 255, 136, 0.2);
color: var(--color-primary);
border-color: var(--color-primary);
}
/* Device Detail Panel */
.device-detail-panel {
position: absolute;
background: var(--bg-secondary);
border: 1px solid var(--color-primary);
border-radius: var(--border-radius);
padding: 1rem;
min-width: 220px;
max-width: 300px;
z-index: 1001;
box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
opacity: 0;
transform: scale(0.9);
transition: opacity 0.2s, transform 0.2s;
pointer-events: none;
}
.device-detail-panel.visible {
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
.device-detail-panel.hidden {
display: none;
}
.detail-close {
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: none;
border: none;
color: var(--color-text-muted);
font-size: 1.2rem;
cursor: pointer;
padding: 0 0.3rem;
}
.detail-close:hover {
color: var(--color-text);
}
.detail-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border-color);
}
.detail-icon {
font-size: 1.2rem;
}
.detail-name {
font-weight: 600;
font-size: 1rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.detail-content {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.detail-row {
display: flex;
justify-content: space-between;
font-size: 0.85rem;
}
.detail-label {
color: var(--color-text-muted);
}
.detail-value {
color: var(--color-text);
font-weight: 500;
}
.device-detail-panel.wifi {
border-color: var(--color-primary);
box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}
.device-detail-panel.bluetooth {
border-color: var(--color-secondary);
box-shadow: 0 4px 20px rgba(77, 171, 247, 0.2);
}
/* Radar hover tooltip */
.radar-tooltip {
position: absolute;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
padding: 0.3rem 0.5rem;
border-radius: var(--border-radius);
font-size: 0.8rem;
pointer-events: none;
z-index: 1000;
white-space: nowrap;
opacity: 0;
transition: opacity 0.15s;
}
.radar-tooltip.visible {
opacity: 1;
}
/* 3D Map View */
.map-3d {
width: 100%;
height: 100%;
background: var(--bg-dark);
}
.map-3d.hidden {
display: none;
}
.map-3d.active {
display: block;
}
/* MapLibre popup overrides to match theme */
.maplibregl-popup-content {
background: var(--bg-secondary) !important;
color: var(--color-text) !important;
border: 1px solid var(--color-primary) !important;
border-radius: var(--border-radius) !important;
padding: 0.75rem !important;
box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2) !important;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
border-top-color: var(--color-primary) !important;
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
border-bottom-color: var(--color-primary) !important;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
border-right-color: var(--color-primary) !important;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
border-left-color: var(--color-primary) !important;
}
.maplibregl-popup-close-button {
color: var(--color-text-muted) !important;
font-size: 1.2rem !important;
}
.maplibregl-popup-close-button:hover {
color: var(--color-text) !important;
background: transparent !important;
}
/* Popup floor control */
.popup-floor-control {
margin-top: 6px;
padding-top: 6px;
display: flex;
align-items: center;
gap: 8px;
}
.popup-floor-control:first-of-type {
margin-top: 8px;
border-top: 1px solid var(--border-color);
}
.popup-floor-control label {
font-weight: bold;
color: var(--color-text-muted);
}
.popup-floor-control select {
flex: 1;
padding: 4px 8px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
color: var(--color-text);
border-radius: var(--border-radius);
cursor: pointer;
}
.popup-floor-control select:hover {
border-color: var(--color-primary);
}
.popup-floor-control select:focus {
outline: none;
border-color: var(--color-primary);
}
.popup-floor-control input[type="number"] {
flex: 1;
max-width: 80px;
padding: 4px 8px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
color: var(--color-text);
border-radius: var(--border-radius);
}
.popup-floor-control input[type="number"]:hover {
border-color: var(--color-primary);
}
.popup-floor-control input[type="number"]:focus {
outline: none;
border-color: var(--color-primary);
}
.popup-floor-control input[type="number"]::placeholder {
color: var(--color-text-muted);
opacity: 0.7;
}
/* Live Track Button */
#live-track-btn.active {
background: var(--color-accent);
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
/* Moving device markers - purple */
.marker-3d.moving .marker-icon {
background: #9b59b6 !important;
box-shadow: 0 0 15px rgba(155, 89, 182, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5) !important;
animation: moving-pulse 0.8s ease-in-out infinite;
}
.marker-3d.moving .marker-floor {
background: #9b59b6 !important;
}
@keyframes moving-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.15); }
}
/* 3D Markers */
.marker-3d {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.marker-3d .marker-icon {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: bold;
color: var(--bg-primary);
}
.marker-3d:hover {
transform: scale(1.2);
}
.marker-3d .marker-floor {
font-size: 10px;
font-weight: bold;
color: white;
background: rgba(0, 0, 0, 0.7);
padding: 1px 4px;
border-radius: 3px;
margin-top: 2px;
white-space: nowrap;
}
.marker-3d.wifi .marker-icon {
background: var(--color-primary);
box-shadow: 0 0 15px var(--color-primary), 0 2px 8px rgba(0, 0, 0, 0.5);
border: 2px solid rgba(255, 255, 255, 0.3);
}
.marker-3d.bluetooth .marker-icon {
background: var(--color-secondary);
box-shadow: 0 0 15px var(--color-secondary), 0 2px 8px rgba(0, 0, 0, 0.5);
border: 2px solid rgba(255, 255, 255, 0.3);
}
.marker-3d.center .marker-icon {
background: #ffffff;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
border: 3px solid var(--color-primary);
width: 24px;
height: 24px;
z-index: 100;
}
/* Floor Controls */
.floor-section {
display: block;
}
.floor-controls {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.floor-controls select {
width: 100%;
padding: 0.5rem;
background: var(--bg-primary);
border: 1px solid var(--border-color);
color: var(--color-text);
border-radius: var(--border-radius);
font-size: 0.9rem;
cursor: pointer;
}
.floor-controls select:hover {
border-color: var(--color-primary);
}
.floor-controls select:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}
.floor-info {
font-size: 0.8rem;
color: var(--color-text-muted);
padding: 0.25rem 0;
}
#floor-device-count {
color: var(--color-primary);
font-weight: 600;
}
/* 3D Map Controls Override */
.maplibregl-ctrl-group {
background: var(--bg-secondary) !important;
border: 1px solid var(--border-color) !important;
}
.maplibregl-ctrl-group button {
background-color: var(--bg-secondary) !important;
border-color: var(--border-color) !important;
}
.maplibregl-ctrl-group button:hover {
background-color: var(--bg-tertiary) !important;
}
.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
filter: invert(1);
}
.maplibregl-ctrl-attrib {
background: rgba(22, 33, 62, 0.8) !important;
color: var(--color-text-muted) !important;
}
.maplibregl-ctrl-attrib a {
color: var(--color-primary) !important;
}
/* Responsive */
@media (max-width: 768px) {
.main-container {
grid-template-columns: 1fr;
}
.sidebar {
max-height: 40vh;
border-left: none;
border-top: 2px solid var(--border-color);
}
}

View File

@@ -0,0 +1,661 @@
/* required styles */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
position: absolute;
left: 0;
top: 0;
}
.leaflet-container {
overflow: hidden;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-user-drag: none;
}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
image-rendering: -webkit-optimize-contrast;
}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
width: 1600px;
height: 1600px;
-webkit-transform-origin: 0 0;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
display: block;
}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
max-width: none !important;
max-height: none !important;
}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
max-width: none !important;
max-height: none !important;
width: auto;
padding: 0;
}
.leaflet-container img.leaflet-tile {
/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
mix-blend-mode: plus-lighter;
}
.leaflet-container.leaflet-touch-zoom {
-ms-touch-action: pan-x pan-y;
touch-action: pan-x pan-y;
}
.leaflet-container.leaflet-touch-drag {
-ms-touch-action: pinch-zoom;
/* Fallback for FF which doesn't support pinch-zoom */
touch-action: none;
touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
-ms-touch-action: none;
touch-action: none;
}
.leaflet-container {
-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
filter: inherit;
visibility: hidden;
}
.leaflet-tile-loaded {
visibility: inherit;
}
.leaflet-zoom-box {
width: 0;
height: 0;
-moz-box-sizing: border-box;
box-sizing: border-box;
z-index: 800;
}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
-moz-user-select: none;
}
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg { z-index: 200; }
.leaflet-vml-shape {
width: 1px;
height: 1px;
}
.lvml {
behavior: url(#default#VML);
display: inline-block;
position: absolute;
}
/* control positioning */
.leaflet-control {
position: relative;
z-index: 800;
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
position: absolute;
z-index: 1000;
pointer-events: none;
}
.leaflet-top {
top: 0;
}
.leaflet-right {
right: 0;
}
.leaflet-bottom {
bottom: 0;
}
.leaflet-left {
left: 0;
}
.leaflet-control {
float: left;
clear: both;
}
.leaflet-right .leaflet-control {
float: right;
}
.leaflet-top .leaflet-control {
margin-top: 10px;
}
.leaflet-bottom .leaflet-control {
margin-bottom: 10px;
}
.leaflet-left .leaflet-control {
margin-left: 10px;
}
.leaflet-right .leaflet-control {
margin-right: 10px;
}
/* zoom and fade animations */
.leaflet-fade-anim .leaflet-popup {
opacity: 0;
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
opacity: 1;
}
.leaflet-zoom-animated {
-webkit-transform-origin: 0 0;
-ms-transform-origin: 0 0;
transform-origin: 0 0;
}
svg.leaflet-zoom-animated {
will-change: transform;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
-webkit-transition: none;
-moz-transition: none;
transition: none;
}
.leaflet-zoom-anim .leaflet-zoom-hide {
visibility: hidden;
}
/* cursors */
.leaflet-interactive {
cursor: pointer;
}
.leaflet-grab {
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
cursor: crosshair;
}
.leaflet-popup-pane,
.leaflet-control {
cursor: auto;
}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
cursor: move;
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grabbing;
}
/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
pointer-events: none;
}
.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
pointer-events: auto;
}
/* visual tweaks */
.leaflet-container {
background: #ddd;
outline-offset: 1px;
}
.leaflet-container a {
color: #0078A8;
}
.leaflet-zoom-box {
border: 2px dotted #38f;
background: rgba(255,255,255,0.5);
}
/* general typography */
.leaflet-container {
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
font-size: 12px;
font-size: 0.75rem;
line-height: 1.5;
}
/* general toolbar styles */
.leaflet-bar {
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
border-radius: 4px;
}
.leaflet-bar a {
background-color: #fff;
border-bottom: 1px solid #ccc;
width: 26px;
height: 26px;
line-height: 26px;
display: block;
text-align: center;
text-decoration: none;
color: black;
}
.leaflet-bar a,
.leaflet-control-layers-toggle {
background-position: 50% 50%;
background-repeat: no-repeat;
display: block;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
background-color: #f4f4f4;
}
.leaflet-bar a:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.leaflet-bar a:last-child {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom: none;
}
.leaflet-bar a.leaflet-disabled {
cursor: default;
background-color: #f4f4f4;
color: #bbb;
}
.leaflet-touch .leaflet-bar a {
width: 30px;
height: 30px;
line-height: 30px;
}
.leaflet-touch .leaflet-bar a:first-child {
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.leaflet-touch .leaflet-bar a:last-child {
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
/* zoom control */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
font: bold 18px 'Lucida Console', Monaco, monospace;
text-indent: 1px;
}
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
font-size: 22px;
}
/* layers control */
.leaflet-control-layers {
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
background: #fff;
border-radius: 5px;
}
.leaflet-control-layers-toggle {
background-image: url(images/layers.png);
width: 36px;
height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
background-image: url(images/layers-2x.png);
background-size: 26px 26px;
}
.leaflet-touch .leaflet-control-layers-toggle {
width: 44px;
height: 44px;
}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
display: none;
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
display: block;
position: relative;
}
.leaflet-control-layers-expanded {
padding: 6px 10px 6px 6px;
color: #333;
background: #fff;
}
.leaflet-control-layers-scrollbar {
overflow-y: scroll;
overflow-x: hidden;
padding-right: 5px;
}
.leaflet-control-layers-selector {
margin-top: 2px;
position: relative;
top: 1px;
}
.leaflet-control-layers label {
display: block;
font-size: 13px;
font-size: 1.08333em;
}
.leaflet-control-layers-separator {
height: 0;
border-top: 1px solid #ddd;
margin: 5px -10px 5px -6px;
}
/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
background-image: url(images/marker-icon.png);
}
/* attribution and scale controls */
.leaflet-container .leaflet-control-attribution {
background: #fff;
background: rgba(255, 255, 255, 0.8);
margin: 0;
}
.leaflet-control-attribution,
.leaflet-control-scale-line {
padding: 0 5px;
color: #333;
line-height: 1.4;
}
.leaflet-control-attribution a {
text-decoration: none;
}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
text-decoration: underline;
}
.leaflet-attribution-flag {
display: inline !important;
vertical-align: baseline !important;
width: 1em;
height: 0.6669em;
}
.leaflet-left .leaflet-control-scale {
margin-left: 5px;
}
.leaflet-bottom .leaflet-control-scale {
margin-bottom: 5px;
}
.leaflet-control-scale-line {
border: 2px solid #777;
border-top: none;
line-height: 1.1;
padding: 2px 5px 1px;
white-space: nowrap;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: rgba(255, 255, 255, 0.8);
text-shadow: 1px 1px #fff;
}
.leaflet-control-scale-line:not(:first-child) {
border-top: 2px solid #777;
border-bottom: none;
margin-top: -2px;
}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
border-bottom: 2px solid #777;
}
.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
box-shadow: none;
}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
border: 2px solid rgba(0,0,0,0.2);
background-clip: padding-box;
}
/* popup */
.leaflet-popup {
position: absolute;
text-align: center;
margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
padding: 1px;
text-align: left;
border-radius: 12px;
}
.leaflet-popup-content {
margin: 13px 24px 13px 20px;
line-height: 1.3;
font-size: 13px;
font-size: 1.08333em;
min-height: 1px;
}
.leaflet-popup-content p {
margin: 17px 0;
margin: 1.3em 0;
}
.leaflet-popup-tip-container {
width: 40px;
height: 20px;
position: absolute;
left: 50%;
margin-top: -1px;
margin-left: -20px;
overflow: hidden;
pointer-events: none;
}
.leaflet-popup-tip {
width: 17px;
height: 17px;
padding: 1px;
margin: -10px auto 0;
pointer-events: auto;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
background: white;
color: #333;
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}
.leaflet-container a.leaflet-popup-close-button {
position: absolute;
top: 0;
right: 0;
border: none;
text-align: center;
width: 24px;
height: 24px;
font: 16px/24px Tahoma, Verdana, sans-serif;
color: #757575;
text-decoration: none;
background: transparent;
}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
color: #585858;
}
.leaflet-popup-scrolled {
overflow: auto;
}
.leaflet-oldie .leaflet-popup-content-wrapper {
-ms-zoom: 1;
}
.leaflet-oldie .leaflet-popup-tip {
width: 24px;
margin: 0 auto;
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}
.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
border: 1px solid #999;
}
/* div icon */
.leaflet-div-icon {
background: #fff;
border: 1px solid #666;
}
/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
position: absolute;
padding: 6px;
background-color: #fff;
border: 1px solid #fff;
border-radius: 3px;
color: #222;
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
pointer-events: none;
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.leaflet-tooltip.leaflet-interactive {
cursor: pointer;
pointer-events: auto;
}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
position: absolute;
pointer-events: none;
border: 6px solid transparent;
background: transparent;
content: "";
}
/* Directions */
.leaflet-tooltip-bottom {
margin-top: 6px;
}
.leaflet-tooltip-top {
margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
left: 50%;
margin-left: -6px;
}
.leaflet-tooltip-top:before {
bottom: 0;
margin-bottom: -12px;
border-top-color: #fff;
}
.leaflet-tooltip-bottom:before {
top: 0;
margin-top: -12px;
margin-left: -6px;
border-bottom-color: #fff;
}
.leaflet-tooltip-left {
margin-left: -6px;
}
.leaflet-tooltip-right {
margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
top: 50%;
margin-top: -6px;
}
.leaflet-tooltip-left:before {
right: 0;
margin-right: -12px;
border-left-color: #fff;
}
.leaflet-tooltip-right:before {
left: 0;
margin-left: -12px;
border-right-color: #fff;
}
/* Printing */
@media print {
/* Prevent printers from removing background-images of controls. */
.leaflet-control {
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
}

File diff suppressed because one or more lines are too long