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
73f9107f
authored
Feb 26, 2020
by
hanjixin
Browse files
Options
Browse Files
Download
Plain Diff
合并文件
parents
2ba0dccc
71f18484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
map/index.html
+4
-5
No files found.
map/index
111
.html
→
map/index.html
View file @
73f9107f
...
...
@@ -12,7 +12,7 @@
html
,
#container
{
margin
:
0
;
width
:
9
0%
;
width
:
10
0%
;
height
:
100%
;
}
</style>
...
...
@@ -23,7 +23,7 @@
<script
src=
"https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"
></script>
<script
src=
"https://webapi.amap.com/maps?v=1.4.15&key=ee7327615de4d673c4e455a772da45fd&plugin=Map3D,AMap.DistrictSearch,ElasticMarker"
></script>
<script
src=
"https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"
></script>
<
script
src=
"https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"
></script
>
<
!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"></script> --
>
<script
language=
"javascript"
>
// open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/ff/git/
...
...
@@ -159,8 +159,7 @@
//首先放置背景区域,这里是大陆的边界
path
.
push
(
getLongestRing
(
cityNode
.
getParentFeature
()));
// debugger;
path
.
push
.
apply
(
path
,
[
boundsPath
]);
path
.
push
.
apply
(
path
,
boundsPath
);
var
polygon
=
new
AMap
.
Polygon
({
bubble
:
true
,
lineJoin
:
'round'
,
...
...
@@ -221,7 +220,7 @@
fillColor
:
'black'
,
//填充色
fillOpacity
:
0
,
//填充透明度
map
:
map
,
path
:
[
bounds2Path
(
result
.
districtList
[
0
].
boundaries
)]
path
:
bounds2Path
(
result
.
districtList
[
0
].
boundaries
)
});
});
}
...
...
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