Problem in resizing bing map.

I have given 100% width to the div in which I am loading bing map. But map convert it into pixel and I am unable to shrink the map when get resize.

The map doesn't convert the width to pixels. It only returns pixels if you ask for it's width. Here is an example of a full screen map that resizes as you resize the browser:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&mkt=de-de"></script>
<script type="text/javascript">
var map;
function GetMap()
map = new Microsoft.Maps.Map(document.getElementById("myMap"), {
credentials: "YOUR_BING_MAPS_KEY"
</script>
<style>
html, body {
width:100%;
height:100%;
margin:0;
padding:0;
</style>
</head>
<body onload="GetMap();">
<div id='myMap' style=";width:100%;height:100%;"></div>
</body>
</html>
http://rbrundritt.wordpress.com

Similar Messages

  • FireFox 3.6.13. BING Maps are being blocked. New Problem

    I am using Windows XP Pro. FireFox 3.6.13.
    I am having a new problem using Bing Maps.
    When I first go to the Bing Maps page, I can see the map of the U.S. as usual. When I enter the name of a single specific location (e.g. a city name or a street address), the map images will Not display. The screen is blank where I should see a map; however, the information about the location appears on the left side of my screen just the same. I noticed that the image may appear for no more than one second and then disappear. Reloading the page gives me the same result.
    However, this problem does Not occur if I start from the map image of the U.S. and just zoom in on an area. The map appears normally even when I continue to zoom.
    Likewise, the problem does Not occur if I use Get Directions and enter a starting point and destination. The map images appear normal.
    It is only a a problem when I do a search for a single specific location (e.g. city or street address).
    This problem just started about two weeks ago and occurs only when using FireFox. It does Not happen when I use Internet Explorer.
    Thank you.

    See if anything here helps you. <br />
    https://support.mozilla.com/en-US/kb/Images+or+animations+do+not+show

  • Problem with obj\x86\Debug\Bing.Maps\Themes\Generic.xbf

    Hi, I updated an app I had from windows 8 to windows 8.1, I updated the bing map sdk to 8.1 so I could use the latest dll's, but since then, randomly sometimes appears the next message:
    It disappears when you clean the solution and you reload it again, but anytime soon, it appears again. It doesn't seem to follow any pattern, I tried to uninstall and install it again, but nothing seems to solve the problem. It's very annoying because sometimes
    it appears every 5 minutes, and I waste lot of time cleaning and rebuilding the solution... any clues ? Thanks!
    Fernando Urkijo Cereceda

    To solve this problem do this steps
    1-in your project search for files name "Generic.xbf"
    2- copy one of these files that will appear in search result to this  this path
    obj\x86\Debug\Bing.Maps\Themes\
    in your project then build your app  again
    see this video explain more
    https://www.youtube.com/watch?v=Go704egNJqs

  • Firefox (12.0, Ubuntu) freezes on Bing maps

    Hello,
    When I try and use Bing maps (maps.bing.co.uk, I live in UK), firefox gets very slow and freezes after about 3 zoom or move operations. I've tried disabling hardware acceleration - with accel on, the whole X server freezes, without it just firefox.
    I've also tried turning network.prefetch-next off, to no avail.
    Safe mode does not help either.
    I know there's a bug report at https://bugzilla.mozilla.org/show_bug.cgi?id=717521 but it's marked as fixed.
    I recently installed chromium and it can handle Bing maps on my system with no problems.
    System:
    IBM thinkpad Z60m / Ubuntu 10.04 (lucid) / 2GhZ processor, 1GB RAM / Kernel 2.6.32-41-generic, Gnome 2.30.2 / Firefox 12.0 (Ubuntu)

    hello, i'm not sure if i'm reading the bugzilla entry correctly but the target milestone is set to mozilla13 (=firefox 13), so maybe it will just finally be fixed with the next update?!

  • How to integrate bing map for including or displaying multiple locations at the same time

    how to integrate bing map for including or displaying multiple locations at the same time

    Have you aware of the geolocation field that's been introduced with SharePoint 2013?  You can store location data within a list and then integrate this within Bing.  The second tutorial on this Bing team blog will show it well.
    https://www.bing.com/blogs/site_blogs/b/maps/archive/2013/03/26/connecting-a-sharepoint-list-to-bing-maps.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Bing maps useless outside US?

    I live in Poland, but Bing maps cannot find ANY streets! Street names can be seen on the maps, but search simply doesn't work. "No results found" for ANY address. Google maps had no problems with this. I also travel to Sweden frequently. Here search fails as soon as you use any accented characters. And it doesn't find alternative spellings. For instance, searching for an address like "Ö-street" using "O-street" would have worked in Google maps, but Bing map fails.
    This makes Bing maps absolutely useless outside the US!!! Pretty poor!!!!!
    Is HP not expecting US users to travel outside their country then? And does HP not care about users in non-English countries? I guess so.
    Post relates to: Pre 2 p102una (Unlocked NA)

    I can confirm that - Bing maps are useless in Poland. I don`t know why but it`s not possible to search using street names (on desktop & pre2 version).
    @LazPL: did you try contacting with MS support? Maybe they know something?

  • Bing Maps on IE 11 browser, The mouse click event is only working when we have compatibility mode on.

    I have tried out the code in this article in ASP.Net web forms with c#  and javascript.
    I am using Ajax to call the C# from Javascript and load the data from database.
    I have used following article to show the pushpins and there infoboxes.
    http://blogs.msdn.com/b/rbrundritt/archive/2013/11/08/multiple-pushpins-and-infoboxes-in-bing-maps-v7.aspx?CommentPosted=true#commentmessage
    My code works great on IE 11 , when I have compatibility mode on,
    but when compatibility mode is off, the mouse click event is not being received by the Javascript function.
    Is this expected behavior of bing maps, Are there any workarounds for this problem?
    Thanks
    Nate

    Hi Ricky, I have tried using Chrome and I see the same issue. The mouse events are not being captured. 
    Here is my code
    <%@ Page Title="" Language="C#" MasterPageFile="~/Maps.Master" AutoEventWireup="true" CodeBehind="BingMaps.aspx.cs" Inherits="MyMaps.secure.BingMaps" %>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderBody" runat="server" >
    <asp:ScriptManager ID="ScriptManager" runat="server"
    EnablePageMethods="true" />
    <div id="MapHolder" style="; width:1000px; height:800px; " />
    <asp:Literal ID="Literal1" runat="server">
    </asp:Literal>
    </asp:Content>
    <asp:Content ID="Content3" ContentPlaceHolderID="ScriptSection" runat="server">
    <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0">
    </script>
    <script type="text/javascript" >
    var map = null, infobox, dataLayer;
    $(document).ready(function () {
    GetMap();
    function GetMap() {
    // Initialize the map
    map = new Microsoft.Maps.Map(document.getElementById("MapHolder"),
    { credentials: "lincensekey", zoom: 2 });
    dataLayer = new Microsoft.Maps.EntityCollection();
    map.entities.push(dataLayer);
    var infoboxLayer = new Microsoft.Maps.EntityCollection();
    map.entities.push(infoboxLayer);
    infobox = new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0, 0), { visible: false, offset: new Microsoft.Maps.Point(0, 20) });
    infoboxLayer.push(infobox);
    PageMethods.GetLocations(RequestCompletedCallback, RequestFailedCallback);
    function AddData(MapPoints) {
    for (var i = 0, len = MapPoints.length; i < len; ++i)
    var pushpin = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(parseFloat(MapPoints[i].lat),parseFloat(MapPoints[i].lon))
    icon: MapPoints[i].group,
    height: 50, width: 60, text: MapPoints[i].city
    pushpin.Title = MapPoints[i].name;
    pushpin.description = MapPoints[i].desc;
    Microsoft.Maps.Events.addHandler(pushpin, 'click', displayInfobox);
    dataLayer.push(pushpin);
    function displayInfobox(e) {
    if (e.targetType == 'pushpin') {
    infobox.setLocation(e.target.getLocation());
    infobox.setOptions({ visible: true, title: e.target.Title, description: e.target.description });
    function RequestCompletedCallback(result) {
    result = eval(result);
    AddData(result);
    function RequestFailedCallback(error) {
    var stackTrace = error.get_stackTrace();
    var message = error.get_message();
    var statusCode = error.get_statusCode();
    var exceptionType = error.get_exceptionType();
    var timedout = error.get_timedOut();
    alert("Stack Trace: " + stackTrace + "<br/>" +
    "Service Error: " + message + "<br/>" +
    "Status Code: " + statusCode + "<br/>" +
    "Exception Type: " + exceptionType + "<br/>" +
    "Timedout: " + timedout);

  • Bing maps not working

    Bing maps has stopped working completely. I,ve used this extensively in the past. Just stopped August 2, 2010. I Have mac 10.6.4 & Firefox 3.6.8. I don't see any comments or posts on this problem at Bing community forums.
    == URL of affected sites ==
    http://www.bing.com/maps/

    Morbus - Bing maps now works fine with a new 'test' profile. Next step?

  • Street numbers in WPF Bing map control

    Hello.
    I have a problem with map control. I can`t find information about how to display street (building) numbers like in Bing maps on the off site (
    http://bing.com/maps)
    Can you help me?

    The Bing Maps consumer site (bing.com/maps) has a number of features which are not available in the development API yet. A lot of newer features get testd on the consumer site before being rolled out to the API. If you monitor the traffic from the consumer
    site you will notice that it is calling a completely different tile set than the API's. At the moment street numbers are not in the API, but they may be in a future release.
    http://rbrundritt.wordpress.com

  • Excel Web App and Bing Map - Error.

    Hello All,
    I have added Bing Map to Excel 2013. It is working as per my expectations. Then I saved the same document in my SkyDrive.
    When I try to open it, the Excel table gets displayed but Bing Map throws an error saying -
    "App Error - We Couldn't connect to the Catalog Server for this app". I retried this many times. It also shows on popup box saying only secured contents can be displayed. I clicked on Show all contents. But no luck.
    Can anyone help me in this error.
    Thank you in advance.

    Did you ever figure out the problem to your problem here?

  • How to add a bing map with pins to a Siena Project

    Hi
    I just want to add a bing map with the current location and a few nice pins of some nice locations around me. Comming out of a Excel file. Potentially also draw some routing lines into the bing maps.
    Any ideas how I can accomplish that goal?
    Thank you in advance
    wbr.
    Joerg 

    yes you can (there is actaully one on the map, blue square)
    The syntax is listed on
    http://msdn.microsoft.com/en-us/library/ff701724.aspx
    You will however have to build the correct string to included in the image source (which you can do in the source excel or in runtime in siena)
    Concatenate is suitable to do that.
    http://dev.virtualearth.net/REST/v1/Imagery/Map/Road?pp=47.638197,-122.131378;;1&ms=350,500&key=KEYHERE
    the PP indicates the pin actually and the bing map autocenters on that. You have several options listed on the webpage listed above. It's a question of the one fitting you best.
    Please note that your bing key is yours so you need to hide it well enough.
    Regards
    StonyArc

  • Problem while activating message mapping

    Hi all,
       I am facing a problem while activating message mapping in IR.It says Object being edited by XXXX and cannot be activated.It's giving my user name itself and even it doesn't allow to go to edit mode even.But I am not opening  it twice.How to monitor all the XI users logged into the XI system and find the users using IR and ID objects.Please help in this regard.
    Thanks.

    Hi Jaya
    It is .....
    http://<host:port>/rep/support/public/LockAdminService
    Hope this helps !!!
    Regards,
    J Augastine

  • Problem in JDBC Adapter Mapping

    Hi all,
    I am working on a scenario wherein i am trying to connect an ORACLE DB to SAP 4.7 system using XI 3.0 . I configured the JDBC Adapter and the JDBC adpter is picking up the message but i have a problem in JDBC adpter Mapping.
    The error message is like this:
    <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_ORACLE_MSGMAP_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_ORACLE_MSGMAP_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    How to map the "Resultset" from the Adapter to a target message? Can anybody throw some light on how to get the message from the JDBC adpter and map it to some other message format...Any documents regarding this ?
    Waitin for ur replies...
    Bye,
    Romit Shankar Arun.

    Hi,
    Does your other SDN post "Inserting data through JDBC adapter" refer to the same problem?
    I assume you use XMLSPY for creating XSDs.
    I used the XSD posted by you in the other forum thread and tried to generate the XML structure and it does not seem to generate the XML structure in the format required by the JDBC adapter.
    sample file generated from your XSD posted in the other forum thread:
    <?xml version="1.0" encoding="UTF-8"?>
    <resultset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Untitled1.xsd">
         <row action="INSERT">
              <CUSTOMER_NUMBER>String</CUSTOMER_NUMBER>
              <COUNTRY_KEY>String</COUNTRY_KEY>
              <FIRST_NAME>String</FIRST_NAME>
              <LAST_NAME>String</LAST_NAME>
              <AUTHORIZATION_GROUP>String</AUTHORIZATION_GROUP>
              <INDUSTRY_KEY>String</INDUSTRY_KEY>
              <ACCOUNT_GROUP>String</ACCOUNT_GROUP>
              <INTIAL_CONTACT>String</INTIAL_CONTACT>
              <COMPANY_CODE>String</COMPANY_CODE>
              <CITY>String</CITY>
              <CITY_CODE>String</CITY_CODE>
              <COUNTRY_CODE>String</COUNTRY_CODE>
              <DISTRICT>String</DISTRICT>
              <FAX_NUMBER>String</FAX_NUMBER>
              <HOUSE_NUMBER>String</HOUSE_NUMBER>
              <POSTAL_CODE>String</POSTAL_CODE>
              <REGION>String</REGION>
              <TELEPHONE_NUMBER>String</TELEPHONE_NUMBER>
         </row>
    </resultset>
    Compare the above to the template i have mentioned.
    Hope this helps.
    Regards,
    Sridhar

  • I have a program that uses Bing Maps, but the map only loads after the second search.

    On my website, I have an Agency Locator that uses Bing Maps to locate and display agencies near a zip code. In Chrome and IE, the map loads fine. If I clear the cache in FireFox, the map doesn't show up on the first search. The second search displays fine. I am not quite sure if there is something wrong with my code or if it is a bug with FireFox, Bing Maps, or the two of them together. I am using FireFox V27.0 on a Windows 7 pc.

    As an aside, I think attachEvent is a proprietary method of Internet Explorer. The script's method of browser detection might need to be updated.

  • Problems with external context mapping

    Hi ,
    I am having the following problems with external context mapping from one WD component to another.
    Problem description:
    In the <i>Component Interfaces</i> I have defined a WD interface "InfA".
    In the <i>interface controller</i> of this compoenent,I have ContextA and attributeA(cardinality 1..1).The contextA is marked as an "Input Element".
    Now my webdynpro componentB adds InfA as used component.In componentB I decalre a contextB with attributeB and map it to contextA to set up the external context mapping.
    Now I expect that if any webdynpro component implements this WD interface InfA ,he has access to contextA with the data getting filled from contextB.
    After i have created the component for the used component I try to fill values in the source node contextB thru this code:
    wdContext.currentContextB.setB(value);
    But in the runtime I keep getting error nullPointerException for nodeContextB,suggesting that the mapping has not been completed.
    Can anyone suggest due to what the error can come ,and, if its a webdynpro bug ,is there a workaround??
    Thanks in advance for your help.
    Best regards
    Sourav

    HI,
    Valery : I personally checked  by doing the example, if the names of value attribute are different in the child's interface and parents component controller then it throws the exception.
    Sourav: NullPointer Exception is thrown when something is not properly initialised, if in the main component the cardinality of mapped origin is 1.1 then you need to access it element directly like:
    wdContext.currentParentNodeElement().setFname("Abhijeet");
        wdContext.currentParentNodeElement().setLname("M");
    i will suggest just check out if you are declaring some element of value node and without initialising taking its use or what?
    if this doesnt solve your problem, please post the expanded exception.
    hope it helps
    let me know if you face nay problem
    regards

Maybe you are looking for