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

fix: '地图增加配置'

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