|
|
@ -9,6 +9,7 @@ import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.plugin.chart.base.GisLayer; |
|
|
|
import com.fr.plugin.chart.base.GisLayer; |
|
|
|
import com.fr.plugin.chart.map.VanChartMapPlot; |
|
|
|
import com.fr.plugin.chart.map.VanChartMapPlot; |
|
|
@ -84,7 +85,7 @@ public class GisLayerPane extends JPanel implements UIObserver { |
|
|
|
private JPanel createGISLayerPane() { |
|
|
|
private JPanel createGISLayerPane() { |
|
|
|
gisButton = new UIButtonGroup(new String[]{Toolkit.i18nText("Fine-Design_Chart_Mode_Auto"), |
|
|
|
gisButton = new UIButtonGroup(new String[]{Toolkit.i18nText("Fine-Design_Chart_Mode_Auto"), |
|
|
|
Toolkit.i18nText("Fine-Design_Form_Widget_Style_Standard"), Toolkit.i18nText("Fine-Design_Chart_Custom")}); |
|
|
|
Toolkit.i18nText("Fine-Design_Form_Widget_Style_Standard"), Toolkit.i18nText("Fine-Design_Chart_Custom")}); |
|
|
|
gisButton.setSelectedIndex(0); |
|
|
|
gisButton.setSelectedIndex(ChartEditContext.supportTheme() ? 0 : 1); |
|
|
|
gisGaoDeLayer = new UIComboBox(MapLayerConfigManager.getGaoDeLayerItems()); |
|
|
|
gisGaoDeLayer = new UIComboBox(MapLayerConfigManager.getGaoDeLayerItems()); |
|
|
|
gisButton.addActionListener(event -> { |
|
|
|
gisButton.addActionListener(event -> { |
|
|
|
refreshZoomLevel(); |
|
|
|
refreshZoomLevel(); |
|
|
@ -236,9 +237,19 @@ public class GisLayerPane extends JPanel implements UIObserver { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void resetGisLayer(VanChartMapPlot mapPlot) { |
|
|
|
public void resetGisLayer(VanChartMapPlot mapPlot) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ChartEditContext.supportTheme()) { |
|
|
|
GisLayer defaultGisLayer = mapPlot.getDefaultGisLayer(); |
|
|
|
GisLayer defaultGisLayer = mapPlot.getDefaultGisLayer(); |
|
|
|
mapPlot.setGisLayer(defaultGisLayer); |
|
|
|
mapPlot.setGisLayer(defaultGisLayer); |
|
|
|
populate(defaultGisLayer); |
|
|
|
populate(defaultGisLayer); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
GaoDeGisType gaoDeGisType = mapPlot.getDefaultGisLayerType(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mapPlot.getGisLayer().setGisLayerType(GISLayerType.GAO_DE_API); |
|
|
|
|
|
|
|
mapPlot.getGisLayer().setLayerName(gaoDeGisType.getTypeName()); |
|
|
|
|
|
|
|
mapPlot.getGisLayer().setGaoDeGisType(gaoDeGisType); |
|
|
|
|
|
|
|
populate(mapPlot.getGisLayer()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void populate(GisLayer layer) { |
|
|
|
public void populate(GisLayer layer) { |
|
|
|