Skip to content

Commit d4f5e8d

Browse files
committed
fix: move analytics controls to bottom-left to avoid MapTiler conflicts
- Relocate statistics toggle button (📊) to bottom-left corner - Move heatmap toggle button (🌡️) next to statistics button - Reposition statistics overlay above the control buttons - Update mobile responsive positioning for better UX - Prevent interference with MapTiler's native map controls
1 parent f02905f commit d4f5e8d

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

public/js/price-analytics.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ class PriceAnalytics {
203203
overlay.className = 'price-stats-overlay';
204204
overlay.style.cssText = `
205205
position: fixed;
206-
top: 20px;
207-
right: 20px;
206+
bottom: 80px;
207+
left: 20px;
208208
background: rgba(255, 255, 255, 0.95);
209209
backdrop-filter: blur(10px);
210210
border-radius: 12px;
@@ -358,9 +358,9 @@ class PriceAnalytics {
358358
/* Mobile responsive */
359359
@media (max-width: 768px) {
360360
.price-stats-overlay {
361-
top: 10px;
362-
right: 10px;
361+
bottom: 70px;
363362
left: 10px;
363+
right: 10px;
364364
max-width: none;
365365
min-width: 0;
366366
}
@@ -370,6 +370,14 @@ class PriceAnalytics {
370370
.price-stats-overlay .insight-icon {
371371
font-size: 12px;
372372
}
373+
#stats-toggle-button {
374+
bottom: 15px !important;
375+
left: 15px !important;
376+
}
377+
#heatmap-toggle-button {
378+
bottom: 15px !important;
379+
left: 65px !important;
380+
}
373381
}
374382
`;
375383

@@ -416,8 +424,8 @@ class PriceAnalytics {
416424
button.title = 'Toggle Price Statistics';
417425
button.style.cssText = `
418426
position: fixed;
419-
top: 80px;
420-
right: 20px;
427+
bottom: 20px;
428+
left: 20px;
421429
width: 44px;
422430
height: 44px;
423431
background: rgba(255, 255, 255, 0.9);
@@ -770,8 +778,8 @@ class PriceAnalytics {
770778
button.title = 'Toggle Price Heatmap';
771779
button.style.cssText = `
772780
position: fixed;
773-
top: 130px;
774-
right: 20px;
781+
bottom: 20px;
782+
left: 70px;
775783
width: 44px;
776784
height: 44px;
777785
background: rgba(255, 255, 255, 0.9);

0 commit comments

Comments
 (0)