html: 百度地图初始化

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百度地图预研</title>
    <link rel="stylesheet" type="text/css" href="//static.fczx.com/www/css/_common.css">
    <link rel="stylesheet" type="text/css" href="//static.fczx.com/www/css/_module.css">
    <script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=kM1RFA6AzOnv6lmlc7qyOMhqBILu1pgk"></script>
</head>

<style>
    .surround-content {
        height: 500px;
    }
</style>

<body>
    <div class="box-content mt30">
        <div class="box-surround table-detail">
            <div class="table-detail-header">
                <a href="" class="title">baidu map</a>
            </div>
            <div class="surround-content" id="map-container"></div>
        </div>
    </div>
    <script type="text/javascript">
        var map = new BMap.Map("map-container");
        var point = new BMap.Point(112.137256,32.056701);
        map.centerAndZoom(point, 15);
        map.enableScrollWheelZoom(true);
        map.addControl(new BMap.NavigationControl());
    </script>
</body>

</html>

 

html: 百度地图初始化

上一篇:https://www.yiibai.com/os/os-various-time-related-to-the-process.html#


下一篇:时间 |