Skip to content

Commit

Permalink
attempt to hide the accuracy layer as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Nov 4, 2024
1 parent 14125ca commit 23484cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@
if (mapglobal.getLayer('km_line')) {
mapglobal.setLayoutProperty('km_line', 'visibility', 'visible');
}
if (mapglobal.getLayer('userpositionacclayer')) {
mapglobal.setLayoutProperty('userpositionacclayer', 'visibility', 'visible');
}
} else {
if (mapglobal.getLayer('geolocationheadingshell')) {
mapglobal.setLayoutProperty('geolocationheadingshell', 'visibility', 'none');
Expand All @@ -392,6 +396,10 @@
if (mapglobal.getLayer('nobearing_position')) {
mapglobal.setLayoutProperty('nobearing_position', 'visibility', 'none');
}
if (mapglobal.getLayer('userpositionacclayer')) {
mapglobal.setLayoutProperty('uuserpositionacclayer', 'visibility', 'none');
}
}
if (mapglobal.getLayer('foamershapes')) {
Expand Down

0 comments on commit 23484cd

Please sign in to comment.