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 7774343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:21:15+00:00 2026-06-01T17:21:15+00:00

I am trying to implement Bing Maps by passing a street address in the

  • 0

I am trying to implement Bing Maps by passing a street address in the Find() function. The zoom parameter is not working in the LoadMap() function. Here is my code:

var map;

function GetMap() {
    var street = "Street address";
    var city = "City";
    var state = "State";
    var address = "";
    var zoom = 10;
    if (street != "") {
        address += street;
        zoom = 19;
    }
    if (city != "") {
        if (address != "")
            address += ", ";
        address += city;
    }
    if (state != "") {
        if (address != "")
            address += ", ";
        address += state;
    }

    map = new VEMap('bingMap');
    map.LoadMap(null, zoom, VEMapStyle.Hybrid, false, VEMapMode.Mode2D, true, 1);
    map.Find(null, address, null, null, null, null, null, null, null, null, FindCallback);
}

function FindCallback(layer, resultsArray) {
    var pin = new VEShape(VEShapeType.Pushpin, map.GetCenter());
    pin.SetCustomIcon("<img src='image url' width='30' />");
    map.AddShape(pin);
}

Any ideas why this won’t zoom to 19?

  • 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-06-01T17:21:16+00:00Added an answer on June 1, 2026 at 5:21 pm

    Instead of
    map.LoadMap(null,

    try

    map.LoadMap(map.GetCenter() or map.LoadMap(new VELatLong(45,90)

    or use the

    map.SetCenterAndZoom((new VELatLong(lat, lng), zoom);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement bing search in my site. I need search result
I'm currently working on a Google Maps project and am implementing a search function.
I'm trying to find a really good example for implementing the MetaWeblog API using
I am trying to find out the difficulty of implementing a queue system. I
I'm implementing a Knuth shuffle for a C++ project I'm working on. I'm trying
Ive been trying to solve some issues for implementing google maps with the api
Hey guys I am trying to build a database that maps NSStrings to int.
I am trying to implement range reduction as the first step of implementing the
I am trying to use the Bing SOAP API for a simple search request.
I'm currently implementing Scheme R5RS in C, and I am stuck trying to implement

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.