Raster
Class for creating a raster on the map.
new constructor
(map, options)
Example:
const raster = new mapgl.Raster(map, {
bounds: map.getBounds(),
image: {
url: 'some/url'
},
});
Parameters
Methods
Class for creating a raster on the map.
(map, options)
Example:
const raster = new mapgl.Raster(map, {
bounds: map.getBounds(),
image: {
url: 'some/url'
},
});
()
Destroys the raster.
void
(options)
Updates an image URL or size of the raster on the map.
options
Options that include a URL or geographical bounds.
Promise<void>