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

fix: '地图bug修复'

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