# Class: ImageLoader

ImageLoader is used to load map icon images.

It is used internally by the <flow-map-icon> web component.

# Hierarchy

  • ImageLoader

# Methods

# loadImage

loadImage(src: string, width: number, height: number, pixelDensity?: number): HTMLImageElement

# Parameters:

Name Type Default value Description
src string - Image source URL.
width number - Image display width in pixels.
height number - Image display height in pixels.
pixelDensity number 2 Image pixel density. Defaults to 2 - the source image should be @2x resolution to enable better quality rendering on high-resolution displays.

Returns: HTMLImageElement