Two types of layers containing point features can be added to a plan, as described more fully in the following Map Compiler topics:
Link layers may contain area and line items as well as point items.
Point item icons are obtained from the DataFolderMapIcon folder according to their Cadcorp symbol names.
If an item has a description attribute, when the item is selected a dialog displays this.
If an item also has a link attribute, when the item is selected a dialog displays the description and a button can be used to display the link target in a new window.
MapTheme label settings may be defined to specify item labels.
View Points layers inherit their name from the Cadcorp SIS overlay type Databases / View Points.
The Cadcorp View Points overlay must include the DbConnectionMap& attribute to specify the database from which SISfm obtains the point data.
By default, to suit SISfm the Cadcorp View Points overlay must include x y scale angle icon link description database columns, and may include additional columns.
Point item icons are obtained from the DataFolderMapIcon folder according to the icon value.
The same database table can provide points on many plans, when it should include a column for the plan name, used by View Points WHERE clauses to restrict points to those in the plan.
When an item is selected a dialog displays its description, and if the link value is defined a button is included to display its target in a new window.
MapTheme tip settings may be defined to specify additional columns to be included in this dialog.
MapTheme label settings may be defined to specify item labels.
For a View Points layer that is editable, the Edit dialog is available to add, change and remove its items.
For it to be editable, it must have a single table, include an id column, and pass table sisfm_layeredit access. Its data type may be auto-number, or string or integer when unique values are required when adding new items.
The MapLayerPoint setting for the layer may include alternative id description column names, constant values for scale angle icon link description, and a link value with placeholders for other column values (such as id).
By using these options the View Points overlay and database table need only include the x y description columns.
Instead of creating Cadcorp View Points overlays in floor plan SWD files, MapFloorLayerPointParams settings can be used to add View Points layers when compiling them.
In some cases, required View Points column values cannot be obtained directly from the database table(s) involved, e.g. because SQL sub-queries on other database tables are involved. There are two alternative solutions:
AssetTable settings are used to specify database tables that store assets, for example table eq.
If such tables have x y columns, View Points layers can be used to display their assets as points on plans, when their item dialogs may also display asset photos.
The MapLayerPoint setting for such layers can specify a parameterised link to the SISfm page for displaying asset details when Details... is selected in the item dialog, e.g:
Equipment,eq_id,description,1,0,Pin.gif,../space/showAsset.aspx?db=0&table=eq&id=$$eq_id$$,Equipment
If you need further assistance, please contact IFM Support <support@integratedfm.com.au>.