如何在Bing地图中描绘ajax 6.3 [英] How to traduice in Bing maps ajax 6.3

查看:95
本文介绍了如何在Bing地图中描绘ajax 6.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个代码与bin地图ajax 7.0,我没有凭证密钥,我将在bing地图ajax 6.3中进行交易,如果有人有想法帮助我

I have this code with bin maps ajax 7.0 and i haven't credential key for this i will traduice in bing maps ajax 6.3 , if someone have an idea help me

        this.setBounds = function () {
var bounds =  Microsoft.Maps.LocationRect.fromLocations(map.getLocations());
var zoomPrev = this.map.getZoom();
var cnt = 0;

for (key in this.points) {
        if(this.points[key] != null)
        {
    cnt++;
    bounds.extend(this.points[key]);
        }
}
this.map.fitBounds(bounds);
if (cnt < 2) this.map.setZoom(zoomPrev);

    }

推荐答案

这篇关于如何在Bing地图中描绘ajax 6.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆