From: jose g. <jos...@gm...> - 2010-10-12 11:35:10
|
Hi Just Thanks for your tests and comments. About the singleTile parameter, please open a bug and i will check for a fix. About the config-gui.xml, the params and options values in layers definitions are intended to put the json array with the configuration of the layers, but maybe need improve support. Regards, Jose García On Tue, Oct 12, 2010 at 1:23 PM, Just van den Broecke <ju...@ju...>wrote: > Hi, > > I am trying to configure the maps (mapSearch/mapViewer) en MD extent > views within GN 2.6.0 with different SRSs, tile extents and resolutions > (for the Dutch coordinate system). I got quite far by modifying > config-gui.xml and main-page.xsl and overriding ExtentMap.js. I have 1 > real issue and a suggestion for improving the configuration of maps. > > The issue I found is that all layers seem to be treated as tiled WMS > (-C) layers, even the layers (like Ortophoto) that are initially > configured with the built-in GeoServer. (just look at all the WMS > requests in e.g. Firebug). Normally, in OpenLayers "untiled" WMS can be > enforced by setting "singleTile: true" within the layer option. 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. Possibly someone can enlighten or should I open a ticket ? > > The second issue is an improvement I see in configuration of maps: > OpenLayers has lots of config options. Some of it is now in config-gui, > some in XSL and some in JavaScript (e.g. extentMap). Ideally everything > would be configured in config-gui. Configuring in JS (JSON structures) > would be easiest. Maybe some JS structures in config-gui which are > eval-ed or mimick a JS config in XML, or plain JS files ? > > But in general: GN rocks. > > best, > > --Just > > Just van den Broecke > The Netherlands > http://www.justobjects.nl > > > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > GeoNetwork-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geonetwork-users > GeoNetwork OpenSource is maintained at > http://sourceforge.net/projects/geonetwork > |