Skip to content

Fix Chase cars icons not showing on map#245

Merged
LukePrior merged 1 commit intoprojecthorus:testingfrom
HoshenKadosh:testing
Mar 11, 2022
Merged

Fix Chase cars icons not showing on map#245
LukePrior merged 1 commit intoprojecthorus:testingfrom
HoshenKadosh:testing

Conversation

@HoshenKadosh
Copy link

This PR fixes #244 issue.
When there are multiple chase cars with the same color at site load, since the HTML img element is stored in icon_cache before the img loads, accessing it right away and making a canvas will not work since the img hasn’t loaded yet. So i added a listener for load.

@HoshenKadosh HoshenKadosh changed the title fix - chase cars icons cache Fix Chase cars icons not showing on map Mar 11, 2022
@LukePrior LukePrior merged commit cc47552 into projecthorus:testing Mar 11, 2022
@LukePrior
Copy link
Member

Oh awesome thanks for fixing this up, I will leave it in testing and if there aren't any problems I'll merge it into main shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments