Object representing a marker
Name | Type | Description |
---|---|---|
properties |
PSV.plugins.MarkersPlugin.Properties | |
psv |
PSV.Viewer |
Throws:
-
when the configuration is incorrect
- Type
- PSV.PSVError
Members
-
-
config PSV.plugins.MarkersPlugin.Properties readonly
Original configuration of the marker
-
-
User data associated to the marker
-
-
-
Computed properties
-
Properties:
Name Type Description dynamicSize
boolean anchor
PSV.Point visible
boolean actually visible in the view
staticTooltip
boolean the tooltip must always be shown
position
PSV.Position position in spherical coordinates
position2D
PSV.Point position in viewer coordinates
positions3D
Array.<external:THREE.Vector3> positions in 3D space
width
number height
number def
* -
psv PSV.Viewer protectedreadonly
-
-
tooltip PSV.components.Tooltip
Tooltip instance for this marker
-
-
-
Methods
-
Determines the type of a marker by the available properties
-
Name Type Default Description properties
Marker.Properties allowNone
boolean false optional Throws:
-
when the marker's type cannot be found
- Type
- PSV.PSVError
Returns:
Type Description string -
-
Destroys the marker
-
-
Returns the markers list content for the marker, it can be either :
- the
listContent
- the
tooltip.content
- the
html
- the
id
- the
-
Returns:
Type Description * -
Computes marker scale from zoom level
-
Name Type Description zoomLevel
number position
PSV.Position Returns:
Type Description number -
Hides the tooltip of this marker
-
-
Checks if it is a 3D marker (imageLayer)
-
Returns:
Type Description boolean -
Checks if it is a normal marker (image or html)
-
Returns:
Type Description boolean -
Checks if it is a polygon/polyline marker
-
Returns:
Type Description boolean -
Checks if it is a polygon marker
-
Returns:
Type Description boolean -
Checks if it is a polyline marker
-
Returns:
Type Description boolean -
Checks if it is a polygon/polyline using pixel coordinates
-
Returns:
Type Description boolean -
Checks if it is a polygon/polyline using radian coordinates
-
Returns:
Type Description boolean -
Checks if it is an SVG marker
-
Returns:
Type Description boolean -
Recompute the position of the tooltip
-
-
Display the tooltip of this marker
-
Name Type Description mousePosition
Object optional -
Updates the marker with new properties
-
Name Type Description properties
PSV.plugins.MarkersPlugin.Properties Throws:
-
when the configuration is incorrect
- Type
- PSV.PSVError
-