"setShapeIcon"
Sets an icon for a shape.
Synopsis
void setShapeIcon(string strLayer, string strField, string strValue, string
strIcon )") ;
Parameters
| Parameter | Description |
|---|---|
| strLayer | The layer of the shape |
| strField | The shape field of the layer |
| strValue | The shape |
| strIcon | The icon that should be set. For example D:/Bilder/AUT.jpg". |
Description
Sets an icon for a shape.
Example
Sets the icon "citIcon" for the shape "Helsinki".
main()
{
string strIcon = getPath( PICTURES_REL_PATH, "citIcon.png" );
GisViewer_ewo1.setShapeIcon( "cities", "NAME", "Helsinki", strIcon );
}
Assignment
GIS Viewer
