Difference between revisions of "Sf spat"
From ARK
(No difference)
|
Revision as of 15:44, 29 August 2007
These are some notes describing the sf_spat.
Description
sf_spat can be used to display a small map (or maps) of an item. It can also be used to display other spatial information (such as what trench a context is in for example)
Usage
This form can only be used if the mapping functionality is set up and properly configured.
Set-Up
sf_spat needs a number of different 'op' variables set in the sf_conf and also it will need some other settings set which are in the main settings .php file.
Examples
In this example, sf_spat is being used to display a map of a Special Find.
the sf_conf
$conf_mcd_spat = array( 'view_state' => 'max', 'edit_state' => 'view', 'sf_nav_type' => 'full', 'sf_title' => 'spat_data', //appears in the titlebar of the subform (mk nname) 'sf_html_id' => 'sfi_spat_display', 'script' => 'php/subforms/sf_spat.php', 'op_geom_layers' => array( 'sf', ), );
As you can see here this is a normal sf_conf setup except:
- there are no fields
- 'op_geom_layers' - this is an array of map layernames that will be searched by the Mapscript. They all need to have a field in their attribute table called 'ark_id' - that contains the itemvalue of the item that that shape represents