Skip to content

Commit 5b49f78

Browse files
committed
fixed the points look
1 parent 0f40e4a commit 5b49f78

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

frontend/src/components/MapComponent.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,7 @@ export default function MapComponent() {
125125

126126
useEffect(() => {
127127
const initMap = async () => {
128-
// Don't initialize if map already exists
129-
if (mapInstanceRef.current) {
130-
return;
131-
}
132-
128+
if (mapInstanceRef.current) return;
133129
const L = (await import('leaflet')).default;
134130

135131
// Add Leaflet CSS dynamically

frontend/src/styles/MapView.css

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,23 @@
2020
border: none !important;
2121
box-shadow: none !important;
2222
}
23-
23+
/* frontend/src/styles/MapView.css */
24+
.custom-temp-marker .temp-label {
25+
background-color: #ff0000; /* Change to your desired color */
26+
color: #ffffff; /* Text color */
27+
border-radius: 50%;
28+
padding: 5px;
29+
text-align: center;
30+
}
2431
.temp-label {
2532
display: flex;
26-
33+
justify-content: center;
34+
align-items: center;
35+
2736
transform: translateX(-10%) translateY(0.5rem);
28-
background-color: rgba(255, 255, 255, 0.85);
29-
padding: 0rem 0.3rem 0rem 0.3rem;
30-
color: rgb(0, 0, 0);
37+
background-color: rgba(255, 255, 255, 0.85); /* will be overridden inline */
38+
padding: 0.3rem 0.6rem;
39+
color: white;
3140
border-radius: 10rem;
3241
font-size: 1rem;
3342
font-weight: bold;
@@ -167,4 +176,4 @@
167176

168177
.temp-label[data-temp-category="hot"] {
169178
border-left: 4px solid #ff3b30 !important;
170-
}
179+
}

0 commit comments

Comments
 (0)