 "addPointToLayer"
"addPointToLayer"
    
    Adds a coordinate to a layer.
Synopsis
void addPointToLayer(string strLayer, string strName,
                        double dX, double dY);
Parameters
| Parameter | Description | 
|---|---|
| strLayer | The name of the layer the coordinate will be added to. | 
| strName | The name of the coordinate that will be added. | 
| dX | The x coordinate. | 
| dY | The y coordinate. | 
Description
Adds a coordinate to a layer.
 Example
 Example
Adds a polygon and coordinates to a layer at 25, 60.
main()
{
  int iPoly;
  GisViewer_ewo1.addEmptyLayer("EWO");
  addSymbol(myModuleName(), myPanelName(), "objects/cities.pnl", "Helsinki",
  makeDynString("$DP:Helsinki"), 5, 60, 0.0, 1.0, 1.0, "GisViewer_ewo1");
  GisViewer_ewo1.setLayerFillColor("EWO","red");
  GisViewer_ewo1.setLayerLineColor("EWO","red");
  iPoly = GisViewer_ewo1.addPolylineToLayer("EWO", "Helsinki", 4);
  GisViewer_ewo1.addPointToPolyline("EWO", iPoly, 0, 25, 60 );
  GisViewer_ewo1.addPointToPolyline("EWO", iPoly, 1, 26, 61 );
  GisViewer_ewo1.addPointToPolyline("EWO", iPoly, 2, 24, 62 );
  GisViewer_ewo1.addPointToPolyline("EWO", iPoly, 3, 25, 60 );
  GisViewer_ewo1.addPointToLayer("EWO", "Helsinki" , 25, 60);
  GisViewer_ewo1.setShapePVSSSymbol("EWO", "NAME", "Helsinki", "Helsinki"); 
}Assignment
GIS Viewer
