Revision 613875c8
Added by Katja Luther over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureDistributionDetailElement.java | ||
---|---|---|
108 | 108 |
// FIXME due to a bug in the rest map service we have to ensure that width will always be an even number |
109 | 109 |
// image.calculateWidth() % 2 == 1 ? image.calculateWidth() + 1 : |
110 | 110 |
int width = image.calculateWidth(); |
111 |
|
|
111 |
IEditGeoService editGeoService; |
|
112 | 112 |
List<Language> languages = Arrays.asList(new Language[]{CdmStore.getDefaultLanguage()}); |
113 |
|
|
114 |
IEditGeoService editGeoService = ((CdmApplicationRemoteConfiguration)CdmStore.getCurrentApplicationConfiguration()).getEditGeoService(); |
|
113 |
if(CdmStore.getCurrentApplicationConfiguration() instanceof CdmApplicationRemoteConfiguration) { |
|
114 |
editGeoService = ((CdmApplicationRemoteConfiguration)CdmStore.getCurrentApplicationConfiguration()).getEditGeoService(); |
|
115 |
}else{ |
|
116 |
editGeoService =(IEditGeoService) CdmStore.getCurrentApplicationConfiguration().getBean( |
|
117 |
"editGeoService"); |
|
118 |
} |
|
115 | 119 |
String parameter = editGeoService.getDistributionServiceRequestParameterString( |
116 | 120 |
getTaxonDescriptions(), |
117 | 121 |
false, |
Also available in: Unified diff
add distinction between remote and standalone for getting the geoService