码迷,mamicode.com
首页 > 其他好文 > 详细

arcgis访问百度地图

时间:2019-07-12 11:23:26      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:fun   ext   baidu   ati   tle   cti   func   pre   arc   

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>访问百度地图</title>
    <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/esri/css/esri.css">
    <style>
        html, body, #map {
            padding:0;
            margin:0;
            height:100%;
            width:100%;
        }
    </style>
    <script type="text/javascript">
        var dojoConfig = {
            async: true,
            packages: [{
                "name": "bism",
                "location": location.pathname.replace(/\/[^/]+$/, "") + "/js/bism"
            }]
        };
    </script>
    <script src="http://js.arcgis.com/3.9/"></script>
    <script type="text/javascript">
        var map;

        require([
            "esri/map",
            "bism/BaiduLayer",
            "dojo/domReady!"
        ], function (
            Map, BaiduLayer
        ) {
            var layer = new BaiduLayer();
            map = new Map("map");
            map.addLayer(layer);
        });
    </script>
</head>
<body class="tundra">
    <div id="map">
    </div>
</body>
</html>

 

arcgis访问百度地图

标签:fun   ext   baidu   ati   tle   cti   func   pre   arc   

原文地址:https://www.cnblogs.com/Jeely/p/11174839.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!