Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wkramer committed Apr 25, 2024
1 parent 8f48df9 commit 16169b7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/lib/location-icons/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ function getUniqueIconNames(
function addDefaultSelectedLocationIconToMap(map: Map): void {
const iconId = 'selected-location'
if (map.hasImage(iconId)) return
map.loadImage(`${import.meta.env.BASE_URL}images/map-marker.png`, function (error, image) {
if (error) throw error
if (image) map.addImage(iconId, image)
})
map.loadImage(
`${import.meta.env.BASE_URL}images/map-marker.png`,
function (error, image) {
if (error) throw error
if (image) map.addImage(iconId, image)
},
)
}

async function convertSvgToBitmap(
Expand Down

0 comments on commit 16169b7

Please sign in to comment.