Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
MeteorologicalBureau
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
591804e9
authored
Feb 26, 2020
by
fengfan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map
parent
6d7360c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
map/index-ff.html
+3
-3
map/index.html
+23
-21
No files found.
map/index-ff.html
View file @
591804e9
...
...
@@ -159,9 +159,9 @@
map
:
map
});
}
AMapUI
.
loadUI
([
'geo/DistrictExplorer'
],
function
(
DistrictExplorer
)
{
initMask
(
DistrictExplorer
);
});
//
AMapUI.loadUI(['geo/DistrictExplorer'], function (DistrictExplorer) {
//
initMask(DistrictExplorer);
//
});
// 获取人员信息
$
.
getJSON
(
'./personal.json'
).
then
(
res
=>
{
console
.
log
(
JSON
.
parse
(
res
));
...
...
map/index.html
View file @
591804e9
...
...
@@ -109,7 +109,7 @@
mask
.
push
([
bounds
[
i
]])
}
map
=
new
AMap
.
Map
(
'container'
,
{
mask
:
mask
,
//
mask: mask,
center
:
[
result
.
districtList
[
0
].
center
.
lng
,
result
.
districtList
[
0
].
center
.
lat
...
...
@@ -124,10 +124,10 @@
// layers: [RoadNet,Satellite ]//Satellite,
// layers: [road, ]//Satellite,
});
map
.
add
(
Satellite
);
map
.
add
(
CanvasLayer
);
map
.
add
(
SatelliteDown
);
map
.
getLayers
()[
0
].
setzIndex
(
1000
)
map
.
add
(
Satellite
);
//高亮mask 卫星图
map
.
add
(
CanvasLayer
);
// 半黑遮罩层
map
.
add
(
SatelliteDown
);
//底图 卫星图
map
.
getLayers
()[
0
].
setzIndex
(
1000
)
;
//个性地图置顶
findsubarea
(
result
);
// map.getLayers()[0].setOpacity(0.5)
// var maskerIn = new AMap.Marker({
...
...
@@ -159,9 +159,9 @@
map
:
map
});
}
AMapUI
.
loadUI
([
'geo/DistrictExplorer'
],
function
(
DistrictExplorer
)
{
initMask
(
DistrictExplorer
);
});
//
AMapUI.loadUI(['geo/DistrictExplorer'], function (DistrictExplorer) {
//
initMask(DistrictExplorer);
//
});
// 获取人员信息
$
.
getJSON
(
'./personal.json'
).
then
(
res
=>
{
console
.
log
(
JSON
.
parse
(
res
));
...
...
@@ -278,21 +278,23 @@
// }
// }
// ],
zooms
:
[
14
,
20
],
center
:
new
AMap
.
LngLat
(
Number
(
item
.
lon
),
Number
(
item
.
lat
)),
// zooms: [1
, 20],
//
center: new AMap.LngLat(Number(item.lon), Number(item.lat)),
position
:
new
AMap
.
LngLat
(
Number
(
item
.
lon
),
Number
(
item
.
lat
)),
zIndex
:
1000
,
zoomStyleMapping
:
{
14
:
0
,
15
:
0
,
16
:
0
,
17
:
0
,
18
:
0
,
19
:
0
,
20
:
0
}
//
zIndex: 1000,
//
zoomStyleMapping: {
//
14: 0,
//
15: 0,
//
16: 0,
//
17: 0,
//
18: 0,
//
19: 0,
//
20: 0
//
}
});
map
.
add
(
marker
);
console
.
log
(
marker
);
// map.add(marker);
}
console
.
log
(
AMap
.
ElasticMarker
);
</script>
...
...
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