#320: allow resolutions/units to be configurable in config-gui.xml
----------------------------+-----------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.6.0
Component: Web Map Viewer | Version: v2.6.0
Keywords: openlayers |
----------------------------+-----------------------------------------------
So far, config-gui.xml only permits to set projection/extent for the main
map viewer/search map, it'd be nice if resolutions array/units could be
configured there too instead of being hardcoded to 'degree + autofill
scale array'. As of now (i don't work in WGS84, nor on the whole world
extent), i have to manually hack units:'m' and the scales/resolution array
in the gn.libs.map.js file.
As a side note, it looks to me that gn.libs.map.js is built from some of
the scripts/ol*.js files, but how so, and which ones ? it's not listed in
scripts/full.cfg, and i'd like to do modifications on the original files
when debugging - that supposes the include lines in xsl/main-page.xsl has
to be modified too..
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/320>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#320: allow resolutions/units to be configurable in config-gui.xml
----------------------------+-----------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.6.0
Component: Web Map Viewer | Version: v2.6.0
Keywords: openlayers |
----------------------------+-----------------------------------------------
Comment(by landry):
Oh, and there's a typo in ol_minimap.js line 46 introduced in r6302:
constrols vs controls
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/320#comment:1>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#320: allow resolutions/units to be configurable in config-gui.xml
----------------------------+-----------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.6.0
Component: Web Map Viewer | Version: v2.6.0
Keywords: openlayers |
----------------------------+-----------------------------------------------
Comment(by josegar74):
1) For debug you can add in URL debug=true parameter, using then the non
compressed javascript files.
2) About full.cfg file, is not really used since the change to maven. Now
is used yuicompressor-maven-plugin (see web/pom.xml)
3) You can specify in config-gui.xml the resolutions for layers and other
options/parameters. For example:
<layer server="http://localhost:8080/geoserver/wms" tocName="Borders"
params="{layers: 'gn:gboundaries', transparent: 'true', format:
'image/png'}" options="{}" />
you can setup this in "options" as you do in OL.
4) I'll check about the typo. Thanks for reporting
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/320#comment:2>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#320: allow resolutions/units to be configurable in config-gui.xml
-----------------------------+----------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: closed
Priority: major | Milestone: v2.6.0
Component: Web Map Viewer | Version: v2.6.0
Resolution: invalid | Keywords: openlayers
-----------------------------+----------------------------------------------
Changes (by landry):
* status: new => closed
* resolution: => invalid
Comment:
Duh. stupid me. Of course i'll set it up in options hash.. marking the
issue as invalid then. Thanks for the info and your work in the ol/mapfish
integration!
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/320#comment:3>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#320: allow resolutions/units to be configurable in config-gui.xml
-----------------------------+----------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: closed
Priority: major | Milestone: v2.6.0
Component: Web Map Viewer | Version: v2.6.0
Resolution: invalid | Keywords: openlayers
-----------------------------+----------------------------------------------
Comment(by josegar74):
Thanks for reporting.
If you get any issue working with the options/params hash, reopen the
issue, please
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/320#comment:4>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#320: parse and use mapSearch layers setting
-----------------------------+----------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: reopened
Priority: major | Milestone: v2.6.0
Component: Web Map Viewer | Version: v2.6.0
Resolution: | Keywords: openlayers
-----------------------------+----------------------------------------------
Changes (by landry):
* status: closed => reopened
* resolution: invalid =>
Comment:
Hmm.. i still have a little related issue (hence changing summary)
in xsl/main-page.xsl, when initializing minimaps in initMapsSearch, the
AdvancedSearch.init() call isn't given mapOptions as last parameter. This
is needed to apply user-specified params.
secondly, backgroundLayers is used for all three maps, and
config/mapSearch/layers/layer config key is unused. i think
xsl/geo/utils.xsl should have a second section to parse it, and use the
corresponding layer config where appropriate.
Attached diff fixes both small problems.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/320#comment:5>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.