ReadonlyheightThe current height of the view. Readonly.
It's provided for convenience, so that it is not required to watch for "view" changes.
ReadonlyinitialProvides access to the first initial extent after initialization. This property is initialized when the first view is set on the MapWidgetModel.
It is intended to support "zoom to initial extent" requirements.
ReadonlyinitialProvides access to the first initial viewmode (2D or 3D) after initialization. This property is initialized when the first view is set on the MapWidgetModel.
It is intended to support "restore initial view" requirements.
ReadonlyinitialProvides access to the first initial view parameter (e.g. extent, zoom etc.) after initialization. This property is initialized when the first view is set on the MapWidgetModel.
It is intended to support "restore initial view" requirements.
Readonlyreadytrue: current state is matching view state.
Check for view.ready and view.viewpoint === model.viewpoint;
and model.viewmode == view.type
The map's rotation state. Only available if viewmode is 2D.
It's provided for convenience, so that it is not required to watch for "view" changes.
The map's scale.
It's provided for convenience, so that it is not required to watch for "view" changes.
ReadonlyupdatingIf true then data requests are currently pending.
It's provided for convenience, so that it is not required to watch for "view" changes.
Provides access to the current view implementation.
This value is set by the MapWidget if the viewmode changes. This value is undefined until the view is initialized by the MapWidget.
The current view mode. Possible values are "2D", "3D". If this state is changed, then the value of the "view" property changes.
ReadonlywidthThe current width of the view. Readonly.
It's provided for convenience, so that it is not required to watch for "view" changes.
The current zoom level.
It's provided for convenience, so that it is not required to watch for "view" changes.
The view's current clipping area.
Only available if viewmode is 3D and if the viewingMode is local.
Provides access to the current constraints (2D or 3D).
Any property changed will result in an update of the corresponding MapView or SceneView but not the other way around. Changes of the constraints of the view will not be synchronized to this constraints property.
Provides access to the current navigation settings.
All property changes on this object will be applied to the current view and will be reapplied whenever the current view changes. Property changes done directly on the view will not be synchronized back to this object.
The map's padding. Has to be updated as whole object, single values (left, right, ...) won't trigger View update.
Returns the current viewing mode of the view. Only available if viewmode is 3D.
The map widget model must be destroyed when it is no longer needed.
NOTE: The lifetime of the default map widget model is managed by map.apps itself.
Finds a layer by id in the map.
The layerIdPath is e.g. <layerId> or <layerId>/<sublayerId>.
The layer id path.
Returns effective visibility information for the given layer.
This works by evaluating the current state of the layer and the current state of the view (scale, extent, etc.).
The layer can be specified as an id or path (e.g. layerId or layerId/sublayerId)
or as a direct layer reference.
Returns the current visibility issues for the given layer.
This works by evaluating the current state of the layer and the current state of the view (scale, extent, etc.).
The layer can be specified as an id or path (e.g. layerId or layerId/sublayerId)
or as a direct layer reference.
NOTE: This function should be called within a reactive watch (or effect, etc.). Otherwise, it may produce outdated results.
Returns true if the layer is effectively visible, false otherwise.
This works by evaluating the current state of the layer and the current state of the view (scale, extent, etc.).
The layer can be specified as an id or path (e.g. layerId or layerId/sublayerId)
or as a direct layer reference.
NOTE: This function is a convenience function around getLayerVisibility. It returns true if (and only if) there are no visibility issues.
Documentation for the members of MapWidgetModel.