Commit a99c32fd by fengfan

map

parent 7a0bef49
......@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment