"setShapePVSSSymbol"

Sets a panel reference to a specific shape/point inside the GIS Viewer.

Synopsis

void setShapePVSSSymbol(string strLayer, string strField, string strValue, string strSymbol);

Parameters

Parameter Description
strLayer The layer of the shape
strField The shape field of the layer
strValue The shape
strSymbol Name of the reference that should be displayed.

Description

Sets a panel reference to a specific shape/point inside the GIS Viewer. Note that you have to use three functions to display a reference in the GIS viewer.

Use the functions:

Example

Sets a panel reference "PanelRef" to a specific shape/point "PanelRef" of the layer "EWO" inside the GIS Viewer.

main()
{
  addSymbol( myModuleName(), myPanelName(), "objects/newPanel.pnl", "PanelRef", makeDynString("$DP:PanelRef"), 9.2, 45, 0.0, 1.0, 1.0,
  "GisViewer_ewo1" ); /* adds a panel reference to a panel */
  GisViewer_ewo1.addEmptyLayer("EWO");
  GisViewer_ewo1.addPointToLayer( "EWO", "PanelRef" , 9.2, 45); //adds the coordinates 25, 60
  GisViewer_ewo1.setShapePVSSSymbol( "EWO", "NAME", "PanelRef", "PanelRef" ); 
  //displays the reference that was added using addSymbol
}

Assignment

GIS Viewer