|
|
|
@ -62,11 +62,6 @@ public class GisLayerPane extends JPanel implements UIObserver {
|
|
|
|
|
|
|
|
|
|
private String[] layers = MapLayerConfigManager.getCustomLayerItems(); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* fvs的具体类型 |
|
|
|
|
*/ |
|
|
|
|
private static final String FVS_TEMPLATE_CLASS = "com.fr.plugin.wysiwyg.report.JDuchamp"; |
|
|
|
|
|
|
|
|
|
public GisLayerPane() { |
|
|
|
|
initComps(); |
|
|
|
|
} |
|
|
|
@ -352,14 +347,11 @@ public class GisLayerPane extends JPanel implements UIObserver {
|
|
|
|
|
* @param layer 图层 |
|
|
|
|
*/ |
|
|
|
|
private void adaptEditingTemplateTheme(GisLayer layer) { |
|
|
|
|
if (GeneralContext.isSimpleChineseEnv()) { |
|
|
|
|
if (Locale.CHINA.equals(GeneralContext.getLocale())) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
JTemplate<?, ?> currentEditingTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (JTemplate.isValid(currentEditingTemplate)) { |
|
|
|
|
if (FVS_TEMPLATE_CLASS.equals(currentEditingTemplate.getClass().getName())) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
boolean dark = currentEditingTemplate.getTemplateTheme().isDark(); |
|
|
|
|
String name = dark ? Toolkit.i18nText("Fine-Design_Chart_Layer_Black") : Toolkit.i18nText("Fine-Design_Chart_Layer_MapBox"); |
|
|
|
|
layer.setLayerName(name); |
|
|
|
|