[GeoNetwork-devel] How to turn off map layers?

Hi to all fellow geonetwork developers!
I would like to switch off the map layers for developing. Only one solution
I have for now is to just configure a layer to some non responsive url. This
solution works but leaves the browser with tens of get request errors, which
are quite annoying while debugging with browser.

In config-gui.xml I tried these things, but they end up breaking the
javascript so the page will not load at all:

1) leave the layers element empty:

  <mapViewer options="{projection: 'EPSG:4326', maxExtent: new
OpenLayers.Bounds(-180,-90,180,90), units: 'degrees',restrictedExtent: new
OpenLayers.Bounds(-46,-18,-37,-8), minScale: 40000000.0 }">
  <layers>

  </layers>
  <scales values="[7500000, 5000000, 2500000, 1000000, 750000, 500000,
250000, 100000, 75000, 50000, 25000, 10000, 7500, 5000, 2500, 1000]" />
  
  <proj>
    <crs code="EPSG:4326" default="1" name="GCS (lat/lon)" />
  </proj>
  <servers>
  </servers>
</mapViewer>

2) Leave one empty layer element in the layers element:

  <mapViewer options="{projection: 'EPSG:4326', maxExtent: new
OpenLayers.Bounds(-180,-90,180,90), units: 'degrees',restrictedExtent: new
OpenLayers.Bounds(-46,-18,-37,-8), minScale: 40000000.0 }">
  <layers>
     <layer />
  </layers>
  <scales values="[7500000, 5000000, 2500000, 1000000, 750000, 500000,
250000, 100000, 75000, 50000, 25000, 10000, 7500, 5000, 2500, 1000]" />
  
  <proj>
    <crs code="EPSG:4326" default="1" name="GCS (lat/lon)" />
  </proj>
  <servers>
  </servers>
</mapViewer>

Is there a more gracious solution that does not involve get request errors
or hacking the javascript that takes care of the map layers?
Thank you for your attention!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-turn-off-map-layers-tp5093935.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.