Commit 9eca1717 authored by 皮倩雯's avatar 皮倩雯

fix: '地图增加配置'

parent f1042920
Pipeline #69491 passed with stages
...@@ -225,6 +225,7 @@ const Map = props => { ...@@ -225,6 +225,7 @@ const Map = props => {
let list = {}; let list = {};
list.layers = dalist; list.layers = dalist;
console.log(list); console.log(list);
debugger;
setFirstList({ ...list }); setFirstList({ ...list });
setTimeout(() => { setTimeout(() => {
form.setFieldsValue({ form.setFieldsValue({
...@@ -436,6 +437,8 @@ const Map = props => { ...@@ -436,6 +437,8 @@ const Map = props => {
console.log(123); console.log(123);
setMap(viewObject); setMap(viewObject);
console.log(viewObject);
debugger;
watchUtils.watch(viewObject, ['zoom'], newzoom => { watchUtils.watch(viewObject, ['zoom'], newzoom => {
// 鼠标滚动隐藏管网图 // 鼠标滚动隐藏管网图
viewObject.map.layers.find(layer => { viewObject.map.layers.find(layer => {
...@@ -572,6 +575,7 @@ const Map = props => { ...@@ -572,6 +575,7 @@ const Map = props => {
let list = {}; let list = {};
list.layers = dalist; list.layers = dalist;
console.log(list); console.log(list);
debugger;
setFirstList({ ...list }); setFirstList({ ...list });
}); });
setArea(''); setArea('');
...@@ -1231,7 +1235,6 @@ const Map = props => { ...@@ -1231,7 +1235,6 @@ const Map = props => {
</div> </div>
</div> </div>
<div className={styles.mapBox}> <div className={styles.mapBox}>
{console.log(firstList)}
{canLoadMap && ( {canLoadMap && (
<ArcGISSceneMap <ArcGISSceneMap
ref={mapRef} ref={mapRef}
...@@ -1249,6 +1252,9 @@ const Map = props => { ...@@ -1249,6 +1252,9 @@ const Map = props => {
view={map} view={map}
savaCallback={onSave} savaCallback={onSave}
ref={styleRef} ref={styleRef}
pipenetLayer={
firstList.layers && firstList.layers.find(item => item.layerType === 'PipenetLayer')
}
/> />
) : ( ) : (
<></> <></>
......
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