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
a99c32fd
authored
Feb 26, 2020
by
fengfan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map
parent
7a0bef49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
map/index.html
+10
-11
No files found.
map/index
111
.html
→
map/index.html
View file @
a99c32fd
...
...
@@ -21,7 +21,7 @@
<script
src=
"https://webapi.amap.com/maps?v=1.4.15&key=ee7327615de4d673c4e455a772da45fd&plugin=Map3D,AMap.DistrictSearch"
></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/
...
...
@@ -39,11 +39,10 @@
//ltype 2 路网 12 poi
var
Satellite
=
new
AMap
.
TileLayer
.
Satellite
({
rejectMapMask
:
true
,
zIndex
:
0
zIndex
:
1
})
var
RoadNet
=
new
AMap
.
TileLayer
.
RoadNet
({
rejectMapMask
:
true
,
mapStyle
:
'amap://styles/'
+
styleId
,
})
//利用行政区查询获取边界构建mask路径
//也可以直接通过经纬度构建mask路径
...
...
@@ -58,7 +57,7 @@
map
=
new
AMap
.
Map
(
'container'
,
{
// mask: mask,
center
:
[
116.472804
,
39.995725
],
mapStyle
:
'amap://styles/'
+
styleId
,
//
mapStyle: 'amap://styles/' + styleId,
disableSocket
:
true
,
viewMode
:
'3D'
,
showLabel
:
false
,
...
...
@@ -84,13 +83,13 @@
map
.
add
(
object3Dlayer
)
var
height
=
-
59800
;
var
color
=
'#ffffffcc'
;
//rgba
var
wall
=
new
AMap
.
Object3D
.
Wall
({
path
:
bounds
,
height
:
height
,
color
:
color
});
wall
.
transparent
=
true
object3Dlayer
.
add
(
wall
)
//
var wall = new AMap.Object3D.Wall({
//
path: bounds,
//
height: height,
//
color: color
//
});
//
wall.transparent = true
//
object3Dlayer.add(wall)
//添加描边
for
(
var
i
=
0
;
i
<
bounds
.
length
;
i
+=
1
)
{
new
AMap
.
Polyline
({
...
...
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