|
|
@ -315,8 +315,6 @@ public class GisLayerPane extends JPanel implements UIObserver { |
|
|
|
|
|
|
|
|
|
|
|
public void update(GisLayer layer) { |
|
|
|
public void update(GisLayer layer) { |
|
|
|
if (isAuto()) { |
|
|
|
if (isAuto()) { |
|
|
|
//如果是海外环境,切换为mapbox的内容
|
|
|
|
|
|
|
|
//浅色主题为mapbox,深色主题为黑色
|
|
|
|
|
|
|
|
layer.setGisLayerType(GISLayerType.AUTO); |
|
|
|
layer.setGisLayerType(GISLayerType.AUTO); |
|
|
|
layer.setLayerName(GISLayerType.getLocString(GISLayerType.AUTO)); |
|
|
|
layer.setLayerName(GISLayerType.getLocString(GISLayerType.AUTO)); |
|
|
|
} else if (isStandardGis()) { |
|
|
|
} else if (isStandardGis()) { |
|
|
@ -327,8 +325,6 @@ public class GisLayerPane extends JPanel implements UIObserver { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void updateStandardGis(GisLayer layer) { |
|
|
|
private void updateStandardGis(GisLayer layer) { |
|
|
|
//海外情况下
|
|
|
|
|
|
|
|
//标准:黑色、mapbox、清新、素雅、午夜、无,默认选中mapbox
|
|
|
|
|
|
|
|
String layerName = Utils.objectToString(standardLayers.getSelectedItem()); |
|
|
|
String layerName = Utils.objectToString(standardLayers.getSelectedItem()); |
|
|
|
layer.setLayerName(layerName); |
|
|
|
layer.setLayerName(layerName); |
|
|
|
if (standardLayers.getSelectedIndex() == standardLayers.getItemCount() - 1) { |
|
|
|
if (standardLayers.getSelectedIndex() == standardLayers.getItemCount() - 1) { |
|
|
|