Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
CivWeb
Commits
c29de16e
Commit
c29de16e
authored
Apr 24, 2022
by
yzl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- 调整基座webgis子应用地图显示
parent
bdb087c5
Pipeline
#48589
skipped with stages
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
BasicLayout.js
src/layouts/BasicLayout.js
+0
-0
index.js
src/pages/map/amap/index.js
+8
-2
No files found.
src/layouts/BasicLayout.js
View file @
c29de16e
This diff is collapsed.
Click to expand it.
src/pages/map/amap/index.js
View file @
c29de16e
...
...
@@ -3,6 +3,7 @@ import { AMapScene } from '@wisdom-map/Amap';
import
{
connect
}
from
'react-redux'
;
import
{
store
}
from
'@wisdom-utils/utils'
;
import
{
actionCreators
}
from
'../../../containers/App/store'
;
const
AMap
=
props
=>
{
const
getMap
=
(
obj
,
current
)
=>
{
store
.
set
(
'amapView'
,
{
...
...
@@ -14,10 +15,15 @@ const AMap = props => {
map
:
current
,
});
};
const
mapOptions
=
{
config
:
props
.
global
.
mapsettings
,
config
:
window
.
globalConfig
.
mapsettings
,
theme
:
'amap://styles/74fae00a851749793870b658f9f22d55'
,
mapOptions
:
{
plugins
:
[
'AMap.MarkerClusterer'
],
},
};
return
(
<
div
style
=
{{
...
...
@@ -32,9 +38,9 @@ const AMap = props => {
<
/div
>
);
};
const
mapStateToProps
=
state
=>
({
global
:
state
.
getIn
([
'global'
,
'globalConfig'
]),
amapView
:
state
.
getIn
([
'global'
,
'amapView'
]),
});
const
mapDispatchToProps
=
dispatch
=>
({
...
...
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