Members
-
_id{string}
-
The documents id on the server
-
comments
-
This plannings comments as GeoJSON FeatureCollection
-
description{string}
-
-
flights{Array.<vcs.vcm.util.flight.FlightInstance>}
-
-
hiddenObjects{Array.<string>}
-
An array of building IDs hidden by this planning
-
lastUpdated
-
The last editing user, and the last edited date
-
loaded{boolean}
-
- TODO
-
- Promise interface as with
vcs.vcm.widgets.planning.PlanningObjectDrawing
- Promise interface as with
-
name{string}
-
-
owner
-
The owner of this planning, aka the creator, and the creation date.
-
permissions{Array.<string>}
-
This users permission to this planning, can be Planning.[read|edit|delete|share|publish]
-
planningObjects
-
This plannings planning objects
-
properties{Object.<*>}
-
-
public{boolean}
-
Whether this planning is visible to everybody or not
-
sharedUsers{Array.<Object>}
-
The users and the respective permissions, for all users with which this planning has been shared
-
viewpoints
-
The viewpoints options associated with this planning
Methods
-
deletePlanningObject(planningObject, callback){Promise}
-
Delete a planning object from its instance
Name Type Description planningObjectvcs.vcm.widgets.planning.PlanningObject callbackfunction - TODO
-
- Promise interface
-
getSharedUsers(){Promise}
-
Gets the shared actors for this planning instance from the server and sets the to this.sharedUsers
-
gotoViewpoint(index)
-
Name Type Description indexnumber -
isLocked(){boolean}
-
Check whether the instance is locked
-
load(dontJumpToViewpoint)
-
loads and shows this planning instance
Name Type Description dontJumpToViewpointboolean -
lock(){Promise}
-
locks this planning, so it can be edited.
-
publishPlanning(){Promise}
-
Toggles the published state of a document
-
save(){Promise}
-
Saves the changes done to a planning instance.
-
setHiddenObjectsToLayer(layer, toHighlight, toUnhighlight)
-
Adds or removes the hidden objects to a layer
Name Type Description layervcs.vcm.layer.Layer toHighlightObject toUnhighlightstring Throws:
-
setHiddenObjectsToLayers(toHighlight, toUnhighlight)
-
Adds or removes the hidden objects
Name Type Description toHighlightObject toUnhighlightstring Throws:
-
sharePlanning(planningInstanceId, actorId, permissions){Promise}
-
Shares or unshares the planning instance with an actor. To unshare, do not pass permissions
Name Type Description planningInstanceIdstring actorIdstring permissionsArray.<string> null permissionLevel revokes the permission instead of setting it
-
unLoad()
-
unloads and hides this planning instance
-
unlock(){Promise}
-
unlocks the planning, so other users can edit it
-
uploadNewDrawing(){Promise}
-
Uploads an empty drawing to the server, so the drawing object can be edited
- Deprecated
- v3.6
-
uploadNewModel(inputData, progress, converterOptions){Promise}
-
Uploads a new model for this planning instance. Use an object with 'percentage' property to track progress
Name Type Description inputDataFormData the models file data as FormData
progressObject object with a 'percentage' attribute
converterOptionsvcs.vcm.widgets.planning.PlanningInstance.ConverterOptions Throws:
-
userHasPermission(permission){boolean}
-
Checks whether the user has a certain permission for this instance
Name Type Description permissionstring Throws:
Type Definitions
-
vcs.vcm.widgets.planning.PlanningInstance.ConverterOptions{Object}
-
Properties:
Name Type Description projectionstring | undefined terrainstring | undefined mappingObject | undefined injectArray.<string> | undefined -
vcs.vcm.widgets.planning.PlanningInstance.EditingInfo{Object}
-
Properties:
Name Type Description userstring onDate
virtualcityMAP 3.6