| 1 |
<?php |
<?php |
| 2 |
// $Id: maplayer.admin.inc,v 1.1.2.1 2008/06/02 14:54:05 openwereld Exp $ |
// $Id: maplayer.admin.inc,v 1.1.2.2 2008/06/15 18:37:44 openwereld Exp $ |
| 3 |
|
|
| 4 |
function maplayer_settings_form() { |
function maplayer_settings_form() { |
| 5 |
$form['maplayer'] = array( |
$form['maplayer'] = array( |
| 45 |
, '#default_value' => variable_get('maplayer_persistent_tree', 0) |
, '#default_value' => variable_get('maplayer_persistent_tree', 0) |
| 46 |
); |
); |
| 47 |
|
|
| 48 |
|
$form['maplayer']['maplayer_default_srs'] = array('#type' => 'textfield' |
| 49 |
|
, '#title' => t('Default SRS') |
| 50 |
|
, '#default_value' => variable_get('maplayer_default_srs', '') |
| 51 |
|
, '#description' => t('Default SRS for map layers. If not empty, a new map layer derived from a WMS will have its projection transformed to this SRS. Note that this does not mean that the WMS supports this SRS when serving images.') |
| 52 |
|
, '#size' => 12 |
| 53 |
|
); |
| 54 |
|
|
| 55 |
// todo: add maximum extent/projection for the maplayer feeds |
// todo: add maximum extent/projection for the maplayer feeds |
| 56 |
|
|
| 57 |
return system_settings_form($form); |
return system_settings_form($form); |