feat: add geolocation button to map to center view on user position
This commit is contained in:
@@ -13,6 +13,30 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.locate-btn {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
z-index: 10;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.3);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #333;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
|
||||
.locate-btn:hover {
|
||||
background: #f0f0f0;
|
||||
color: #1a73e8;
|
||||
}
|
||||
|
||||
.controls {
|
||||
width: 350px;
|
||||
background: white;
|
||||
|
||||
Reference in New Issue
Block a user