Opened 14 years ago

Closed 14 years ago

#346 closed defect (fixed)

JS error when setting singleTile: true in WMS layers in config-gui

Reported by: just Owned by: geonetwork-devel@…
Priority: major Milestone: v2.6.1
Component: User interface (web) Version: v2.6.0
Keywords: wms map viewer Cc:

Description

All WMS-layers seem to be treated as tiled WMS (-C) layers, even the layers (like Ortophoto) that are initially configured to access the bundled GeoServer WMS. (just look at all the WMS requests for 256x256 tiles in e.g. Firebug). Normally, in OpenLayers "untiled" WMS can be enforced by setting "singleTile: true" within the layer options. But when I set "singleTile: true" in any <layer> element in config-gui.xml I get a JavaScript error on page loading (Error: position is null Source File: http://127.0.0.1:8080/geonetwork/scripts/openlayers/OpenLayers.js Line: 640). I've tried debugging in Firebug. It looks like is that the size of the DOM/Map element is unknown at map init and all calculations result in NaN.

To reproduce: set singleTile: true in the <layer> elements in config-gui.xml

Change History (1)

comment:1 by josegar74, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.