zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    (转)详谈高端内存和低端内存
    高级声明------定义一个函数指针数组指针
    A Bug's Life POJ
    How Many Answers Are Wrong HDU
    A
    B
    数据处理----离散化
    Serval and Parenthesis Sequence CodeForces
    D
    C
  • 原文地址:https://www.cnblogs.com/Nyan-Workflow-FC/p/13216541.html
Copyright © 2011-2022 走看看