removed unused code. Moved to gwt-ol.8.5
This commit is contained in:
parent
8bcda493da
commit
6176bb20d9
|
@ -111,6 +111,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -245,6 +247,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -379,6 +383,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -513,6 +519,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -647,6 +655,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -687,8 +697,15 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||||
|
<dependent-module archiveName="geoportal-client-1.2.2-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/geoportal-client/geoportal-client">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -935,6 +952,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1069,6 +1088,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1203,6 +1224,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -23,7 +23,7 @@
|
||||||
<gwt.version>2.10.0</gwt.version>
|
<gwt.version>2.10.0</gwt.version>
|
||||||
<gwt.compiler.style>PRETTY</gwt.compiler.style>
|
<gwt.compiler.style>PRETTY</gwt.compiler.style>
|
||||||
<gson.version>2.6.2</gson.version>
|
<gson.version>2.6.2</gson.version>
|
||||||
<gwt.ol.version>8.4.1</gwt.ol.version>
|
<gwt.ol.version>8.5.0</gwt.ol.version>
|
||||||
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
|
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
|
||||||
<!-- GWT 2.9 support 8, 9 and 11 -->
|
<!-- GWT 2.9 support 8, 9 and 11 -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
|
|
|
@ -24,7 +24,6 @@ import org.gcube.portlets.user.geoportaldataviewer.client.ui.map.ExtentMapUtil.P
|
||||||
import org.gcube.portlets.user.geoportaldataviewer.client.ui.map.MapView;
|
import org.gcube.portlets.user.geoportaldataviewer.client.ui.map.MapView;
|
||||||
|
|
||||||
import com.github.gwtbootstrap.client.ui.Button;
|
import com.github.gwtbootstrap.client.ui.Button;
|
||||||
import com.github.gwtbootstrap.client.ui.Modal;
|
|
||||||
import com.github.gwtbootstrap.client.ui.constants.ButtonType;
|
import com.github.gwtbootstrap.client.ui.constants.ButtonType;
|
||||||
import com.github.gwtbootstrap.client.ui.constants.IconType;
|
import com.github.gwtbootstrap.client.ui.constants.IconType;
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
|
@ -39,7 +38,6 @@ import com.google.gwt.user.client.Random;
|
||||||
import com.google.gwt.user.client.Window;
|
import com.google.gwt.user.client.Window;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
import com.google.gwt.user.client.ui.Composite;
|
import com.google.gwt.user.client.ui.Composite;
|
||||||
import com.google.gwt.user.client.ui.FlowPanel;
|
|
||||||
import com.google.gwt.user.client.ui.FormPanel;
|
import com.google.gwt.user.client.ui.FormPanel;
|
||||||
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteEvent;
|
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteEvent;
|
||||||
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteHandler;
|
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteHandler;
|
||||||
|
|
|
@ -2,18 +2,13 @@ package org.gcube.portlets.user.geoportaldataviewer.shared.gis;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.gcube.application.geoportalcommon.shared.gis.BoundsMap;
|
import org.gcube.application.geoportalcommon.shared.gis.BoundsMap;
|
||||||
import org.gcube.portlets.user.geoportaldataviewer.client.GeoportalDataViewerConstants.LayerType;
|
|
||||||
import org.gcube.portlets.user.geoportaldataviewer.client.util.URLUtil;
|
|
||||||
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.Property;
|
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.Property;
|
||||||
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.ZAxis;
|
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.ZAxis;
|
||||||
|
|
||||||
import com.google.gwt.core.client.GWT;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Class LayerItem.
|
* The Class LayerItem.
|
||||||
*
|
*
|
||||||
|
@ -953,90 +948,4 @@ public class LayerItem implements Serializable, Cloneable {
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* To layer item.
|
|
||||||
*
|
|
||||||
* @param layerType the layer type
|
|
||||||
* @param layerTitle the layer title
|
|
||||||
* @param layerName the layer name
|
|
||||||
* @param layerURL the layer URL
|
|
||||||
* @param mapServerHost the map server host
|
|
||||||
* @param isExternal the is external
|
|
||||||
* @param isBase the is base
|
|
||||||
* @param displayInLayerSwitcher the display in layer switcher
|
|
||||||
* @param styles the styles
|
|
||||||
* @param wmsLink the wms link
|
|
||||||
* @param onTop the on top
|
|
||||||
* @param wmsNotStandardParams the wms not standard params
|
|
||||||
* @param isNcWms the is nc wms
|
|
||||||
* @param UUID the uuid
|
|
||||||
* @param zAxis the z axis
|
|
||||||
* @param minResolution the min resolution
|
|
||||||
* @param maxResolution the max resolution
|
|
||||||
* @return the layer item
|
|
||||||
*/
|
|
||||||
|
|
||||||
// TODO Constructor from IndexLayerDV, GCUBESDILAeryDV or direct info
|
|
||||||
private LayerItem toLayerItem(LayerType layerType, String layerTitle, String layerName, String layerURL,
|
|
||||||
String mapServerHost, boolean isExternal, boolean isBase, boolean displayInLayerSwitcher,
|
|
||||||
ArrayList<String> styles, String wmsLink, boolean onTop, HashMap<String, String> wmsNotStandardParams,
|
|
||||||
boolean isNcWms, String UUID, ZAxis zAxis, Double minResolution, Double maxResolution) {
|
|
||||||
|
|
||||||
// GWT.log("Add addLayerByWms 1");
|
|
||||||
LayerItem layerItem = new LayerItem();
|
|
||||||
layerItem.setBaseLayer(isBase);
|
|
||||||
layerItem.setTitle(layerTitle);
|
|
||||||
layerItem.setName(layerName);
|
|
||||||
layerItem.setUrl(layerURL);
|
|
||||||
layerItem.setMapServerHost(mapServerHost);
|
|
||||||
// l.setExternal(isExternal);
|
|
||||||
layerItem.setOpacity(1d);
|
|
||||||
layerItem.setBuffer(2);
|
|
||||||
layerItem.setWmsLink(wmsLink);
|
|
||||||
layerItem.setWmsNotStandardParams(wmsNotStandardParams);
|
|
||||||
layerItem.setNcWms(isNcWms);
|
|
||||||
layerItem.setUUID(UUID);
|
|
||||||
layerItem.setZAxis(zAxis);
|
|
||||||
layerItem.setMinResolution(minResolution);
|
|
||||||
layerItem.setMaxResolution(maxResolution);
|
|
||||||
|
|
||||||
switch (layerType) {
|
|
||||||
|
|
||||||
// TODO IMPLEMENT THIS CASE
|
|
||||||
case RASTER_BASELAYER:
|
|
||||||
|
|
||||||
// l.setHasLegend(false);
|
|
||||||
layerItem.setBaseLayer(true);
|
|
||||||
layerItem.setTrasparent(false);
|
|
||||||
layerItem.setClickData(false);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case FEATURE_TYPE:
|
|
||||||
|
|
||||||
// CASE FEATURE TYPE
|
|
||||||
layerItem.setBaseLayer(false);
|
|
||||||
layerItem.setClickData(true);
|
|
||||||
layerItem.setTrasparent(true);
|
|
||||||
break;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
GWT.log("styles " + styles);
|
|
||||||
|
|
||||||
if (styles != null && styles.size() > 0) {
|
|
||||||
layerItem.setHasLegend(true);
|
|
||||||
layerItem.setDefaultStyle(styles.get(0));
|
|
||||||
layerItem.setStyle(styles.get(0));
|
|
||||||
layerItem.setStyles(styles);
|
|
||||||
} else {
|
|
||||||
String style = URLUtil.getValueOfParameter("styles", wmsLink);
|
|
||||||
if (style != null) { // CASE OF STYLE ="";
|
|
||||||
// TENTATIVE TO GET LEGEND
|
|
||||||
layerItem.setHasLegend(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
GWT.log("Built layer: " + layerItem);
|
|
||||||
return layerItem;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue