new vcs.vcm.layer.Vector()
Subclasses
- vcs.vcm.layer.FeatureStore
- vcs.vcm.layer.GeoJSON
- vcs.vcm.layer.VectorCluster
- vcs.vcm.layer.WFS
- vcs.vcm.layer.WSV
Extends
Members
-
altitudeMode{string}
-
-
classificationType
-
-
className{string}
-
class Name of the Object
-
heightAboveGround{number}
-
height above ground for all point vector objects -> altitudeMode must be set to: "relativeToGround" either on the feature (precedence) or the layer
-
hiddenObjectIds{Array.<string>}
-
array of object Ids which should be hidden global, if this layer is active
-
name{string}
-
unique Name
-
skirt{number}
-
-
storeyHeight{number}
-
-
visibility{boolean}
-
-
zCoordinateEyeOffset{number}
-
All point vector objects become billboards in cesium which can contain an eyeOffset see: https://cesiumjs.org/Cesium/Build/Documentation/Billboard.html?classFilter=billboard
Methods
-
addFeatures(features){Array.<string>}
-
add features to the vector layer and return an array with their ids. The geometry will be mutated and transformed to EPSG 3857 mercator coordinate system
Name Type Description featuresArray.<ol.Feature> - TODO
-
- mechanism to enforce XYZ coordinate layout for internal usage
-
addGenericFeatureProperties(properties) inherited
-
Set properties, which are always added to the generic object, eg. for use in balloons
Name Type Description propertiesObject -
clearHiddenObjects() inherited
-
clears all the hidden objects
-
clearHighlighting() inherited
-
clears all highlighted objects
-
clearStyle() inherited
-
Clears the style of this layer
-
dispose() inherited
-
disposes of this layer, removes instances from the current maps and the framework
-
getAltitudeMode(){string}
-
returns the altitudeMode of the layer
- Deprecated
- Yes
-
getClassName(){string} inherited
-
returns the class name of this object.
- Deprecated
- Yes
Returns:
className
-
getConfigObject(){Object} inherited
-
-
getExclusiveGroup(){string} inherited
-
returns the exclusive group of this layer
- Deprecated
- Yes
-
getExtent(){vcs.vcm.util.Extent} inherited
-
returns the Extent of this layer
- Deprecated
- Yes
-
getFeatureById(id){ol.Feature}
-
returns an feature if found, otherwise null feature geometries are always in EPSG 3857 mercator coordinate system
Name Type Description idstring | number -
getFeatures(){Array.<ol.Feature>}
-
returns an array with features Feature geometries are always in EPSG 3857 mercator coordinate system
-
getFeaturesById(ids){Array.<ol.Feature>}
-
returns an array with features feature geometries are always in EPSG 3857 mercator coordinate system
Name Type Description idsArray.<string> -
getHeightAboveGround(){number}
-
returns the height above ground
- Deprecated
- Yes
-
getId(){string} inherited
-
returns the id of this object
- Deprecated
- Yes
-
getMaxResolution(){number}
-
returns the maximum resolution (exclusive) below which this layer will be visible.
- Deprecated
- 3.5
-
getMinResolution(){number}
-
returns the minimum resolution (inclusive) at which this layer will be visible.
- Deprecated
- 3.5
-
getName(){string} inherited
-
returns the name of the Object, the name is either given by the config Object or a uuid is generated
- Deprecated
- Yes
-
getProjection(){vcs.vcm.util.Projection}
-
returns the source Projection
- Deprecated
- 3.5
-
getScaleByDistance(){Array.<number>}
-
returns the scale By Distance
- Deprecated
- Yes
-
getSource(){ol.source.Vector}
-
returns the ol3 vector source
-
getStyle(){vcs.vcm.util.style.VectorStyleItem}
-
returns the style of the layer
- Deprecated
- 3.5
-
getType(){number} inherited
-
returns the type of this layer
- Deprecated
- Yes
-
getVcsMeta(options){vcs.vcm.layer.VcsMeta}
-
Returns the layers vcsMeta object
Name Type Description optionsvcs.vcm.layer.GeoJSON.writeOptions -
getZCoordinateEyeOffset(){number}
-
returns the amount of meters the features are being pulled forward in the direction of the viewer (in 3D)
- Deprecated
- Yes
-
getZIndex(){number}
-
returns the zIndex of the layer
- Deprecated
- Yes
-
hideObjects(toHide) inherited
-
hides a number of objects
Name Type Description toHideArray.<(string|number)> A list of Object Ids which will be hidden
-
highlight(toHighlight) inherited
-
highlights a number of building objects with the given color
Name Type Description toHighlightObject.<string, (vcs.vcm.util.style.VectorStyleItem|Cesium.Color|ol.style.Style)> -
isActive(){boolean} inherited
-
checks if the layer is active
- Deprecated
- Yes
-
isExclusive(){boolean} inherited
-
returns whether this layer can only be used exclusive
- Deprecated
- Yes
-
isIconManagerInUse(){boolean} inherited
-
returns whether this layer is used by the iconmanager
- Deprecated
- Yes
-
isInitialized(){boolean} inherited
-
returns true if the layer is initialized
- Deprecated
- Yes
-
isSupported(opt_map){boolean} inherited
-
checks if the currently active map supports this layer
Name Type Description mapvcs.vcm.maps.Map -
removeAllFeatures()
-
removes all features from the vector layer
-
removeFeaturesById(ids)
-
removes features from the vector layer
Name Type Description idsArray.<(string|number)> -
setHighlightStyle(style)
-
sets the highlightstyle of this layer
Name Type Description styleol.style.Style | ol.StyleFunction | vcs.vcm.util.style.VectorStyleItem -
setProjection(projection)
-
Sets a new source Projection for the layer. All features added hereafter are assumed to be in this projection
Name Type Description projectionvcs.vcm.util.Projection - Deprecated
- 3.5
-
showObjects(unHide) inherited
-
unHides a number of objects
Name Type Description unHideArray.<(string|number)> A list of Object Ids which will be unHidden
-
unHighlight(toUnHighlight) inherited
-
unhighlights a number of building objects
Name Type Description toUnHighlightArray.<string> Array with IDS to unhighlight
Type Definitions
-
vcs.vcm.layer.Vector.Options
-
Properties:
Name Type Argument Default Description projectionvcs.vcm.util.Projection.Options maxResolutionnumber minResolutionnumber dontUseTerrainForObliqueboolean <optional>
false zCoordinateEyeOffsetnumber <optional>
0 The distance (m) by which the vector objects are being pulled towards the viewer (3D only)
altitudeModestring <optional>
'relativeToGround' Either "relativeToGround", "clampToGround" or 'none'
heightAboveGroundnumber The height above ground that point features are displayed -> altitudeMode should be relativeToGround
scaleByDistanceCesium.NearFarScalar Array with 4 numbers by which features are being scaled based on distance (3D only) see here
balloonHeightOffsetnumber <optional>
10 zIndexnumber <optional>
10 highlightStylevcs.vcm.layer.Vector.StyleOptions | vcs.vcm.util.style.VectorStyleItem | undefined isDynamicboolean if true, the cesium synchronizers are destroyed on map change
skirtnumber | undefined default skirt value to use for extruded features
storeyHeightnumber | undefined default storey height to use for extruded features to draw storey lines
classificationTypestring | undefined <optional>
'terrain' the cesium classification type for this layer. one of 'both', 'terrain' or 'cesium3DTile'
-
vcs.vcm.layer.Vector.StyleOptions{Object}
-
- Deprecated
- Yes
Properties:
Name Type Description imageolx.style.IconOptions | olx.style.CircleOptions | undefined strokeolx.style.StrokeOptions | undefined fillolx.style.FillOptions | undefined
Events
-
LAYER_ACTIVATED inherited
-
vcs.vcm.event.EventType.LAYER_ACTIVATED is triggered when a layer is activated.
Type:
-
LAYER_CHANGED inherited
-
vcs.vcm.event.EventType.LAYER_CHANGED is triggered when a layer is activated or deactivated.
Type:
-
LAYER_DEACTIVATED inherited
-
vcs.vcm.event.EventType.LAYER_DEACTIVATED is triggered when a layer is deactivated.
Type:
virtualcityMAP 3.6