# 腾讯地图jssdk
- 地图坐标 <http://api.map.baidu.com/lbsapi/getpoint/index.html>
```
<pre class="calibre14">```
<span class="token"><</span>div id<span class="token">=</span><span class="token4">"map"</span> style<span class="token">=</span><span class="token4">" width:90%; margin:0 auto;height:500px;"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>div<span class="token">></span>
<span class="token"><</span>script src<span class="token">=</span><span class="token4">"//api.map.baidu.com/api?v=2.0&ak=M4eExM3AxIcxOdnFGciErtK3"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>script<span class="token">></span>
<span class="token"><</span>script<span class="token">></span>
var map <span class="token">=</span> <span class="token5">new</span> <span class="token1">BMap<span class="token2">.</span>Map</span><span class="token2">(</span><span class="token4">"map"</span><span class="token2">)</span><span class="token2">;</span>
var point <span class="token">=</span> <span class="token5">new</span> <span class="token1">BMap<span class="token2">.</span>Point</span><span class="token2">(</span><span class="token3">120.587034</span><span class="token2">,</span><span class="token3">31.293345</span><span class="token2">)</span><span class="token2">;</span>
map<span class="token2">.</span><span class="token1">centerAndZoom</span><span class="token2">(</span>point<span class="token2">,</span> <span class="token3">17</span><span class="token2">)</span><span class="token2">;</span>
var myIcon <span class="token">=</span> <span class="token5">new</span> <span class="token1">BMap<span class="token2">.</span>Icon</span><span class="token2">(</span><span class="token4">"https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png"</span><span class="token2">,</span> <span class="token5">new</span> <span class="token1">BMap<span class="token2">.</span>Size</span><span class="token2">(</span><span class="token3">200</span><span class="token2">,</span><span class="token3">110</span><span class="token2">)</span><span class="token2">)</span><span class="token2">;</span>
var marker <span class="token">=</span> <span class="token5">new</span> <span class="token1">BMap<span class="token2">.</span>Marker</span><span class="token2">(</span>point<span class="token2">,</span> <span class="token2">{</span> icon<span class="token2">:</span> myIcon <span class="token2">}</span><span class="token2">)</span><span class="token2">;</span> <span class="token6">// 创建标注</span>
map<span class="token2">.</span><span class="token1">addOverlay</span><span class="token2">(</span>marker<span class="token2">)</span><span class="token2">;</span> <span class="token6">// 将标注添加到地图中</span>
marker<span class="token2">.</span><span class="token1">setAnimation</span><span class="token2">(</span>BMAP_ANIMATION_BOUNCE<span class="token2">)</span><span class="token2">;</span> <span class="token6">//跳动的动画</span>
marker<span class="token2">.</span><span class="token1">setOffset</span><span class="token2">(</span><span class="token5">new</span> <span class="token1">BMap<span class="token2">.</span>Size</span><span class="token2">(</span><span class="token3">0</span><span class="token2">,</span> <span class="token">-</span><span class="token3">55</span><span class="token2">)</span><span class="token2">)</span><span class="token2">;</span>
var sContent <span class="token">=</span>
<span class="token4">"<h3 style='color: #0c5b90;font-size:18px; padding:10px 0;'>中国农业银行</h3>"</span> <span class="token">+</span>
<span class="token4">"<p style='margin-bottom: 0;'>地址:前进中路100号</p>"</span><span class="token2">;</span>
marker<span class="token2">.</span><span class="token1">addEventListener</span><span class="token2">(</span><span class="token4">"click"</span><span class="token2">,</span> <span class="token5">function</span> <span class="token2">(</span><span class="token2">)</span> <span class="token2">{</span>
map<span class="token2">.</span><span class="token1">openInfoWindow</span><span class="token2">(</span><span class="token5">new</span> <span class="token1">BMap<span class="token2">.</span>InfoWindow</span><span class="token2">(</span>sContent<span class="token2">)</span><span class="token2">,</span> point<span class="token2">)</span><span class="token2">;</span> <span class="token6">//开启信息窗口</span>
<span class="token2">}</span><span class="token2">)</span><span class="token2">;</span>
<span class="token"><</span><span class="token">/</span>script<span class="token">></span>
```
```
- 腾讯地图
```
<pre class="calibre14">```
<span class="token"><</span>script charset<span class="token">=</span><span class="token4">"utf-8"</span> src<span class="token">=</span><span class="token4">"//map.qq.com/api/js?v=2.exp"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>script<span class="token">></span>
<span class="token"><</span>script<span class="token">></span>
var init <span class="token">=</span> <span class="token5">function</span><span class="token2">(</span><span class="token2">)</span> <span class="token2">{</span>
var center <span class="token">=</span> <span class="token5">new</span> <span class="token1">qq<span class="token2">.</span>maps<span class="token2">.</span>LatLng</span><span class="token2">(</span><span class="token3">120</span><span class="token2">,</span><span class="token3">120</span><span class="token2">)</span><span class="token2">;</span>
var map <span class="token">=</span> <span class="token5">new</span> <span class="token1">qq<span class="token2">.</span>maps<span class="token2">.</span>Map</span><span class="token2">(</span>document<span class="token2">.</span><span class="token1">getElementById</span><span class="token2">(</span><span class="token4">'container'</span><span class="token2">)</span><span class="token2">,</span><span class="token2">{</span>
center<span class="token2">:</span> center<span class="token2">,</span>
zoom<span class="token2">:</span> <span class="token3">16</span>
<span class="token2">}</span><span class="token2">)</span><span class="token2">;</span>
var infoWin <span class="token">=</span> <span class="token5">new</span> <span class="token1">qq<span class="token2">.</span>maps<span class="token2">.</span>InfoWindow</span><span class="token2">(</span><span class="token2">{</span>
map<span class="token2">:</span> map
<span class="token2">}</span><span class="token2">)</span><span class="token2">;</span>
infoWin<span class="token2">.</span><span class="token1">open</span><span class="token2">(</span><span class="token2">)</span><span class="token2">;</span>
<span class="token6">//tips 自定义内容</span>
infoWin<span class="token2">.</span><span class="token1">setContent</span><span class="token2">(</span><span class="token4">'<div style="width:200px;padding-top:10px;">内容</div>'</span><span class="token2">)</span><span class="token2">;</span>
infoWin<span class="token2">.</span><span class="token1">setPosition</span><span class="token2">(</span>center<span class="token2">)</span><span class="token2">;</span>
<span class="token2">}</span>
<span class="token"><</span><span class="token">/</span>script<span class="token">></span>
```
```
高德地图
```
<pre class="calibre14">```
浏览器js b4fb01539aeff5eb439643ad3c8be6c5
服务器端 <span class="token3">6812110e232</span>abd4f53d345bed23a90d3
https<span class="token2">:</span><span class="token">/</span><span class="token">/</span>restapi<span class="token2">.</span>amap<span class="token2">.</span>com<span class="token">/</span>v3<span class="token">/</span>ip<span class="token">?</span>key<span class="token">=</span><span class="token3">6812110e232</span>abd4f53d345bed23a90d3<span class="token">&</span>ip<span class="token">=</span><span class="token3">114.218</span><span class="token3">.66</span><span class="token3">.167</span>
<span class="token2">{</span>
<span class="token4">"status"</span><span class="token2">:</span> <span class="token4">"1"</span><span class="token2">,</span>
<span class="token4">"info"</span><span class="token2">:</span> <span class="token4">"OK"</span><span class="token2">,</span>
<span class="token4">"infocode"</span><span class="token2">:</span> <span class="token4">"10000"</span><span class="token2">,</span>
<span class="token4">"province"</span><span class="token2">:</span> <span class="token4">"江苏省"</span><span class="token2">,</span>
<span class="token4">"city"</span><span class="token2">:</span> <span class="token4">"苏州市"</span><span class="token2">,</span>
<span class="token4">"adcode"</span><span class="token2">:</span> <span class="token4">"320500"</span><span class="token2">,</span>
<span class="token4">"rectangle"</span><span class="token2">:</span> <span class="token4">"120.4473102,31.15503121;120.8443308,31.49484731"</span>
<span class="token2">}</span>
```
```
百度地图
```
<pre class="calibre14">```
https<span class="token2">:</span><span class="token">/</span><span class="token">/</span>api<span class="token2">.</span>map<span class="token2">.</span>baidu<span class="token2">.</span>com<span class="token">/</span>location<span class="token">/</span>ip<span class="token">?</span>ip<span class="token">=</span><span class="token3">110.87</span><span class="token3">.83</span><span class="token3">.15</span><span class="token">&</span>ak<span class="token">=</span>M4eExM3AxIcxOdnFGciErtK3<span class="token">&</span>coor<span class="token">=</span>bd09ll
<span class="token2">{</span>
<span class="token4">"address"</span><span class="token2">:</span> <span class="token4">"CN|江苏|苏州|None|CHINANET|0|0"</span><span class="token2">,</span>
<span class="token4">"content"</span><span class="token2">:</span> <span class="token2">{</span>
<span class="token4">"address"</span><span class="token2">:</span> <span class="token4">"江苏省苏州市"</span><span class="token2">,</span>
<span class="token4">"address_detail"</span><span class="token2">:</span> <span class="token2">{</span>
<span class="token4">"city"</span><span class="token2">:</span> <span class="token4">"苏州市"</span><span class="token2">,</span>
<span class="token4">"city_code"</span><span class="token2">:</span> <span class="token3">224</span><span class="token2">,</span>
<span class="token4">"district"</span><span class="token2">:</span> <span class="token4">""</span><span class="token2">,</span>
<span class="token4">"province"</span><span class="token2">:</span> <span class="token4">"江苏省"</span><span class="token2">,</span>
<span class="token4">"street"</span><span class="token2">:</span> <span class="token4">""</span><span class="token2">,</span>
<span class="token4">"street_number"</span><span class="token2">:</span> <span class="token4">""</span>
<span class="token2">}</span><span class="token2">,</span>
<span class="token4">"point"</span><span class="token2">:</span> <span class="token2">{</span>
<span class="token4">"x"</span><span class="token2">:</span> <span class="token4">"120.61990712"</span><span class="token2">,</span>
<span class="token4">"y"</span><span class="token2">:</span> <span class="token4">"31.31798737"</span>
<span class="token2">}</span>
<span class="token2">}</span><span class="token2">,</span>
<span class="token4">"status"</span><span class="token2">:</span> <span class="token3">0</span>
<span class="token2">}</span>
```
```
腾讯地图
```
<pre class="calibre16">```
https<span class="token2">:</span><span class="token">/</span><span class="token">/</span>apis<span class="token2">.</span>map<span class="token2">.</span>qq<span class="token2">.</span>com<span class="token">/</span>ws<span class="token">/</span>location<span class="token">/</span>v1<span class="token">/</span>ip<span class="token">?</span>ip<span class="token">=</span><span class="token3">202.115</span><span class="token3">.81</span><span class="token3">.246</span><span class="token">&</span>key<span class="token">=</span>ACEBZ<span class="token">-</span>FDXWP<span class="token">-</span>WFRDV<span class="token">-</span>VGS5Q<span class="token">-</span>S2Q5K<span class="token">-</span>HQBNA
<span class="token2">{</span>
<span class="token4">"status"</span><span class="token2">:</span> <span class="token3">0</span><span class="token2">,</span>
<span class="token4">"message"</span><span class="token2">:</span> <span class="token4">"query ok"</span><span class="token2">,</span>
<span class="token4">"result"</span><span class="token2">:</span> <span class="token2">{</span>
<span class="token4">"ip"</span><span class="token2">:</span> <span class="token4">"114.218.66.167"</span><span class="token2">,</span>
<span class="token4">"location"</span><span class="token2">:</span> <span class="token2">{</span>
<span class="token4">"lat"</span><span class="token2">:</span> <span class="token3">31.38475</span><span class="token2">,</span>
<span class="token4">"lng"</span><span class="token2">:</span> <span class="token3">120.98181</span>
<span class="token2">}</span><span class="token2">,</span>
<span class="token4">"ad_info"</span><span class="token2">:</span> <span class="token2">{</span>
<span class="token4">"nation"</span><span class="token2">:</span> <span class="token4">"中国"</span><span class="token2">,</span>
<span class="token4">"province"</span><span class="token2">:</span> <span class="token4">"江苏省"</span><span class="token2">,</span>
<span class="token4">"city"</span><span class="token2">:</span> <span class="token4">"苏州市"</span><span class="token2">,</span>
<span class="token4">"district"</span><span class="token2">:</span> <span class="token4">"昆山市"</span><span class="token2">,</span>
<span class="token4">"adcode"</span><span class="token2">:</span> <span class="token3">320583</span>
<span class="token2">}</span>
<span class="token2">}</span>
<span class="token2">}</span>
```
```
- 简介
- 第一章 数据库
- Mysql/mariadb
- 函数
- 基础
- 增删改索引
- 标准查询
- 高级查询
- TIDB集群mysql解决方案
- Redis
- 语言基础
- 5种数据类型
- 其他类型
- Sqlite
- 语言基础
- 常用查询
- 第二章 PHP
- 语言基础
- 第一课 流程控制和运算
- 第二课 数组
- 第三课 日期时间
- 第四课 常用函数
- 第五课 字符串
- 第六课 文件操作
- 第七课 面向对象
- 第八课 正则表达式
- 第九课 图片处理生成
- 第十课 curl/memche
- 第十一课 mysql和pdo
- 第十三课 cookie和session
- 第十四课 xml操作
- 第十五课 php5.3+新特性
- 第十六课 php7+
- 第十七课 密码安全
- 废弃函数
- php命令行
- redis应用
- 算法
- 排序算法
- 基础算法
- 无限级分类
- 自定义函数Fn
- 查找算法
- 自定义函数数据函数fn
- laravel
- 路由
- 常用语句
- 数据库
- dingo/api
- Yii2
- 控制器
- 常用类
- 数据库
- redis
- thinkphp6
- TP6文档
- TP6插件
- dedecms
- 织梦标签大全
- 数据库操作
- 内置函数和定义函数
- 织梦核心改动
- 织梦插件/底层标签开发
- PHP相关工具
- composer
- php开发环境phpenv
- Phpstorm使用
- windows编译php扩展
- PHP开源库
- 开源项目管理禅道
- sns_auth
- php-casbin权限控制
- php-jwt
- 微信SDKeasywechat
- querylist采集库
- workerman
- Box/Spout处理excel和csv
- dll扩展
- redis/memche/xdebug
- redis
- Lua
- php_xlswriter
- event
- swoole
- 常用代码库
- 微擎框架
- 第一课全局变量
- 第二课常用函数
- 第三课自定义微擎独有函数
- 第四课数据库操作
- 第五课微信端回复
- 第六课微擎高级操作
- 第八课global函数列表
- mainfest.xml详解
- js方法
- 人人商城
- 第一课model解读
- 第二课常用语句解读
- 第三课常用js解读
- 第四课附录常见问题
- 第五课附录处理报表|支付
- 常用JSON状态码
- 第三章 JavaScript
- js基础
- 浏览器对象
- 语言基础
- html5接口
- ES6新语法
- vue
- 基础语法
- 京东vueUI组件
- uniapp
- 组件开发规范
- nodejs
- 基础知识
- 安装node
- nvm不同版本node切换
- js常用标准库
- zepto/jquery
- weui
- js图标库
- elementUI
- validator表单验证
- layer弹出层
- requirejs
- wow动画
- 动画animate
- swiper4
- 百度编辑器
- flyio/axios/qs
- jquery.form
- bootstrap3
- clipboard复制
- slideout侧滑
- imagehover.css图片悬停动画
- webpack打包
- Bulma UI框架
- store 客户端存储
- lottie动画创建库
- sweetalert
- js自定义函数
- 常见JSSDK
- 微信公众号JSSDK
- 腾讯地图jssdk
- 微信小程序
- 第四章 编程语言
- markdown语言
- Dart语言
- Dart语言基础
- Flutter框架
- Lua语言
- 字符串,数组,表
- 自定义方法
- go语言
- 第1.1语言基本语法
- 第1.2流程控制
- 第1.3函数
- 第1.4结构体
- 第1.5接口
- 第1.6包
- go语言框架Gin
- CSS3语言
- CSS与CSS3
- 选择符
- 属性
- css3
- loading动画
- HTML5语言
- less
- sass
- C#
- 基础知识
- 函数
- 第五章 开发工具
- git
- nginx/apache服务器
- Linux常用操作
- crontab定时任务
- 注册表与cmd
- 阿里云ECS
- frp穿透和ssl续期
- 宝塔安装
- 树莓派
- 浏览器模拟
- 火狐/chrome常用插件
- WSL安装使用
- mac brew和终端命令
- win10相关