This is the main namespace of the 3D module, and contains the Mapspace.threed.Viewer,
a viewer to show LiDAR and 3D models on top of an earth representation.
- Source:
- mapspace-threed/bu.threed.jsdoc
Classes
Namespaces
Type Definitions
-
AnnotationType
-
Type of the 3D annotation (point, polyline, polygon, text) for 3D viewers.
Name Value Mapspace.threed.AnnotationType.POINT Mapspace.AnnotationType.POINT, Mapspace.threed.AnnotationType.POLYLINE Mapspace.AnnotationType.POLYLINE, Mapspace.threed.AnnotationType.POLYGON Mapspace.AnnotationType.POLYGON, Mapspace.threed.AnnotationType.TEXT Mapspace.AnnotationType.TEXT - Source:
- mapspace-threed/enums.js
-
MeasurementType
-
Type of measurement (point, segment_length) for 3D viewers.
Name Value Mapspace.threed.MeasurementType.POINT Mapspace.MeasurementType.POINT Mapspace.threed.MeasurementType.LENGTH Mapspace.MeasurementType.LENGTH Mapspace.threed.MeasurementType.POLYLENGTH Mapspace.MeasurementType.POLYLENGTH Mapspace.threed.MeasurementType.AREA Mapspace.MeasurementType.AREA - Source:
- mapspace-threed/enums.js
-
SourceType
-
Types of sources.
Name Value Description Mapspace.threed.SourceType.LIDAR lidar Source type is a lidar cloud points. Mapspace.threed.SourceType.MESH3D mesh3d Source type is a 3D Textured Mesh. - Source:
- mapspace/enums.js
-
ViewerOptions
-
Options for
Mapspace.threed.Viewer.- Source:
- mapspace-threed/typedefs.js
Properties:
Name Type Description namestring | undefined The name of the viewer.
targetElement | string | undefined The DOM target element where this viewer will be appended.
outputprojectionstring | undefined The viewer output projection. The 'EPSG:code' string with the projection to use in any control linked to this viewer when showing coordinates.
debugmodeboolean | undefined If activate the debug mode or not. By default is false. This mode is only active when Mapspace.DEBUG global variable is set to true and the user has the required permissions. The mode shows several extra information on top of existing layers and offer a debug panel.
debuggridboolean | undefined If activate a debug grid or not. Bay default is false. This mode is only active when Mapspace.DEBUG global variable is set to true and the user has the required permissions. If debugmode is set to false then this mode is ignored. The mode shows the grid of tiles with IDs for the main tile layer.
timestring | undefined Time filter of the viewer. Valid time values are any string with pattern YYYYMMDD or with pattern YYYYMMDD-YYYYMMDD. First filters images before the date, and second filters images between the dates.
centerMapspace.Coordinate | undefined The initial center for the view. The coordinate system for the center is always an EPSG:4326 LanLot.
lidarpointsizenumber | undefined The size for LiDAR points.
dynamiclidarpointsizeboolean | undefined If the size for LiDAR points must be dynamic or not. If it is dynamic then point size increases with proximity to scene camera.
rotationnumber | undefined The initial rotation for the view in degrees (positive rotation clockwise). Default is
0or looking north.pitchnumber | undefined Pitch on start.
rollnumber | undefined Roll on start. See
Mapspace.threed.Viewer#getRoll.fovnumber | undefined Field of View of the camera. Default value is 90.0.
layersArray.<ol.layer.Base> | ol.Collection.<ol.layer.Base> | ol.layer.Group | undefined Layers. If this is not defined, a viewer with no layers will be rendered. Note that layers are rendered in the order supplied, so if you want, for example, a vector layer to appear on top of a tile layer, it must come after the tile layer.
terrainvisibleboolean | undefined If show the terrain or not. If true the terrain could be a generic one if no LiDAR project is visible, or if a LiDAR project is visible, the DTM of that LiDAR project.
autohidebaselayerboolean | undefined If baselayers must change automatically its visibility depending on when a height in visualization is reached. A baselayer is any
Mapspace.layer.Tilewith aMapspace.ortho.source.WMTSsource.threeddetailnumber | undefined The maximum screen space error used to drive level of detail refinement. This value helps determine when a tile refines to its descendants, and therefore plays a major role in balancing performance with visual quality. A tile's screen space error is roughly equivalent to the number of pixels wide that would be drawn if a sphere with a radius equal to the tile's geometric error were rendered at the tile's position. If this value exceeds maximumScreenSpaceError the tile refines to its descendants. Depending on the tileset, maximumScreenSpaceError may need to be tweaked to achieve the right balance. Higher values provide better performance but lower visual quality. Default value is 16.
lengthConditionsArray.<string, string> Relation between distance and point size while drawing LiDAR data.
enforceLayersboolean | undefined If this viewer should ensure that certain layers are added, as the measurements and annotations layer.
globecolorstring | undefined The color of the globe as a CSS color. Default is
#0000ff.skycolorstring | undefined The color of the sky as a CSS color. Default is
#0000ff.rotatorTypeMapspace.control.RotatorType | undefined The type of rotator control that must be used as default when a workspace is deserialized. By deafult is Mapspace.control.RotatorType.ROTATOR.
pinboolean | undefined If add a pin icon in the center of the viewer when viewer is loaded first time. By default is false.
labelboolean | string | undefined If show a pin icon and a label in the center of the viewer when viewer is loaded first time. By default is false. If it is true then executes a reverse geocoding in the location and label is the address found. If it is a string then no reverse geocoding is executed and the label is the string.