Difference between revisions of "Sf wfs spat"
From ARK
(→Example Configuration) |
(→Example Configuration) |
||
| Line 12: | Line 12: | ||
===Example Configuration=== | ===Example Configuration=== | ||
<pre> | <pre> | ||
| + | // Spatial viewer (subform) | ||
$conf_mcd_spat = | $conf_mcd_spat = | ||
array( | array( | ||
'view_state' => 'max', | 'view_state' => 'max', | ||
| − | 'edit_state' => ' | + | 'edit_state' => 'edit', |
'sf_title' => 'spat_data', | 'sf_title' => 'spat_data', | ||
| − | 'sf_html_id' => ' | + | 'sf_html_id' => 'fst_spat_display', |
'sf_nav_type' => 'name', | 'sf_nav_type' => 'name', | ||
'script' => 'php/subforms/sf_wfs_spat.php', | 'script' => 'php/subforms/sf_wfs_spat.php', | ||
'query_layers' => | 'query_layers' => | ||
array( | array( | ||
| − | + | 'sites' => | |
| − | + | array( | |
| − | + | 'mod' => 'fst', | |
| − | + | 'geom' => 'pt', | |
| − | + | 'url' => 'http://lpisolde.dyndns.org/fastiadmin/php/map/ark_wxs_server.php?', | |
| − | + | 'style_array' => | |
| − | + | array( | |
| − | + | 'strokeColor' => '"black"', | |
| − | + | 'fillColor' => '"grey"', | |
| − | + | ) | |
| + | ), | ||
), | ), | ||
| − | 'background_map' => ' | + | 'background_map' => 'Basic', |
| − | 'op_buffer' => | + | 'op_buffer' => 100000, |
| − | + | ); | |
</pre> | </pre> | ||
[[category:Administrator]] | [[category:Administrator]] | ||
Revision as of 11:50, 20 November 2011
Description
The sf_wfs_spat is the subform for displaying spatial data. It calls on layers as defined in the wfs (active) and wms (background) maps.
Additional Fields
The sf_wfs_spat requires the following additional fields:
- wfs_layers - layers from the mapserver/mapfiles/ark_wfs.map to use in this subform
- wms_layers - layers from the mapserver/mapfiles/ark_wms.map to use in this subform
- op_buffer - the buffer in selected units around main item shape in subform
The wms_layers acts as the background data while the wfs_layers contains the layers to be zoomed to.
Example Configuration
// Spatial viewer (subform)
$conf_mcd_spat =
array(
'view_state' => 'max',
'edit_state' => 'edit',
'sf_title' => 'spat_data',
'sf_html_id' => 'fst_spat_display',
'sf_nav_type' => 'name',
'script' => 'php/subforms/sf_wfs_spat.php',
'query_layers' =>
array(
'sites' =>
array(
'mod' => 'fst',
'geom' => 'pt',
'url' => 'http://lpisolde.dyndns.org/fastiadmin/php/map/ark_wxs_server.php?',
'style_array' =>
array(
'strokeColor' => '"black"',
'fillColor' => '"grey"',
)
),
),
'background_map' => 'Basic',
'op_buffer' => 100000,
);