Hi to all
I have uncovered this topic since I was trying to manipulate the
region.getmap.png presented on each record (I noticed that the email
thread finished without a clear solution so I am written with a solution)
There is a good explanation here:
http://osgeo-org.1560.x6.nabble.com/GN-3-0-x-Wich-services-behind-region-getmap-png-service-td5231456.html
If you can configure the
geonetwork/WEB-INF/config-spring-geonetwork.xml like this
<util:map id="regionGetMapBackgroundLayers">
<entry key="osm"
value="http://ows.terrestris.de/osm/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=OSM-WMS&STYLES=default&SRS=\{srs\}&a$
<entry key="gray"
value="http://ows.terrestris.de/osm-gray/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=TOPO-WMS&STYLES=default&SRS=\{srs\}&a$
</util:map>
and add the required map (in my case was testing with 'gray')
After you can make a request like this to check if gray is working
http://localhost:8080/geonetwork/srv/eng/region.getmap.png?mapsrs=EPSG:3857&width=250&background=gray&geomsrs=EPSG:4326&geom=Polygon((-180%20-90,180%20-90,180%2090,-180%2090,-180%20-90))
The problem is that GN3 hasn't implemented the regio.getmap.map from the
configuration system and in the file
catalog/views/default/templates/recordView.html
There is:
<!-- TODO: use map config -->
<p data-ng-repeat="bbox in mdView.current.record.geoBox">
<img class="gn-img-thumbnail img-thumbnail gn-img-extent"
data-ng-src="region.getmap.png?mapsrs=EPSG:3857&width=250&background=osm&geomsrs=EPSG:4326&geom={{mdView.current.record.getBoxAsPolygon($in$
</p>
So the background is hard coded, if you change it to the entry key
things will start to work
background=gray
Thank you
Jorge
On 29-03-16 11:34, REBOUX Maël wrote:
Currently : no.
I'm waiting to install the 3.0.3 version to see if it is better.
And I want to test it out of my LAN too.
Not enough time actually...
-----Message d'origine-----
De : FLecuy [mailto:fanny.lecuy@anonymised.com]
Envoyé : lundi 21 mars 2016 15:06
À : geonetwork-users@lists.sourceforge.net
Objet : Re: [GeoNetwork-users] [GN 3.0.x] Wich services behind region.getmap.png service ?
Sorry to unearth this topic but I have exactly the same issue. Have you been able to resolve it ?
Thank you
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-x-Wich-services-behind-region-getmap-png-service-tp5231456p5257662.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
--
ISRIC - World Soil Information
Post: PO box 353, 6700 AJ, Wageningen,
The Netherlands Visiting Address: Droevendaalsesteeg 3, 6708 PB
Wageningen (Bdg. 101),
Office: C.013
Office Phone: +31 (0) 317 4 83715
Mobile Phone: +31 (0) 613 9 06950
Skype: jorge.de.jesus (Jorge Samuel Mendes de Jesus)
OpenPGPKey: 0xA3D0065A