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
Jun 07, 2022
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 = {
...
@@ -30,7 +30,7 @@ const defaultMap = {
icon
:
''
,
icon
:
''
,
layerType
:
'amap-v'
,
layerType
:
'amap-v'
,
url
:
''
,
url
:
''
,
opacity
:
0.56
,
opacity
:
1
,
visible
:
false
,
visible
:
false
,
useProxy
:
false
,
useProxy
:
false
,
proxyUrl
:
''
,
proxyUrl
:
''
,
...
@@ -73,7 +73,44 @@ const defaultMap = {
...
@@ -73,7 +73,44 @@ const defaultMap = {
boundWidth
:
'10px'
,
boundWidth
:
'10px'
,
backgroundOpacity
:
'0.6'
,
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
Map
=
props
=>
{
const
{
visible
,
onCancel
,
schemename
}
=
props
;
const
{
visible
,
onCancel
,
schemename
}
=
props
;
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
...
@@ -93,6 +130,7 @@ const Map = props => {
...
@@ -93,6 +130,7 @@ const Map = props => {
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
mapRef
=
useRef
();
const
mapRef
=
useRef
();
const
mapInfo
=
useRef
(
null
);
const
mapInfo
=
useRef
(
null
);
useEffect
(()
=>
{
useEffect
(()
=>
{
GetWebSiteConfig
({
client
:
'sandbox'
}).
then
(
res
=>
{
GetWebSiteConfig
({
client
:
'sandbox'
}).
then
(
res
=>
{
console
.
log
(
res
.
data
[
0
].
mapsettings
,
'res.data[0].mapsettings'
);
console
.
log
(
res
.
data
[
0
].
mapsettings
,
'res.data[0].mapsettings'
);
...
@@ -363,7 +401,12 @@ const Map = props => {
...
@@ -363,7 +401,12 @@ const Map = props => {
</
div
>
</
div
>
<
div
className=
{
styles
.
mapBox
}
>
<
div
className=
{
styles
.
mapBox
}
>
{
canLoadMap
&&
(
{
canLoadMap
&&
(
<
ArcGISMap
ref=
{
mapRef
}
getMapInfo=
{
e
=>
getMapInfo
(
e
)
}
config=
{
mapsettings
}
/>
<
ArcGISMap
ref=
{
mapRef
}
getMapInfo=
{
e
=>
getMapInfo
(
e
)
}
config=
{
mapsettings
}
widgets=
{
widgets
}
/>
)
}
)
}
</
div
>
</
div
>
</
div
>
</
div
>
...
...
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