--- includes/layer_types/wms_original.inc 2010-08-16 15:48:54.000000000 +0300 +++ includes/layer_types/wms.inc 2010-08-16 17:21:25.000000000 +0300 @@ -16,6 +16,9 @@ class openlayers_layer_type_wms extends if (isset($this->data['options']['srs'])) { $pts = explode(':', $this->data['options']['srs']); $this->data['projection'] = array($pts[1]); + $this->data['params']['resolutions'] = openlayers_get_resolutions($pts[1]); + $this->data['params']['projection'] = $this->data['options']['srs']; + $this->data['params']['maxextent'] = openlayers_get_extent($pts[1]); } $this->data['baselayer'] = $this->data['params']['isBaseLayer']; $this->data += $this->options_init(); @@ -30,9 +33,6 @@ class openlayers_layer_type_wms extends */ function options_init() { return array( - 'serverResolutions' => openlayers_get_resolutions('900913'), - 'maxExtent' => openlayers_get_extent('900913'), - 'projection' => array('900913'), 'layer_handler' => 'wms', 'baselayer' => FALSE ); @@ -56,7 +56,7 @@ class openlayers_layer_type_wms extends '#type' => 'checkbox', '#default_value' => isset($this->data['params']['isBaseLayer']) ? $this->data['params']['isBaseLayer'] : TRUE, - '#return_value' => TRUE, + '#return_value' => 'true', '#title' => t('BaseLayer'), '#description' => t('Uncheck to make this map an overlay') ), @@ -99,7 +99,7 @@ class openlayers_layer_type_wms extends '#type' => 'checkbox', '#default_value' => isset($this->data['options']['TRANSPARENT']) ? $this->data['options']['TRANSPARENT'] : FALSE, - '#return_value' => TRUE, + '#return_value' => 'true', '#title' => t('Transparent'), '#description' => t('When a PNG, make the background color transparent') ),