Date: Wed, 8 Jan 2014 14:08:06 +0000 (+0000)
Subject: added hardcoded base layer "earth" (#3941)
X-Git-Tag: 3.6.0~853
X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/9ace5c9d30feca3550cded9afbf46769fc9993f4
added hardcoded base layer "earth" (#3941)
---
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureDistributionDetailElement.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureDistributionDetailElement.java
index 6c2bd5bbd..186242eb0 100644
--- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureDistributionDetailElement.java
+++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureDistributionDetailElement.java
@@ -1,16 +1,15 @@
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
package eu.etaxonomy.taxeditor.ui.section.feature;
-import java.awt.Color;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Arrays;
@@ -42,9 +41,9 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
* @version 1.0
*/
public class FeatureDistributionDetailElement extends AbstractCdmDetailElement {
-
+
private BrowserElement image;
-
+
/**
*
Constructor for FeatureDistributionDetailElement.
*
@@ -73,7 +72,7 @@ public class FeatureDistributionDetailElement extends AbstractCdmDetailElement, java.awt.Color> presenceAbsenceTermColors = null;
// FIXME due to a bug in the rest map service we have to ensure that width will always be an even number
- // image.calculateWidth() % 2 == 1 ? image.calculateWidth() + 1 :
+ // image.calculateWidth() % 2 == 1 ? image.calculateWidth() + 1 :
int width = image.calculateWidth();
-
- String bbox = "-180,-90,180,90";
- String backLayer = null;
+
+ String bbox = "-180,-90,180,90";
+ String backLayer = "earth";
List languages = Arrays.asList(new Language[]{CdmStore.getDefaultLanguage()});
-
- String parameter = CdmStore.getGeoService().getDistributionServiceRequestParameterString(getTaxonDescriptions(),
+
+ String parameter = CdmStore.getGeoService().getDistributionServiceRequestParameterString(getTaxonDescriptions(),
false, false, null, presenceAbsenceTermColors, width, 0, bbox, backLayer, languages);
-
+
String mapUriString = String.format("%s?%s&ms=1000", accessPoint, parameter);
return mapUriString;
}
-
+
/**
* @return
*/