zoukankan      html  css  js  c++  java
  • 高德地图修改背景色

    <!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            #container {
                 5000px;
                height: 5000px;
            }
        </style>
    </head>

    <body>
        <div id="container"></div> 
        <script src="https://webapi.amap.com/maps?v=1.4.15&key=自己申请的key值"></script>
        <script>
            var map = new AMap.Map('container', {
                zoom: 11,//级别
                resizeEnable:true, //是否监控地图容器尺寸变化
                center: [116.397428, 39.90923],//中心点坐标
                mapStyle:"amap://styles/blue",
                zoom:10
                // viewMode: '3D'//使用3D视图
            });
            SatelliteLayer = new AMap.TileLayer.Satellite({
                zIndex: 4
            })
            // map.layer([new AMap.TileLayer.Satellite()])
            map.set(SatelliteLayer)
            // map.setMapStyle(styleName);
        </script>
    </body>

    </html>
  • 相关阅读:
    Putty完全使用方法
    TCP端口扫描
    XSS学习笔记
    SQL漏洞学习笔记
    Codeforces Round #263 (Div. 1)
    hdu4987A simple probability problem.(凸包)
    Codeforces Round #262 (Div. 2)
    hdu3228Island Explorer
    hdu2297Run(凸包的巧妙应用)
    poj3301Texas Trip(三分)
  • 原文地址:https://www.cnblogs.com/lxz123/p/15239095.html
Copyright © 2011-2022 走看看