Commit 0df189e7 authored by 皮倩雯's avatar 皮倩雯

fix: '地图bug修复'

parent dfa2dba6
Pipeline #58317 passed with stages
......@@ -294,7 +294,7 @@ const Map = props => {
layer.visible = false;
}
// 若方案是后端绘制每次切换首先创建用户自定义的后端绘制管网
if (setttings.exportScheme != 'webgis') {
if (setttings.exportScheme != 'arcgis') {
const pandagisaa = new MapImageLayer({
id: setttings.id,
url: `/PandaGIS/MapServer/${setttings.id}`,
......@@ -343,7 +343,7 @@ const Map = props => {
});
return;
}
if (radio == 'webgis' && keepSave != 'success') {
if (radio == 'arcgis' && keepSave != 'success') {
message.error('请先保存管网前端绘制方案');
return;
}
......@@ -412,7 +412,7 @@ const Map = props => {
});
const onChange = e => {
if (e.target.value == 'webgis') {
if (e.target.value == 'arcgis') {
// 选择前端绘制时,如果界面有自定义的管网图就隐藏
mapInfo.current.map.layers.forEach(item => {
if (item.layerType && item.layerType == 'PipenetLayertest') {
......@@ -489,7 +489,7 @@ const Map = props => {
<Form.Item label="管网方案" name="exportScheme">
<Radio.Group onChange={onChange} value={radio}>
<Radio value="pandagis">后端绘制</Radio>
<Radio value="webgis">前端绘制</Radio>
<Radio value="arcgis">前端绘制</Radio>
</Radio.Group>
</Form.Item>
) : (
......@@ -532,7 +532,7 @@ const Map = props => {
client="sandbox"
/>
)}
{radio == 'webgis' ? (
{radio == 'arcgis' ? (
<PipenetStylesCenter
schemeName={Schemename}
mapServerName={name}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment