cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
benmcmann
Level: Powered On

Bing Maps API not showing Push Pins on Map with Get Static Map Action

According to the Bing Maps connection documentation, when you use the GetMap call, you need to enter the imagery set, zoom, lat and long values, and you should get a map back with a pin on the map indicating your location.

 

I only get the map back with no pin.  I have been able to get both the GetLocationByPoint call to return lat and long values, as well as the GetLocationByAddress call to return the address based on lat and long values being entered.  But I cannot get the GetMap call to show a pin.

 

How can I accomplish this?  Is there an issue with the GetMap call currently, since it is in preview?

 

I have an image control displaying the map with the following formula: BingMaps.GetMap("Road",10,LatValue,LongValue).

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Bing Maps API not showing Push Pins on Map with Get Static Map Action

If you want a pushpin, you need to explicitly request it, in the pushpin optional parameter, like in the example below.

BingMaps.GetMap(
    "Road",
    10,
    LatValue, LongValue,
    {pushpin:LatValue & "," & LongValue})

View solution in original post

4 REPLIES 4
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Bing Maps API not showing Push Pins on Map with Get Static Map Action

If you want a pushpin, you need to explicitly request it, in the pushpin optional parameter, like in the example below.

BingMaps.GetMap(
    "Road",
    10,
    LatValue, LongValue,
    {pushpin:LatValue & "," & LongValue})

View solution in original post

benmcmann
Level: Powered On

Re: Bing Maps API not showing Push Pins on Map with Get Static Map Action

Thanks Carlos!  Works great now.  I was missing the fact I have to use the & "," & in my formula, I was just entering LatValue, LongValue.

 

 

Ethan0079
Level: Powered On

Re: Bing Maps API not showing Push Pins on Map with Get Static Map Action

Hi,

 

I took your formula again it looks fine but my powerapps doesn't want to take it he gives me his:

 

image.png

 

 

 

 

 

 

 

I don't understand why it puts me in an unsupported function.

 

Thank you for your help if you can help me.

Ethan

Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Bing Maps API not showing Push Pins on Map with Get Static Map Action

You need to add a reference to the Bing Maps connector in your app before you can use this function. Check this link for more information on adding data sources: https://docs.microsoft.com/powerapps/maker/canvas-apps/add-data-connection

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,570)