Fires:
-
PLANNINGINSTANCES_CHANGED(vcs.vcm.widgets.planning.Planning) experimental
Extends
Members
-
active{boolean}
-
-
className{string}
-
class Name of the Object
-
initialized{boolean}
-
-
name{string}
-
unique Name
Methods
-
addPlanningInstance(name, description, properties){Promise}
-
creates a new planning with the Service
Name Type Description namestring descriptionstring | undefined propertiesObject optional properties bag (arbitrary JSON Object)
-
deactivateActivePlanning()
-
Deactivates the active planning
-
deletePlanning(planning){Promise}
-
Deletes the planning instance
Name Type Description planningvcs.vcm.widgets.planning.PlanningInstance -
getClassName(){string} inherited
-
returns the class name of this object.
- Deprecated
- Yes
Returns:
className
-
getConfigObject(){Object} inherited
-
-
getId(){string} inherited
-
returns the id of this object
- Deprecated
- Yes
-
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
-
getSupportedMaps(){Array.<string>} inherited
-
Returns the widgets supported maps
-
isActive(){boolean} inherited
-
returns the active state of the widget
- Deprecated
- v3.6 use the property active directly
Returns:
state of the widget
-
isInitialized(){boolean} inherited
-
checks if the Widget is already initialized
- Deprecated
- Yes
Returns:
true if all requirements are there
-
isSupported(map){boolean} inherited
-
returns true if this widget supports the given map. Should be overriden by the widget
Name Type Description mapstring | vcs.vcm.maps.Map the map or className to check for support
-
setActivePlanning(planningInstance)
-
Sets the active planning instance
Name Type Description planningInstancevcs.vcm.widgets.planning.PlanningInstance
Type Definitions
-
vcs.vcm.widgets.planning.Planning.Options
-
Properties:
Name Type Argument Default Description serviceUrlstring | undefined scenarioIdstring projectIdstring useLocalCRSboolean <optional>
false showInLegendboolean <optional>
true legendTitleObject | string | undefined a translatable object or a string representing the title to use in the legend.
commentIconsObject | string | undefined an object where the key is the type of comment and the value an image src to use as an icon
terrainUrlstring | undefined a specific terrain to use for placing vector features onto the terrain in the backend
useDefaultTerrainboolean <optional>
true use the maps terrain for placing vector features onto the terrain
allowBalloonEditorboolean <optional>
false whether to show the balloon editor for feature store layers
predefinedBalloonsArray.<vcs.vcm.widgets.planning.PredefinedBalloon> additional predefined balloons
showStyleSelectorboolean <optional>
false
virtualcityMAP 3.6