Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6070883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:59:02+00:00 2026-05-23T09:59:02+00:00

How to scale map to show all pushpins in the map at one time?

  • 0

How to scale map to show all pushpins in the map at one time?
I use “Bing Maps AJAX Control, Version 7.0”.
Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:59:02+00:00Added an answer on May 23, 2026 at 9:59 am

    There is a method called LocationRect that can be used for this. Here is an example from MSDN :

    function init(){
    // Load the map
    var map = new Microsoft.Maps.Map(
        document.getElementById("myMap"),
        {
            credentials: "YOUR-BING-KEY",
            mapTypeId: Microsoft.Maps.MapTypeId.road
        }
    );
    
    // Some sample pins
    var locs = [];
    var loc1 = new Microsoft.Maps.Location(-10, 0);
    var pin1 = new Microsoft.Maps.Pushpin(loc1 , {text: '1'});
    
    var loc2 = new Microsoft.Maps.Location(0, 10);
    var pin2 = new Microsoft.Maps.Pushpin(loc2, {text: '2'});
    
    var loc3 = new Microsoft.Maps.Location(10, 0);
    var pin3 = new Microsoft.Maps.Pushpin(loc3, {text: '3'});
    
    var loc4 = new Microsoft.Maps.Location(20, -20);
    var pin4 = new Microsoft.Maps.Pushpin(loc4, {text: '4'});
    
    locs.push(loc1);
    locs.push(loc2);
    locs.push(loc3);
    locs.push(loc4);
    
    map.entities.push(pin1);
    map.entities.push(pin2);
    map.entities.push(pin3);
    map.entities.push(pin4);
    var bestview = Microsoft.Maps.LocationRect.fromLocations(locs);
    map.setView({bounds:bestview });
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The web version of Google maps allows the developer to show a map legend
I created a map using Google Maps API that highlights all Minnesota counties. Basically,
In Twitter's Scala school collections section , they show a Map with a partial
I was able to make my silverlight Bing map accepts Mousclicks and converts them
I need to calculate the scale given a bounding box in map coordinates (EPSG:900913)
I have the fallowing FluentNHibernate-Mapping: this.Map(x => x.Discount).Precision(8).Scale(2).Not.Nullable(); And this is the Property in
I have an application that uses OpenLayers library. I create a scale line: map.addControl(new
My Google maps are configured to display blue location markers. My maps use the
I'm struggling with adding a map scale that displays current length on screen depending
I need to show an image which is actually a map with coloured areas,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.