Skip to content

Commit

Permalink
fix(map-center): map center real position. fix(draw-route): start and…
Browse files Browse the repository at this point in the history
… stop overlap
  • Loading branch information
azarz committed Feb 6, 2024
1 parent 894b97d commit 78a5471
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/css/map-buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
background-position: center;
position: fixed;
left: calc(50vw - 25px);
top: calc((100vh - 72px - var(--safe-area-inset-bottom))/2 - 25px);
top: calc((100vh - 52px - var(--safe-area-inset-bottom))/2 - 25px);
pointer-events: none;
}

Expand Down
2 changes: 2 additions & 0 deletions src/js/directions/directions-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ const layers = [
type: "symbol",
source: "maplibre-gl-directions",
layout: {
"icon-allow-overlap": true,
"icon-image": "routeDepartureIcon",
"icon-size": [
"interpolate",
Expand All @@ -170,6 +171,7 @@ const layers = [
type: "symbol",
source: "maplibre-gl-directions",
layout: {
"icon-allow-overlap": true,
"icon-image": "routeDestinationIcon",
"icon-size": [
"interpolate",
Expand Down

0 comments on commit 78a5471

Please sign in to comment.