02-23-2018 21:32 PM - last edited 02-23-2018 21:34 PM
Audrie Gordon responds to a community member who wants to create an app that can be used to see a map based on the selection of a building or address. In this video we use the new Bing Maps connector (in preview).
References:
https://docs.microsoft.com/en-us/connectors/bingmaps/#getlocation_response
https://www.bingmapsportal.com
https://docs.microsoft.com/en-us/powerapps/functions/signals
******FORMULAS******
Drop down (from SP List called Building Addresses):
Items property: BuildingAddresses
Reset map button icon:OnSelect property -
Set(MapResponse,BingMaps.GetLocationByAddress({addressLine:Dropdown1.Selected.Address}))
Labels for Longitude and Latitude:
MapResponse.point.coordinates.longitude
MapResponse.point.coordinates.latitude
Image for Map:Image property-
BingMaps.GetMap("Road",15,lblLatitude.Text,lblLongitude.Text)
OnVisible (screen) - so that it defaults to the first list item
Set(MapResponse,BingMaps.GetLocationByAddress({addressLine:First(BuildingAddresses).Address,locality:First(BuildingAddresses).City,adminDistrict:First(BuildingAddresses).State}))
Enjoy!
watch?v=eGfVpwqO7ts