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