Usage of the SDK constitutes your agreement with the Matterport SDK Agreement. Email developers@matterport.com with any questions.
Index
Methods
Methods
registerTexture
-
Introduced 3.1.68.12-7-g858688944a
Parameters
-
id: string
A user specified string to use as a lookup of this texture
-
iconSrc: string
The src of the icon, like the src of an <img>
Returns Promise<void>
-
Register a texture to use with subsequent calls like Tag.editIcon.
Note: It is recommended to host your own images to mitigate cross origin limitations.
mpSdk.Asset.registerTexture('customTextureId', 'https://[link.to/image]');