test to integrate Open Street Map

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer-app@113556 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-03-11 09:25:48 +00:00
parent 5881d33492
commit eee59a55b1
4 changed files with 22 additions and 5 deletions

View File

@ -14,7 +14,6 @@
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/> <classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"> <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes> <attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>

View File

@ -3,10 +3,7 @@
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/> <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<dependent-module archiveName="gis-viewer-3.6.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/gisViewer/gisViewer"> <dependent-module archiveName="gis-viewer-3.6.2-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/gis-viewer-TRUNK/gis-viewer-TRUNK">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="geoserverinterface-1.10.4-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/geoserverinterface/geoserverinterface">
<dependency-type>uses</dependency-type> <dependency-type>uses</dependency-type>
</dependent-module> </dependent-module>
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/> <property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>

View File

@ -32,6 +32,26 @@ public class GisViewerApp implements EntryPoint {
updateSize(); updateSize();
/*
OSMOptions options = new OSMOptions();
options.setNumZoomLevels(Constants.numZoomLevels);
options.setProjection(Constants.defaultProjection);
options.crossOriginFix();
MapWidget mapWdg = appController.getGisViewerPanel().getOpenLayersMap().getMapWidget();
OSM osm1 = new OSM("OSM Cycle","http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png", options);
osm1.setIsBaseLayer(true);
mapWdg.getMap().addLayer(osm1);
OSM osm2 = new OSM("OSM Default","http://a.tile.openstreetmap.org/${z}/${x}/${y}.png", options);
osm2.setIsBaseLayer(true);
mapWdg.getMap().addLayer(osm2);
OSM osm3 = new OSM("OSM Humaritarian","http://b.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png", options);
osm3.setIsBaseLayer(true);
mapWdg.getMap().addLayer(osm3);
*/
appController.getGisViewerPanel().showIntro(); appController.getGisViewerPanel().showIntro();
} }

View File

@ -14,6 +14,7 @@
<!-- --> <!-- -->
<link type="text/css" rel="stylesheet" href="GisViewerApp.css"> <link type="text/css" rel="stylesheet" href="GisViewerApp.css">
<link rel='stylesheet' type='text/css' href='resources/css/gxt-all.css' /> <link rel='stylesheet' type='text/css' href='resources/css/gxt-all.css' />
<!-- <script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script> -->
<!-- --> <!-- -->
<!-- Any title is fine --> <!-- Any title is fine -->