Hi all,
I am trying to customize the intermap viewer in GN and have some
troubles with the default maps and adding wms services at the same time.
As default maps in the mapviewer, I use some SRTM data (srtm_1) stored
in the embedded geoserver. I changed the mapContexts section in the
mapserver.xml to:
<mapContexts>
<default name="Layers for default map -- DUMMY NAME:not used">
<server url="http://localhost:8080/geoserver/wms" type="2">
<layer name="gn:srtm_1"></layer>
</server>
<server url="http://localhost:8080/geoserver/wms" type="2">
<layer name="gn:project_area_wgs84"></layer>
</server>
</default>
and this works fine for the default map, but I can't add any wms layers
because of the proxy settings at our office.
So, in order to enable adding wms services, I changed the proxy
configuartion of Intermap and added the proxy configuration in the file
intermap/WEB-INF/config.xml in the sections:
<general>
<profiles>user-profiles.xml</profiles>
<debug>false</debug>
<uploadDir>WEB-INF/data/tmp</uploadDir>
<maxUploadSize>50</maxUploadSize> <!-- Size must be in
megabyte (integer) -->
<useProxy>true</useProxy>
<proxyHost>myproxyHost</proxyHost>
<proxyPort>8080</proxyPort>
</general>
and further below again:
<appHandler class="org.wfp.vam.intermap.Intermap">
<param name="mapServers" value="WEB-INF/mapServers.xml"
/>
<param name="axlRequests" value="WEB-INF/axl" />
<!-- proxy server -->
<param name="useProxy" value="true" />
<param name="proxyHost" value="myproxyHost" />
<param name="proxyPort" value="8080" />
After restarting Jetty, I can now add wms services, but the default maps
are gone. I guess that the conflict arises from the port number, but
don't know how to set up the port configuration correctly and what kind
of files I have to change.
Many thanks for any help in advance,
Heiko