Skip to content

Commit

Permalink
[frontend] replace icon anchor on minimap (#6599)
Browse files Browse the repository at this point in the history
  • Loading branch information
frapuks committed Apr 10, 2024
1 parent d9694b1 commit b5fdb21
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ const styles = () => ({
const cityIcon = (dark = true) => new L.Icon({
iconUrl: dark ? fileUri(CityDark) : fileUri(CityLight),
iconRetinaUrl: dark ? fileUri(CityDark) : fileUri(CityLight),
iconAnchor: [5, 55],
popupAnchor: [10, -44],
iconAnchor: [12, 12],
popupAnchor: [0, -12],
iconSize: [25, 25],
});

const positionIcon = (dark = true) => new L.Icon({
iconUrl: dark ? fileUri(MarkerDark) : fileUri(MarkerLight),
iconRetinaUrl: dark ? fileUri(MarkerDark) : fileUri(MarkerLight),
iconAnchor: [5, 55],
popupAnchor: [10, -44],
iconAnchor: [12, 12],
popupAnchor: [0, -12],
iconSize: [25, 25],
});

Expand Down

0 comments on commit b5fdb21

Please sign in to comment.