|
为什么不定位到当前位置。
- var bMap = api.require('bMap');
- bMap.initMapSDK(function (ret) {
- if (ret.status) {
- bMap.open({
- rect: {
- x: 0,
- y: 0,
- w: api.frameWidth,
- h: api.frameHeight
- },
- center: {
- lon: 116.4021310000,
- lat: 39.9994480000
- },
- zoomLevel: 18,
- showUserLocation: true,
- // fixedOn: api.frameName,
- fixed: true
- }, function (ret) {
- if (ret.status) {
- // 打开头部
- //fnOpenframeTop();
- // 打开点击定位中心的frm
- //fnOpenframeBottom();
- // 自动定位到用户中心点
- //fnBmapShowUserLocation();
- }
- });
- }
- });
复制代码
|
本帖子中包含更多资源,您需要 登录 才可以下载或查看,没有帐号?立即注册
X
|