Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
JavaScript
        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);

    }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900