页面加载百度地图
来源:互联网 发布:新媒体沟通软件 编辑:程序博客网 时间:2024/05/01 03:21
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css"> html{ height: 100%;} body{ height: 100%; margin: 0px; padding: 0px; } #container { height: 100%; } </style> <script type="text/javascript"> function initialize() { var mp = new BMap.Map('map'); mp.centerAndZoom(new BMap.Point(114.31667, 30.51667), 13);//对应的坐标 //mp.addControl(new BMap.ScaleControl()); mp.enableScrollWheelZoom(); //var opts = { type: BMAP_NAVIGATION_CONTROL_SMALL } //mp.addControl(new BMap.NavigationControl(opts)); mp.addControl(new BMap.NavigationControl()); mp.addControl(new BMap.OverviewMapControl()); mp.addControl(new BMap.MapTypeControl()); } function loadScript() { var script = document.createElement("script"); script.src = "http://api.map.baidu.com/api?v=1.2&callback=initialize"; document.body.appendChild(script); } window.onload = loadScript; </script></head><body> <form id="form1" runat="server"> <div id="container"> </div> <div id="map" style=" width:100%; height:600px;"></div> </form></body></html>
1 0
- 页面加载百度地图
- 百度地图加载页面报错
- 百度地图API异步加载,提高页面效率
- 百度地图-异步加载地图
- 百度地图 异步加载
- 百度地图加载显示
- 百度离线地图加载
- Android加载百度地图
- openlayers加载百度地图
- jsp 百度地图加载
- 百度地图异步加载
- leaflet加载百度地图
- leaflet加载百度地图
- vue加载百度地图
- 页面插入百度地图
- 百度地图页面展示
- 页面使用百度地图
- 页面引用百度地图
- Django框架里的MVC思想MVC 设计模式
- 网页自适应浏览器方法收录
- Maven多模块项目介绍和搭建
- 文章折叠
- Git的安装、配置;使用它上传、下载
- 页面加载百度地图
- HDU 5795 A Simple Nim(SG打表找规律)——2016 Multi-University Training Contest 6
- 运行caffe自带的两个例子
- javascript touch事件
- 修改angular post提交json数据的格式_ $httpProvider配置
- oc语言类 便利初始化函数 便利构造器 属性
- hdu 4545 魔法串 (模拟)
- tmpl 模板化引擎加载数据 Jquery
- 饼图与柱状图的topN处理