Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
90a4b27a
Commit
90a4b27a
authored
2 years ago
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 添加底图插件
parent
2c93dee5
Pipeline
#52132
waiting for manual action with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
3 deletions
+46
-3
index.jsx
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
+46
-3
No files found.
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
View file @
90a4b27a
...
...
@@ -30,7 +30,7 @@ const defaultMap = {
icon
:
''
,
layerType
:
'amap-v'
,
url
:
''
,
opacity
:
0.56
,
opacity
:
1
,
visible
:
false
,
useProxy
:
false
,
proxyUrl
:
''
,
...
...
@@ -73,7 +73,44 @@ const defaultMap = {
boundWidth
:
'10px'
,
backgroundOpacity
:
'0.6'
,
};
const
widgets
=
[
{
label
:
'缩放'
,
right
:
20
,
bottom
:
130
,
config
:
{},
},
{
label
:
'坐标'
,
left
:
20
,
bottom
:
20
,
config
:
{},
},
{
label
:
'比例尺'
,
left
:
60
,
bottom
:
70
,
config
:
{},
},
{
label
:
'复位'
,
right
:
20
,
bottom
:
90
,
config
:
{},
},
{
label
:
'图层'
,
right
:
20
,
bottom
:
50
,
config
:
{},
},
{
label
:
'底图切换'
,
right
:
60
,
bottom
:
45
,
config
:
{},
},
];
const
Map
=
props
=>
{
const
{
visible
,
onCancel
,
schemename
}
=
props
;
const
[
form
]
=
Form
.
useForm
();
...
...
@@ -93,6 +130,7 @@ const Map = props => {
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
mapRef
=
useRef
();
const
mapInfo
=
useRef
(
null
);
useEffect
(()
=>
{
GetWebSiteConfig
({
client
:
'sandbox'
}).
then
(
res
=>
{
console
.
log
(
res
.
data
[
0
].
mapsettings
,
'res.data[0].mapsettings'
);
...
...
@@ -363,7 +401,12 @@ const Map = props => {
</
div
>
<
div
className=
{
styles
.
mapBox
}
>
{
canLoadMap
&&
(
<
ArcGISMap
ref=
{
mapRef
}
getMapInfo=
{
e
=>
getMapInfo
(
e
)
}
config=
{
mapsettings
}
/>
<
ArcGISMap
ref=
{
mapRef
}
getMapInfo=
{
e
=>
getMapInfo
(
e
)
}
config=
{
mapsettings
}
widgets=
{
widgets
}
/>
)
}
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment