Forum Discussion

CindyZ's avatar
CindyZ
Iron Contributor
May 13, 2020
Solved

Troubleshoot Embed Web Part for Locations Bing Maps

I am trying to use the embed webpart to show maps of locations.  I'm connected to a list that has the columns of longitude and latitude and they have only numbers in them...i.e. "49.392921".  When I select one that I expect to be able to view in the embed web part, all I get is a blue box that shows bing in the bottom left hand corner and the scale -- no content showing at all.  Any idea what the problem might be.  I copied the below code directly from the Microsoft site and then connected the longitude and latitude so I was sure I was accessing the correct fields. Following is my embed code. 

 

<iframe width="500" height="400" src="https://www.bing.com/maps/embed?h=400&amp;w=500&amp;cp=[$Latitude]]~[$Longitude]]&amp;lvl=13&amp;typ=d&amp;sty=r&amp;src=SHELL&amp;FORM=MBEDV8" frameborder="0" scrolling="no"> </iframe>

 

Thank you! 

  • CindyZ the embed code I use in my connected Bing map web part works well and is as follows:

     

     

    <iframe width="560" height="315" src="https://www.bing.com/maps/embed?h=315&amp;w=560&amp;cp=[$Latitude]~[$Longitude]&amp;lvl=13&amp;typ=d&amp;sty=r&amp;src=SHELL&amp;FORM=MBEDV8" frameborder="0" scrolling="no"> </iframe>

     


     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User.

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    CindyZ the embed code I use in my connected Bing map web part works well and is as follows:

     

     

    <iframe width="560" height="315" src="https://www.bing.com/maps/embed?h=315&amp;w=560&amp;cp=[$Latitude]~[$Longitude]&amp;lvl=13&amp;typ=d&amp;sty=r&amp;src=SHELL&amp;FORM=MBEDV8" frameborder="0" scrolling="no"> </iframe>

     


     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User.

    • CindyZ's avatar
      CindyZ
      Iron Contributor

      RobElliott  Thanks so much for your quick response.  Are you using this along with a linked list web part.  That is what I'm trying to do.  My longitude and latitude columns each have only number in them as a text field. 

      I pasted your code and I'm getting the same result as before.  It sounds like I may need to put in an internal ticket to see if I can get some help.  

       

      Sharing your code was really helpful though I've still got issues -- so thanks very much- it is helping to narrow down my issues! 

      • RobElliott's avatar
        RobElliott
        Silver Contributor

        CindyZ yes the list is on the page and selecting any village displays - via the 3 connected web parts - a Bing Map, a video from YourTube and a list of restaurants in the village. I built this to demonstrate connected web parts to our staff. My latitude and longitude columns in the list are single of text columns with just the numbers in:

         

        Rob
        Los Gallardos
        Microsoft Power Automate Community Super User

  • CindyZ's avatar
    CindyZ
    Iron Contributor

    CindyZ  Well, wouldn't you know it!  As soon as I posted this, I saw that I had two end brackets behind my latitude and longitude.  Fixed that and -- I was optimistic as it refreshed, but no luck -- I have the same thing -- only now it is a Bing gray box.  

Resources