Add geolocation (locate me)

This commit is contained in:
2026-01-19 15:39:36 +07:00
parent 295a03f45e
commit c31b656401
2 changed files with 210 additions and 11 deletions

View File

@@ -159,6 +159,11 @@ body {
display: block;
}
.search-pulse.blue {
border-color: rgba(51, 153, 204, 0.8);
background: rgba(51, 153, 204, 0.2);
}
@keyframes pulse {
0% {
transform: translate(-50%, -50%) scale(0.8);
@@ -169,3 +174,14 @@ body {
opacity: 0;
}
}
/* Locate Control */
.ol-control.ol-locate {
top: 5em; /* Position below zoom controls (usually at .5em or similar) */
right: 0.5em;
left: auto;
}
.ol-touch .ol-control.ol-locate {
top: 5.5em; /* Adjust for touch devices where controls might be larger */
}