Removed default layers on instancing GisViewer

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/speciesdiscovery@81070 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-09-05 10:19:32 +00:00
parent 64a39a3304
commit 72333f84e0
4 changed files with 14 additions and 1418 deletions

View File

@ -1394,15 +1394,15 @@ public class SearchController {
GisViewerParameters gisViewerParameters = new GisViewerParameters();
List<String> layers = new ArrayList<String>();
layers.add(ConstantsSpeciesDiscovery.ENVIRONMENTS);
// layers.add(ConstantsSpeciesDiscovery.WORLD_BORDERS);
layers.add(ConstantsSpeciesDiscovery.SST_AN_MEAN);
layers.add(ConstantsSpeciesDiscovery.PRIM_PROD_MEAN);
layers.add(ConstantsSpeciesDiscovery.SALINITY_MEAN);
layers.add(ConstantsSpeciesDiscovery.EEZALL);
layers.add(ConstantsSpeciesDiscovery.FAOAREA);
layers.add(ConstantsSpeciesDiscovery.LME);
layers.add(ConstantsSpeciesDiscovery.DEPTH_MEAN_ANNUAL);
// layers.add(ConstantsSpeciesDiscovery.ENVIRONMENTS);
//// layers.add(ConstantsSpeciesDiscovery.WORLD_BORDERS);
// layers.add(ConstantsSpeciesDiscovery.SST_AN_MEAN);
// layers.add(ConstantsSpeciesDiscovery.PRIM_PROD_MEAN);
// layers.add(ConstantsSpeciesDiscovery.SALINITY_MEAN);
// layers.add(ConstantsSpeciesDiscovery.EEZALL);
// layers.add(ConstantsSpeciesDiscovery.FAOAREA);
// layers.add(ConstantsSpeciesDiscovery.LME);
// layers.add(ConstantsSpeciesDiscovery.DEPTH_MEAN_ANNUAL);
layers.add(layerName);
gisViewerParameters.setOpeningLayers(layers);

View File

@ -247,8 +247,8 @@ public class TabItemForTaxonomyRow {
*
* @param taxon
* @param dataSource
* @param parentIndex - if parent index is egual -1.. the method set parent item of taxon as currentItem
* if parent index is egual -2.. the method not set parents of taxon
* @param parentIndex - if parent index is equal -1.. the method set parent item of taxon as currentItem
* if parent index is equal -2.. the method not set parents of taxon
* @return
*/

View File

@ -5,13 +5,13 @@ package org.gcube.portlets.user.speciesdiscovery.client;
import static org.gcube.data.spd.client.plugins.AbstractPlugin.manager;
import java.net.URI;
import java.util.concurrent.TimeUnit;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.data.spd.client.proxies.Manager;
import org.gcube.data.spd.model.exceptions.InvalidQueryException;
import org.gcube.data.spd.model.products.ResultElement;
import org.gcube.data.spd.stubs.exceptions.UnsupportedCapabilityException;
import org.gcube.data.spd.stubs.exceptions.UnsupportedPluginException;
import org.gcube.data.streams.Stream;
@ -25,8 +25,9 @@ public class ServiceQuery {
* @param args
* @throws UnsupportedPluginException
* @throws InvalidQueryException
* @throws UnsupportedCapabilityException
*/
public static void main(String[] args) throws InvalidQueryException, UnsupportedPluginException {
public static void main(String[] args) throws InvalidQueryException, UnsupportedPluginException, UnsupportedCapabilityException {
String scope = "/gcube/devsec";
// String scope = "/d4science.research-infrastructures.eu/gCubeApps/BiodiversityResearchEnvironment"; //Production
ScopeProvider.instance.set(scope);