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
fe66c3ab
Commit
fe66c3ab
authored
3 years ago
by
邹绪超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复加载地图
parent
562a7b47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.js
src/pages/cesiumMap/index.js
+2
-2
No files found.
src/pages/cesiumMap/index.js
View file @
fe66c3ab
...
@@ -6,9 +6,9 @@ const cesiumMap = props => {
...
@@ -6,9 +6,9 @@ const cesiumMap = props => {
const
ref
=
useRef
(
null
)
const
ref
=
useRef
(
null
)
const
storeRef
=
useRef
(
null
)
const
storeRef
=
useRef
(
null
)
useEffect
(()
=>
{
useEffect
(()
=>
{
const
mapConfig3d
=
props
.
globalConfig
?.
mapConfig3d
if
(
!
(
mapConfig3d
&&
mapConfig3d
?.
baseMap
?.
length
&&
mapConfig3d
.
web
))
return
if
(
storeRef
.
current
)
return
if
(
storeRef
.
current
)
return
if
(
!
(
props
.
globalConfig
.
mapsettings
?.
areasettings
&&
globalConfig
.
mapsettings
?.
basemaps
?.
length
>
0
))
return
const
mapConfig3d
=
props
.
globalConfig
?.
mapConfig3d
const
{
widgets
}
=
mapConfig3d
const
{
widgets
}
=
mapConfig3d
const
schemes
=
parseScheme
.
parseSchemes
(
mapConfig3d
)
const
schemes
=
parseScheme
.
parseSchemes
(
mapConfig3d
)
const
schemeData
=
parseScheme
.
parseDatas
(
schemes
)
const
schemeData
=
parseScheme
.
parseDatas
(
schemes
)
...
...
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