Hi PowerApp champions !
I'm new to powerapps and this is my first project;
I have added a map (via powerApps image control) for site data based on a lat, long and the user can select the imagerySet from a dropdown list.
Even though the app seems to work perfectly, I am getting the following error, not always, but quite often, on the desktop version of my app. I am however able to change the imagerySet via a dropdown successfully. I suspected that perhaps the dropdown's selectedText.Value that i was providing to the Bing API was sometimes either blank or in the wrong format, but I don't know how it can only generate this error sometimes, and always seems to generate the correct map in the app.
BingMaps.GetMapV2 failed: The method 'GetMapV2' has an invalid value for parameter 'imagerySet'
NOTE: the error never occurs when on the mobile version which uses exactly the same logic and also never occurs when I'm 'playing' the app from edit mode....so quite confusing for me.
Here's the code for the Bing call inside the Image (image property)
BingMaps.GetMapV2(DD_imagerySet.SelectedText.Value, SliderZoom.Value, ThisItem.Latitude, ThisItem.Longitude,{pushpinLatitude:ThisItem.Latitude,pushpinLongitude:ThisItem.Longitude, pushpinIconStyle:"65", pushpinLabel:ThisItem.NCSB_Site_ID})
This is the Items property for the dropdown list that the user can select;
["CanvasLight","AerialWithLabelsOnDemand","RoadOnDemand","CanvasDark","CanvasGray"]
If this cannot be solved is there any way to suppress the error ?
Any help or hints would be greatly appreciated

Report
All responses (
Answers (