- 20
- 0
- 约6.57千字
- 约 6页
- 2017-05-22 发布于湖北
- 举报
详解地图开发
地图开发
首先我们看怎么获取API
通过地址/api 加载API:
script src=/api?key=您的API 密钥v=版本services=true 或者false type=text
/javascript/script
其中参数key 为密钥,您可以在 HYPERLINK /map/apply-key.htm /map/apply-key.htm申请。参数v 为当前API 的版本号,目前最新版本为1.3,services 参数表示是否加载服务部分,true 表示加载,false 表示不加载。
第一个实例
现在我们看看第一个实例”Hello word”
!DOCTYPE html
html
head
meta http-equiv=Content-Type content=text/html; charset=gb2312 /
titleHello, World/title
script type=text/javascript src=/api?v=1.3/script
/head
body
div style=width:520px;height:340px;border:1px solid gray id=container/div
/body
/html
script type=text/java
原创力文档

文档评论(0)