[Geoserver-devel] [jira] Created: (GEOS-4084) Layer Preview uses invalid layer params

Layer Preview uses invalid layer params
---------------------------------------

                 Key: GEOS-4084
                 URL: http://jira.codehaus.org/browse/GEOS-4084
             Project: GeoServer
          Issue Type: Bug
          Components: UI
    Affects Versions: 2.0.2
            Reporter: Andreas Hocevar
            Assignee: Andrea Aime

The layer preview generates layers like this:
{noformat}
tiled = new OpenLayers.Layer.WMS(
    "bugsites - Tiled", "http://localhost:8001/geoserver/wms",
    {
        height: '330',
        width: '938',
        layers: 'base:bugsites',
        styles: '',
        srs: 'EPSG:26713',
        format: format,
        tiled: 'true',
        tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom
    },
    {
        buffer: 0,
        displayOutsideMaxExtent: true
    }
);
{noformat}
{{width}}, {{height}} and {{srs}} should be removed, because they will be overwritten by OpenLayers before a tile is requested.

The case of {{srs}} generates a non neglectable load of questions on the OpenLayers lists, because people think that if they want the layer in a different srs, they just have to change that. But what should be changed instead is the {{projection}} map option (among other map options).

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira