removed setSingleTile for Raster Layer according at #1625

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gis-viewer@120534 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-12-01 15:46:35 +00:00
parent a8281f8938
commit bf1a8f1b0f
3 changed files with 6 additions and 6 deletions

View File

@ -1097,7 +1097,7 @@ implements ToolbarHandler, DataPanelHandler, LayersPanelHandler, CqlFilterHandle
public void addLayerByWms(LayerType layerType, String title, String layerName, String wmsServiceBaseUrl, boolean isExternal, boolean isBase, boolean displayInLayerSwitcher, ArrayList<String> styles, String serverWmsRequest, boolean onTop, HashMap<String, String> wmsNotStandardParams) {
GWT.log("Add addLayerByWms 1");
// GWT.log("Add addLayerByWms 1");
LayerItem l = new LayerItem();
l.setBaseLayer(isBase);
l.setTitle(title);

View File

@ -311,6 +311,7 @@ public class LayerToolsPanel extends VerticalPanel {
@Override
public void componentSelected(MenuEvent ce) {
btnStyle.setText((style.length()<11) ? style : style.substring(0, 11) + "...");
btnStyle.setTitle(style);
Constants.log("index: " + style);
layerItem.setStyle(style);
layersPanelHandler.changeLegend(layerItem, style);

View File

@ -839,21 +839,20 @@ public class OpenLayersMap {
for (String key : layerItem.getWmsNotStandardParams().keySet()) {
String value = layerItem.getWmsNotStandardParams().get(key);
wmsParams.setParameter(key, value);
// {"min":-55.33762,"max":2474.535}
// wmsParams.setParameter(key, "-42.581142,1829.7272");
// wmsParams.setParameter(key, "-55.33762,2474.535");
GWT.log("Added non-standard pair to wms request: "+key+"/"+value);
}
// wmsOptions.setUntiled();
wmsOptions.setSingleTile(true);
// wmsOptions.setSingleTile(true);
// wmsParams.setParameter("version", "1.3.0");
// wmsParams.setParameter("CRS", "EPSG:4326");
// wmsParams.setParameter("SRS", "EPSG:4326");
// wmsParams.setParameter("BBOX", "-415.283203125,-109.951171875,415.283203125,109.951171875");
// wmsOptions.setMaxResolution(2048);
}else //LAYER CAB BE TILED
wmsOptions.setBuffer(2); // from serviceimpl
//wmsParams.setMaxExtent(defaultBounds);
WMS layer = new WMS(layerItem.getTitle(), layerItem.getGeoserverWmsUrl(), wmsParams, wmsOptions);