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 name
string | undefined The name of the viewer.
target
Element | string | undefined The DOM target element where this viewer will be appended.
outputprojection
string | undefined The viewer output projection. The 'EPSG:code' string with the projection to use in any control linked to this viewer when showing coordinates.
debugmode
boolean | 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.
debuggrid
boolean | 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.
time
string | 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.
center
Mapspace.Coordinate | undefined The initial center for the view. The coordinate system for the center is always an EPSG:4326 LanLot.
lidarpointsize
number | undefined The size for LiDAR points.
dynamiclidarpointsize
boolean | 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.
rotation
number | undefined The initial rotation for the view in degrees (positive rotation clockwise). Default is
0
or looking north.pitch
number | undefined Pitch on start.
roll
number | undefined Roll on start. See
Mapspace.threed.Viewer#getRoll
.fov
number | undefined Field of View of the camera. Default value is 90.0.
layers
Array.<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.
terrainvisible
boolean | 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.
autohidebaselayer
boolean | undefined If baselayers must change automatically its visibility depending on when a height in visualization is reached. A baselayer is any
Mapspace.layer.Tile
with aMapspace.ortho.source.WMTS
source.threeddetail
number | 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.
lengthConditions
Array.<string, string> Relation between distance and point size while drawing LiDAR data.
enforceLayers
boolean | undefined If this viewer should ensure that certain layers are added, as the measurements and annotations layer.
globecolor
string | undefined The color of the globe as a CSS color. Default is
#0000ff
.skycolor
string | undefined The color of the sky as a CSS color. Default is
#0000ff
.rotatorType
Mapspace.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.
pin
boolean | undefined If add a pin icon in the center of the viewer when viewer is loaded first time. By default is false.
label
boolean | 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.