Maps SDK for Web

tt.VideoSource

A data source containing video.

Methods

pause( )

Pauses the video.

play( )

Plays the video

setCoordinates(coordinates): tt.VideoSource

Sets the image's coordinates and re-renders the map.

Example
const videoSource = map.getSource('my-video'):

videoSource.setCoordinates([
    [21.54, 52.18],
    [21.52, 52.18],
    [21.52, 52.17],
    [21.54, 52.17]
]);

Parameters
Name Description
coordinates
Array
default:None
Four geographical coordinates, represented as arrays of longitude and latitude numbers, which define the corners of the image. The coordinates start at the top left corner of the image and proceed in clockwise order. They do not have to represent a rectangle.
Returns

this