Texture | MapGL | 2GIS Documentation
MapGL JS API

Texture

Текстуры используются для отрисовки изображений в WebGL

new constructor(src?, options)
Parameters
src?
nullTexImageSourceArrayBufferView

В качестве изображения может быть либо элемент img, либо canvas

options
TextureOptionsRecord<string, unknown>
Returns
Texture<>
Methods