Skip to content

Commit

Permalink
Adjust compass heading marker anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
steinbro committed Jul 14, 2024
1 parent 4ecf9c9 commit f793925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/MapDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ var beaconLayer = new L.LayerGroup();
// Create a custom divIcon with rotation
var arrowIcon = L.divIcon({
className: 'arrow-icon',
iconSize: [0, 0], // set size to 0, as it's controlled by CSS
iconAnchor: [7, 25] // adjust anchor based on the arrow design
iconSize: [0, 0],
iconAnchor: [12, 30],
});
var beaconIcon = L.divIcon({
Expand Down Expand Up @@ -141,7 +141,7 @@ watch(props.beacon, (newValue, oldValue) => {
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 40px solid red;
border-bottom: 30px solid red;
transform-origin: bottom center;
}
Expand Down

0 comments on commit f793925

Please sign in to comment.