[GeoNetwork-users] changing the base mapping in GN 3.0.4

I'm following the instructions at
https://www.geocat.net/setting-up-geonetwork-with-dutch-pdok-tile-services/
to change out the base maps in my test GN server, and it keeps loading the
base maps in WEB-INF/data/data/resources/map/config-viewer.xml regardless
of what I do. Should I delete this file? or is there some way to override
it in the catalog/views/default/config.js file?

On a related note - where do I look to change out the base map in the
metadata spatial extent box? it seems to be coming from region.getmap.png?

Cheers

Ian
--
Ian Turton

I had successfuly changed config-viewer.xml

you can also change directly in config.js, by copying javascript from your
provided link, but what is not written here, and it is the most important
step is, that you must delete all wro4j* files in dataDir or run application
with debug parameter in url for example:
http://localhost:8080/geonetwork/srv/slv/catalog.search*?debug*#/map .
I tried code from your link and it is working ok, I get map of Amsterdam and
Rotterdam.

About changing basemap in spatial extent box;
url is coming from here:
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-spring-geonetwork.xml#L152

But I didn't try changing/playing with it yet, as provided map is good
enough for me right know.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/changing-the-base-mapping-in-GN-3-0-4-tp5276403p5276549.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Just to follow this up, I can now change the base layers in the map using
the technique described in
https://www.geocat.net/setting-up-geonetwork-with-dutch-pdok-tile-services/
but an indeterminate number of reboots/cache clears/debugging sessions seem
to be needed to make it work correctly. I guess this is just life with
JavaScript.

For the change to the schema extent map - you can specify the URL to use
for your base map in config-spring-geonetwork.xml but unless you call it
"osm" there is no way short of hand editing the default template
recordView.html to use it.

Ian

On 15 July 2016 at 11:49, amacar <amadej.pevec@anonymised.com> wrote:

I had successfuly changed config-viewer.xml

you can also change directly in config.js, by copying javascript from your
provided link, but what is not written here, and it is the most important
step is, that you must delete all wro4j* files in dataDir or run
application
with debug parameter in url for example:
http://localhost:8080/geonetwork/srv/slv/catalog.search*?debug*#/map .
I tried code from your link and it is working ok, I get map of Amsterdam
and
Rotterdam.

About changing basemap in spatial extent box;
url is coming from here:

https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-spring-geonetwork.xml#L152

But I didn't try changing/playing with it yet, as provided map is good
enough for me right know.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/changing-the-base-mapping-in-GN-3-0-4-tp5276403p5276549.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and
traffic
patterns at an interface-level. Reveals which users, apps, and protocols
are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
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

--
Ian Turton