fromUrl

fun fromUrl(url: Resource, color: Color, size: Double): ERROR CLASS: Symbol not found for PromiseResult<ERROR CLASS: Symbol not found for HTMLCanvasElement>(source)

Creates a pin with the specified icon, color, and size.

Return

The canvas element or a Promise to the canvas element that represents the generated pin.

Parameters

url

The url of the image to be stamped onto the pin.

color

The color of the pin.

size

The size of the pin, in pixels.

See also


fun fromUrl(url: String, color: Color, size: Double): ERROR CLASS: Symbol not found for PromiseResult<ERROR CLASS: Symbol not found for HTMLCanvasElement>(source)