[GeoNetwork-users] How to add a WMS layer by default on Map (Geonetwork 3.0.1)

I need configure WMS layers by default of my geoserver on Map the Geonetwork
3.0.1 installation. How do it??

Start the map and on the section "ManageLayers", the layers load by default,
view the following image

<http://osgeo-org.1560.x6.nabble.com/file/n5248566/managelayers.png&gt;

I try with json in settings, but not work.

{"viewerMap":"../../map/config-viewer.xml","listOfServices":{"wms":["http://192.168.11.82:8080/geoserver/wms?&quot;\],"wmts":},"useOSM":true,"context":"","layer":{"url":"http://192.168.11.82:8080/geoserver/wms&quot;,&quot;layers&quot;:&quot;add:coberturas\_bo\_2009\_2010&quot;,&quot;version&quot;:&quot;1\.1\.1&quot;\},"projection":"EPSG:3857","projectionList":[{"code":"EPSG:4326","label":"WGS84
(EPSG:4326)"},{"code":"EPSG:3857","label":"Google mercator (EPSG:3857)"}]}

Thanks.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-add-a-WMS-layer-by-default-on-Map-Geonetwork-3-0-1-tp5248566.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

Do you want it as a background layer or a simple layer ?
I think this is depecrated, i need to check.

But usually, everything is managed through the default OWS Context.

On Tue, Feb 2, 2016 at 8:38 PM, cbeltran <cbeltran@anonymised.com> wrote:

I need configure WMS layers by default of my geoserver on Map the
Geonetwork
3.0.1 installation. How do it??

Start the map and on the section "ManageLayers", the layers load by
default,
view the following image

<http://osgeo-org.1560.x6.nabble.com/file/n5248566/managelayers.png&gt;

I try with json in settings, but not work.

{"viewerMap":"../../map/config-viewer.xml","listOfServices":{"wms":["
http://192.168.11.82:8080/geoserver/wms
?"],"wmts":},"useOSM":true,"context":"","layer":{"url":"
http://192.168.11.82:8080/geoserver/wms
","layers":"add:coberturas_bo_2009_2010","version":"1.1.1"},"projection":"EPSG:3857","projectionList":[{"code":"EPSG:4326","label":"WGS84
(EPSG:4326)"},{"code":"EPSG:3857","label":"Google mercator (EPSG:3857)"}]}

Thanks.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/How-to-add-a-WMS-layer-by-default-on-Map-Geonetwork-3-0-1-tp5248566.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

*Florent Gravin*
0479444492

Hi Florent

I need it as a single layer. For example in Geonetwork 2.10.4 configured
this:

<http://osgeo-org.1560.x6.nabble.com/file/n5248669/overlay.png&gt;

It works...

On Geonetwork 3.0.1 I modify "config-viewer.xml" but not works

Help me...

Thanks...

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-add-a-WMS-layer-by-default-on-Map-Geonetwork-3-0-1-tp5248566p5248669.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

In the viewer, go in Maps/Load default map to load the context you have
changed.
Otherwise, the context come from the localStorage

On Wed, Feb 3, 2016 at 2:57 PM, cbeltran <cbeltran@anonymised.com> wrote:

Hi Florent

I need it as a single layer. For example in Geonetwork 2.10.4 configured
this:

<http://osgeo-org.1560.x6.nabble.com/file/n5248669/overlay.png&gt;

It works...

On Geonetwork 3.0.1 I modify "config-viewer.xml" but not works

Help me...

Thanks...

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/How-to-add-a-WMS-layer-by-default-on-Map-Geonetwork-3-0-1-tp5248566p5248669.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

*Florent Gravin*
0479444492

This is working for me (you can change group so that it is not in background
layers group):

<ows-context:Layer name="0"
                       group="Background layers"
                       hidden="false"
                       opacity="1">
      <ows:Title>DOF5</ows:Title>
      <ows-context:Server service="urn:ogc:serviceType:WMS">
        <ows-context:OnlineResource
xlink:href="http://copernicus.discomap.eea.europa.eu/arcgis/services/GioLandPublic/EU_DEM/MapServer/WmsServer&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;/&gt;
      </ows-context:Server>
    </ows-context:Layer>

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-add-a-WMS-layer-by-default-on-Map-Geonetwork-3-0-1-tp5248566p5249056.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.