Skip to main content

Notifications

Power Pages - Design & Build
Unanswered

Bing Maps controlling the center of an image

Like (1) ShareShare
ReportReport
Posted on 21 Sep 2024 01:33:30 by 2
I want to control the center of the map which is just an image in my powerapp. Here is the code currently for the image: 
 
This code is working except for when centerLatitude and centerLongitude change (confirmed they are indeed changing) as the user clicks 'd-pad' buttons. what i want to happen is the center of the map that is being drawn changes and adjust the image with the new coords. this is not working for some reason. any ideas on how this can be completed?
 
"https://dev.virtualearth.net/REST/v1/Imagery/Map/" & mapType &
"?" & centerLatitude & "," & centerLongitude &
"&" &
Concat(
    Filter(Gallery1.AllItems, ShowPoint=true),
    "pp=" & ThisRecord.PointLatitude & "," & ThisRecord.PointLongitude & ";" & ThisRecord.PushPinType & ";" & "&",
    ""
) &
If(showBuildings, "&mapLayer=Basemap,Buildings") & If(declutterMap,
"&declutterPins=1", "") & 
"&format=jpeg&mapMetadata=0&zoomLevel=" & zoomLevel &
"&key=AlsPgINdzGoAhh46ru7Qm1LK9C2UFJbCM4LnbTXIkjHclV0zAE8uMK8OgA7cH5R1"
 
 
Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,238

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,290

Leaderboard

Featured topics

Loading complete