GetMapExtent

Node Action:

This node action captures the user's map extent, centerpoint, and spatial reference.

Parameters:

se_type

GetMapExtent

se_type = GetMapExtent

se_resultVariable

Name of the result variable to store the data from node action.

Example:

Get Map Extent: The following workflow illustrates how to get a user's map extent, copy it to the clipboard, and notify the user that the extent was copied:

digraph workflow {

entry[
  se_type0 = SessionToolTrigger,
  se_displayName0 = "Get Map Extent"
  se_iconUrl0 = "",
  se_sortOrder0 = 13,
  se_visibilityCondition0 = "(ctx, log) => {
    return true;
  }",
]

getMapExtent[
  se_type0 = GetMapExtent,
  se_resultVariable0 = MapExtent,
  
  se_type1 = Action,
se_action1 = "(ctx, log) => {
log.LogInformation($\"MapExtent: {ctx.State.MapExtent}\");
}",

se_type2 = CopyToClipboard,
se_determineData2 = "(ctx, msLogger) => {
  return JsonConvert.SerializeObject(ctx.State.MapExtent);
}",

se_type3 = NotifyUser,
se_determineMessage3 = "(dynamicStateMachineContext, msLogger) => {
  return \"Copied Extent to Clipboard\";   
}",

se_notificationType3 = "Information"
se_showToast3 = true,



]

}
QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

Was this helpful?