LabelImage | MapGL | 2GIS Documentation

LabelImage

Source image for text label background.

Properties
[number, number, number, number]

Sets the space in pixels between the label text box and the edge of the stretched image for all four sides [top, right, bottom, left], like in CSS. [0, 0, 0, 0] by default.

undefinednumber

The ratio of logical pixels in the image to physical pixels on the screen.

[number, number]

[width, height] — image size in logical pixels

Array<[number, number]>

Defines the parts of the image that can be stretched horizontally.

Array<[number, number]>

Defines the parts of the image that can be stretched vertically.

string

Source image URL.