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:
parent
64a39a3304
commit
72333f84e0
|
@ -1394,15 +1394,15 @@ public class SearchController {
|
||||||
GisViewerParameters gisViewerParameters = new GisViewerParameters();
|
GisViewerParameters gisViewerParameters = new GisViewerParameters();
|
||||||
List<String> layers = new ArrayList<String>();
|
List<String> layers = new ArrayList<String>();
|
||||||
|
|
||||||
layers.add(ConstantsSpeciesDiscovery.ENVIRONMENTS);
|
// layers.add(ConstantsSpeciesDiscovery.ENVIRONMENTS);
|
||||||
// layers.add(ConstantsSpeciesDiscovery.WORLD_BORDERS);
|
//// layers.add(ConstantsSpeciesDiscovery.WORLD_BORDERS);
|
||||||
layers.add(ConstantsSpeciesDiscovery.SST_AN_MEAN);
|
// layers.add(ConstantsSpeciesDiscovery.SST_AN_MEAN);
|
||||||
layers.add(ConstantsSpeciesDiscovery.PRIM_PROD_MEAN);
|
// layers.add(ConstantsSpeciesDiscovery.PRIM_PROD_MEAN);
|
||||||
layers.add(ConstantsSpeciesDiscovery.SALINITY_MEAN);
|
// layers.add(ConstantsSpeciesDiscovery.SALINITY_MEAN);
|
||||||
layers.add(ConstantsSpeciesDiscovery.EEZALL);
|
// layers.add(ConstantsSpeciesDiscovery.EEZALL);
|
||||||
layers.add(ConstantsSpeciesDiscovery.FAOAREA);
|
// layers.add(ConstantsSpeciesDiscovery.FAOAREA);
|
||||||
layers.add(ConstantsSpeciesDiscovery.LME);
|
// layers.add(ConstantsSpeciesDiscovery.LME);
|
||||||
layers.add(ConstantsSpeciesDiscovery.DEPTH_MEAN_ANNUAL);
|
// layers.add(ConstantsSpeciesDiscovery.DEPTH_MEAN_ANNUAL);
|
||||||
layers.add(layerName);
|
layers.add(layerName);
|
||||||
|
|
||||||
gisViewerParameters.setOpeningLayers(layers);
|
gisViewerParameters.setOpeningLayers(layers);
|
||||||
|
|
|
@ -247,8 +247,8 @@ public class TabItemForTaxonomyRow {
|
||||||
*
|
*
|
||||||
* @param taxon
|
* @param taxon
|
||||||
* @param dataSource
|
* @param dataSource
|
||||||
* @param parentIndex - if parent index is egual -1.. the method set parent item of taxon as currentItem
|
* @param parentIndex - if parent index is equal -1.. the method set parent item of taxon as currentItem
|
||||||
* if parent index is egual -2.. the method not set parents of taxon
|
* if parent index is equal -2.. the method not set parents of taxon
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -5,13 +5,13 @@ package org.gcube.portlets.user.speciesdiscovery.client;
|
||||||
|
|
||||||
import static org.gcube.data.spd.client.plugins.AbstractPlugin.manager;
|
import static org.gcube.data.spd.client.plugins.AbstractPlugin.manager;
|
||||||
|
|
||||||
import java.net.URI;
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
import org.gcube.common.scope.api.ScopeProvider;
|
||||||
import org.gcube.data.spd.client.proxies.Manager;
|
import org.gcube.data.spd.client.proxies.Manager;
|
||||||
import org.gcube.data.spd.model.exceptions.InvalidQueryException;
|
import org.gcube.data.spd.model.exceptions.InvalidQueryException;
|
||||||
import org.gcube.data.spd.model.products.ResultElement;
|
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.spd.stubs.exceptions.UnsupportedPluginException;
|
||||||
import org.gcube.data.streams.Stream;
|
import org.gcube.data.streams.Stream;
|
||||||
|
|
||||||
|
@ -25,8 +25,9 @@ public class ServiceQuery {
|
||||||
* @param args
|
* @param args
|
||||||
* @throws UnsupportedPluginException
|
* @throws UnsupportedPluginException
|
||||||
* @throws InvalidQueryException
|
* @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 = "/gcube/devsec";
|
||||||
// String scope = "/d4science.research-infrastructures.eu/gCubeApps/BiodiversityResearchEnvironment"; //Production
|
// String scope = "/d4science.research-infrastructures.eu/gCubeApps/BiodiversityResearchEnvironment"; //Production
|
||||||
ScopeProvider.instance.set(scope);
|
ScopeProvider.instance.set(scope);
|
||||||
|
|
Reference in New Issue