|
|
@ -62,6 +62,11 @@ public class GisLayerPane extends JPanel implements UIObserver { |
|
|
|
|
|
|
|
|
|
|
|
private String[] layers = MapLayerConfigManager.getCustomLayerItems(); |
|
|
|
private String[] layers = MapLayerConfigManager.getCustomLayerItems(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* fvs的具体类型 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private String FVS_TEMPLATE_CLASS = "class com.fr.plugin.wysiwyg.report.JDuchamp"; |
|
|
|
|
|
|
|
|
|
|
|
public GisLayerPane() { |
|
|
|
public GisLayerPane() { |
|
|
|
initComps(); |
|
|
|
initComps(); |
|
|
|
} |
|
|
|
} |
|
|
@ -358,22 +363,16 @@ public class GisLayerPane extends JPanel implements UIObserver { |
|
|
|
* @param layer 图层 |
|
|
|
* @param layer 图层 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void adaptEditingTemplateTheme(GisLayer layer) { |
|
|
|
private void adaptEditingTemplateTheme(GisLayer layer) { |
|
|
|
if (Locale.CHINA.equals(GeneralContext.getLocale())) { |
|
|
|
if (GeneralContext.isSimpleChineseEnv()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
JTemplate<?, ?> currentEditingTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
JTemplate<?, ?> currentEditingTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
String defaultTabOperator = "DefaultTabOperator"; //用于判断是否为fvs,fvs没有主题,但会返回深色主题导致mapbox切换为black
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (JTemplate.isValid(currentEditingTemplate)) { |
|
|
|
if (JTemplate.isValid(currentEditingTemplate)) { |
|
|
|
boolean dark = currentEditingTemplate.getTemplateTheme().isDark(); |
|
|
|
if (FVS_TEMPLATE_CLASS.equals(currentEditingTemplate.getClass().toString())) { |
|
|
|
String name; |
|
|
|
return; |
|
|
|
String mapbox = Toolkit.i18nText("Fine-Design_Chart_Layer_MapBox"); |
|
|
|
|
|
|
|
String black = Toolkit.i18nText("Fine-Design_Chart_Layer_Black"); |
|
|
|
|
|
|
|
if(defaultTabOperator.equals(currentEditingTemplate.getTemplateTabOperatorType())) { |
|
|
|
|
|
|
|
name = dark ? black : mapbox; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
name = mapbox; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
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); |
|
|
|
layer.setLayerName(name); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|