[GeoNetwork-users] 2.10.3, HMTL5UI and initial map view always the twilight zone if osm_map==false

Hi.

New instance of 2.10.3, trying to get the HTML5ui configured. Clicking Map
in the gui if in config-gui.xml osm_map is false will result a getmap
request(singletile=true in mapviewer.wmc) with coordinates that I can't get
right, and I don't know where they come from. They are always -A -B +A +B or
-A -B 0 0 and they always result in a white canvas because they are wild.

Config-gui.xml says that if osm-map is false then HTML5ui will read the
initial layers from /geonetwork/maps/mapviewer.wmc . It does, but the
bounding box there seems to be ignored(with just one layer element).

There's an /apps/htlm5ui/js/map/Settings.js with a "config for wgs84 based
maps" defining an (global) extent. It also has a "Config for OSM based maps"
with an if osm based then global extent, if not then read mapviewer.wmc.

Additionally there's an EXTENT set in /apps/admin/js/Settings.js ("config
for wgs84 based maps").

These all seem a bit ignored, whether I try to use 900913 or 4326 in
mapviewer.wmc.

It should be noted that if "Zoom to extent" is clicked then that happens
alright. It's just the initial view that I don't know how to set.

I would /supremely/ much appreciate some hints on how to set the Html5ui map
straight when not using OSM for the background map, preferrably with 900913
but if that's more complicated then 4326 is alright.

Thanks in advance from a rather lost soul.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/2-10-3-HMTL5UI-and-initial-map-view-always-the-twilight-zone-if-osm-map-false-tp5105183.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi David,

Sorry I probably can't be of much help, I am also struggling with setting up
the HTML5ui initial map views but using OSM maps.

However just incase you are not aware to see any changes you make to
javascript (e.g. /apps/html5ui/js/map/Settings.js) take affect, you either
need to be in debug mode (add a debug to the url like
http://…/srv/eng/search?debug), so that the non-minified files are
used, or do a execute mvn clean install to minify.

I hope this helps.

Good luck
Shiree

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/2-10-3-HMTL5UI-and-initial-map-view-always-the-twilight-zone-if-osm-map-false-tp5105183p5105690.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,
thanks for the reply.

Yes, I have rebuilt with mvn clean and changes are reflected. Can't make
this work though so have given up for now. Tabsearch uses the map config a
bit differently it seems and I'm trying to make that work with 4326 now. If
anyone figures this out however, do give a hoot.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/2-10-3-HMTL5UI-and-initial-map-view-always-the-twilight-zone-if-osm-map-false-tp5105183p5106682.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.