Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cd Comprehensive Web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cityLevel
Cd Comprehensive Web
Commits
28bc3f27
Commit
28bc3f27
authored
1 month ago
by
汤绍坚
Browse files
Options
Downloads
Patches
Plain Diff
tsj: CooglMap js修改search获取点位失败的问题:增加token;CooglMap地图首页才显示cqi;要显示地图底图
parent
3b5a5d7d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/Home_v_2504/components/MapContainer/DistrictMapCustomized/index.tsx
+4
-4
4 additions, 4 deletions
...4/components/MapContainer/DistrictMapCustomized/index.tsx
with
4 additions
and
4 deletions
src/pages/Home_v_2504/components/MapContainer/DistrictMapCustomized/index.tsx
+
4
−
4
View file @
28bc3f27
...
...
@@ -30,7 +30,6 @@ import { useDashboard } from '../../context';
// import { CooglLoadArea } from './loadAreaNew';
// import { CooglLoadArea } from './loadArea-1.3.1';
import
{
CooglLoadArea
}
from
'
./loadArea-1.4.0
'
;
import
AreaSelector
from
'
../AreaSelector
'
;
export
const
colorConfig
:
Record
<
string
,
...
...
@@ -414,7 +413,8 @@ const DistrictMapCustomized: React.FC<DistrictMapCustomizedProps> = ({ onMapInst
try
{
// 初始化CooglLoadArea
console
.
log
(
'
[CooglMapDemo] 开始初始化CooglLoadArea
'
,
MapRef
.
current
);
let
instance
=
new
CooglLoadArea
(
viewer
);
let
token
=
'
24e46ea5-73df-4c84-93b1-7513a2507f8f
'
;
let
instance
=
new
CooglLoadArea
(
viewer
,
token
);
// 设置实例参数
instance
.
params
=
{
...
...
@@ -460,7 +460,7 @@ const DistrictMapCustomized: React.FC<DistrictMapCustomizedProps> = ({ onMapInst
zoom
=
{
8
}
ref
=
{
MapRef
}
center
=
{
{
x
:
103.96
,
y
:
30.658842
}
}
showOriginMap
=
{
false
}
//
showOriginMap={false}
customInitCallback
=
{
(
viewer
:
any
)
=>
initLoadCooglMapArea
(
viewer
)
}
changeSize
=
{
{
x1
:
908
,
y1
:
430
,
x2
:
908
,
y2
:
572
}
}
>
...
...
@@ -468,7 +468,7 @@ const DistrictMapCustomized: React.FC<DistrictMapCustomizedProps> = ({ onMapInst
<>
{
/**区域 */
}
{
/* {memoizedPolygons} */
}
{
data
?.
map
((
item
,
index
)
=>
{
{
isHomePage
&&
data
?.
map
((
item
,
index
)
=>
{
const
point
=
[
Number
(
item
.
centerX
),
Number
(
item
.
centerY
)];
return
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment