Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
MINOR: Schedule view update to render POI icon (#2044)
Browse files Browse the repository at this point in the history
In case POI icon is registered as HTMLCanvasElement in the MapViewImageCache it is not immediately "ready", hence we
need to schedule a second frame to render it correctly.

Signed-off-by: German Zargaryan <[email protected]>
  • Loading branch information
germanz authored Jan 14, 2021
1 parent bfffd69 commit b436523
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions @here/harp-mapview/lib/text/TextElementsRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,7 @@ export class TextElementsRenderer {
// Ensure that text elements still loading icons get a chance to be rendered if
// there are no text element updates in the next frames.
this.m_forceNewLabelsPass = true;
this.m_viewUpdateCallback();
}

const distanceFadeFactor = this.getDistanceFadingFactor(
Expand Down

0 comments on commit b436523

Please sign in to comment.