MapModule
ClassAllows access to map texture data around a specified location.
- Available on all platforms
Since Lens Scripting v202
Index
Properties
Methods
Extends
Properties
name
name:
string
The name of the Asset in Lens Studio.
Default Value
""
Inherited from
uniqueIdentifier
readonlyuniqueIdentifier:string
Since
Lens Scripting Version 176
Inherited from
Methods
createMapTextureProvider()
createMapTextureProvider():
Texture
Creates a new texture which holds a MapTextureProvider.
Returns
Since
Lens Scripting Version 228
getTypeName()
staticgetTypeName():TypeName<MapModule>
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<MapModule>
Since
Lens Scripting Version 202
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean
Inherited from
longLatToImageRatio()
longLatToImageRatio(
longitude,latitude,location):vec2
Returns the position of the marker (relative to the associated map tile) based on the specified longitude, latitude and location. The top left corner of the provided location has a value of [0,0] and the right down corner has a value of [1.1].
Parameters
| Parameter | Type |
|---|---|
longitude | number |
latitude | number |
location | LocationAsset |
Returns
Since
Lens Scripting Version 228
See also
Map Component guide.