Altus Mapping Engine JavaScript API Reference - v2.0.ut.2153.g60764257e - Tuesday May 16, 2022 SDK Documentation | Builds | BA3 Home
AltusUnified::VectorMap Class Reference

Represents a map of vector data that is rarely updated. Tiles are generated using this map and lines and polygons are split across tiles if necessary. For a vector map of frequently updated or deleted shapes, see DynamicVectorMap. More...

Inheritance diagram for AltusUnified::VectorMap:
Collaboration diagram for AltusUnified::VectorMap:

Public Member Functions

 VectorMap (string name)
 Constructor More...
 
void addLine (VectorGeographicPosition2D points, LineStyle style)
 Adds a line to this map More...
 
void addPolygon (string shapeId, VectorGeographicPosition2D points, PolygonStyle style)
 Adds a polygon to this map More...
 
 Public Member Functions inherited from AltusUnified::VectorMapBase
void setDelegate (VectorMapDelegate delegate)
 
void setTesselationThreshold (double thresholdInMeters)
 Sets the tesselation threshold for this map, in meters. Lines longer than this threshold are split up. More...
 
void setForce3DLines (bool enabled)
 Promotes all 2D lines and polygon outlines to use the 3D line rendering path, defaults to false; More...
 
VectorGeometryHit triggerLineHitDetection (vec2d point, double maxPointDistanceToVertex, double maxPointDistanceToLine)
 Trigger line hit detection on this map (must be called after adding the map to the scene). This returns the hit line/vertex and also calls the map delegate, if set. More...
 
VectorString getPolygonHitShapeIds (vec2d point)
 Retrieve the ShapeIds of the polygons below a screen pointl More...
 
void updateLineStyle (LineStyle style, double animationDuration)
 Updates the line style for this map. All lines using this style will be updated More...
 
void updatePolygonStyle (PolygonStyle style, double animationDuration)
 Updates the polygon style for this map. All polygons using this style will be updated More...
 
void setVectorWindingOrder (VectorWindingOrder windingOrder)
 Sets the vector winding order for this map. Polygons have a front face and a back face and this determines which is which. More...
 
void setDepthRead (BooleanState depthRead)
 Turns depth testing on or off for this map. When on, vectors can be occluded by other geometry, such as terrain. It is very likely that this should only be changed for maps containing only 3D vectors. 2D vectors can lie below the surface of the Earth sphere and if depth testing is enabled, will not be visible. More...
 
 Public Member Functions inherited from AltusUnified::Map
string getName ()
 Retrieves the name of this map. More...
 
void setAlpha (double alpha)
 Sets the alpha transparency of the map. More...
 
void setOrder (uint order)
 Set the map order (which maps get drawn first). More...
 
void setPriority (int priority)
 Set the map priority, used for queing downloads, for example. More...
 
void setMaxLevel (uint level)
 Sets the maximum level of the map. The higher the level, the more detail the map will display as you zoom in. More...
 
void setVisibility (bool visible)
 Sets the visibility of the map. More...
 
void setLightingParameters (float minLightness, bool nightAlphaMaskEnabled)
 Sets lighting parameters. More...
 
MapType getMapType ()
 Retrieves the type of this map. More...
 
void reload ()
 Reload this map. More...
 
void reloadRegion (BoundingBox boundingBox)
 Reload a region of this map. More...
 

Detailed Description

Represents a map of vector data that is rarely updated. Tiles are generated using this map and lines and polygons are split across tiles if necessary. For a vector map of frequently updated or deleted shapes, see DynamicVectorMap.

Constructor & Destructor Documentation

AltusUnified::VectorMap::VectorMap ( string  name)

Constructor

Parameters
nameThe map name

Member Function Documentation

void AltusUnified::VectorMap::addLine ( VectorGeographicPosition2D  points,
LineStyle  style 
)

Adds a line to this map

void AltusUnified::VectorMap::addPolygon ( string  shapeId,
VectorGeographicPosition2D  points,
PolygonStyle  style 
)

Adds a polygon to this map