Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

GISMapApp

Context properties

  • Last UpdatedApr 23, 2024
  • 2 minute read

The following table lists the properties to configure context in GISMapApp:

Property

Description

Click

Mouse click coordinates (X,Y).

This property allows you to get the coordinates of the last mouse click event.
The coordinates projection is taken from the Projection widget property. By default, the projection used is ESPG:4326 which corresponds to coordinates expressed as Longitude, Latitude.

CurrentAsset

Name of the currently selected asset.

When this value is set, it looks for the asset name in the layers with the merge property set to true.
The assetNameTemplate layer property allows you to specify the name for the features in that layer.
If a match is found, the feature is chosen, the map is centered on it, and the widget property for SelectedFeature will be set.
When a feature is selected (clicked) in the map, this value will be set with the selected feature name.

Location

Current device position acquired from device sensors.

When Geolocation is set to true, this property is set with the current device location after user clicks on the corresponding UI button.
The projection used for the coordinates is the one specified in Projection widget property.
The format is X,Y, which corresponds to Longitude,Latitude if using the default projection (EPSG:4326).

SelectedFeature

JSON that holds the selected feature properties.

This value is set from the widget when a feature is selected either by clicking or using the CurrentAsset widget property.

Example:

ShowPopup

Value to control when to show feature popup.

  • click: shows popup only when a feature is clicked (default).

  • always: shows popup on click and when a feature is selected through CurrentAsset widget property.

  • hover: shows popup when pointer is over a feature.

  • never: does not show popup, even when a feature is clicked.

TitleResults for “How to create a CRG?”Also Available in