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

Bing Maps API - drawing multiple regions on a map

Hi,

 

I want to Bing map API to draw a map with 9 polygon shapes.  However the map stops rendering after I put the 3rd one on the map. Below is the map URL with the first two region shapes (you have to put in a map key at the end to see the map).

 

Does Bing Maps API have a limit on the length of the URL or the number of shapes I can draw? 

Is there a solution to include all 9 regions on the map? 

 

http://dev.virtualearth.net/REST/V1/Imagery/Map/Road/53.541405,-113.495858/11?ml=TrafficFlow&mapSize=500,600&dc=p,00000000,CC000080,2;53.506883,-113.559621_53.499528,-113.559621_53.49438,-113.560858_53.48592,-113.558385_53.482977,-113.555912_53.483345,-113.537983_53.482609,-113.526237_53.482609,-113.516345_53.480034,-113.497798_53.480401,-113.48667_53.482241,-113.473687_53.483345,-113.46565_53.484448,-113.454521_53.485552,-113.445248_53.49438,-113.44463_53.501367,-113.44463_53.516809,-113.44463_53.525263,-113.445248_53.541798,-113.445248_53.545839,-113.444011_53.550981,-113.440302_53.555756,-113.441539_53.554654,-113.452049_53.555389,-113.463177_53.551716,-113.469977_53.546574,-113.466268_53.542533,-113.463177_53.539594,-113.46565_53.539961,-113.473068_53.539961,-113.481724_53.537389,-113.487288_53.534082,-113.490379_53.530408,-113.490379_53.5271,-113.495943_53.529673,-113.504598_53.53151,-113.515108_53.531143,-113.526237_53.533347,-113.532419_53.537022,-113.541074_53.538491,-113.549111_53.535185,-113.557148_53.530408,-113.558385_53.525998,-113.554057_53.520852,-113.54602_53.515706,-113.542929_53.510927,-113.544784_53.507986,-113.551584_53.506883,-113.559621&dc=p,00000000,CC000080,2;53.580355,-113.456994_53.574482,-113.455758_53.569342,-113.45514_53.561632,-113.447103_53.556123,-113.442157_53.551716,-113.439684_53.546574,-113.443393_53.541431,-113.445866_53.518279,-113.445248_53.514236,-113.427319_53.513133,-113.4199_53.514971,-113.408154_53.516441,-113.398262_53.516809,-113.387134_53.517544,-113.372915_53.514971,-113.358695_53.51203,-113.343858_53.520852,-113.345094_53.527835,-113.344476_53.537389,-113.343239_53.569709,-113.345712_53.568975,-113.363023_53.572279,-113.377242_53.577051,-113.393935_53.580722,-113.408772_53.581456,-113.42361_53.578153,-113.435356_53.578153,-113.447103_53.580355,-113.456994&key={BingMapAPIKey}

The coordinates of the rest 7 regions are here:

&dc=p,00000000,CC000080,1;53.580355,-113.557148_53.570444,-113.550348_53.566405,-113.550966_53.56053,-113.552821_53.552818,-113.551584_53.547308,-113.546638_53.5429,-113.543547_53.538491,-113.541074_53.53445,-113.534892_53.53151,-113.525_53.53151,-113.51449_53.529305,-113.50398_53.5271,-113.494088_53.531143,-113.489143_53.536287,-113.489143_53.539226,-113.483578_53.540328,-113.473687_53.539594,-113.46565_53.543635,-113.463177_53.549512,-113.468741_53.55392,-113.468123_53.555389,-113.459467_53.555021,-113.450812_53.555756,-113.44092_53.559796,-113.446484_53.564202,-113.45143_53.568608,-113.45514_53.571912,-113.456376_53.575583,-113.455758_53.579621,-113.458231_53.58219,-113.457613_53.581456,-113.47616_53.581089,-113.508308_53.579988,-113.532419_53.580355,-113.557148
&dc=p,00000000,CC000080,1;53.573381,-113.663485_53.572279,-113.639373_53.570811,-113.625154_53.573013,-113.614026_53.578887,-113.591769_53.581089,-113.575695_53.581089,-113.559003_53.574849,-113.555294_53.568608,-113.550348_53.562366,-113.552821_53.552083,-113.550966_53.546206,-113.54602_53.538124,-113.542929_53.537389,-113.553439_53.531878,-113.559621_53.526365,-113.555912_53.521955,-113.546638_53.514971,-113.542929_53.509824,-113.546638_53.507986,-113.555294_53.50725,-113.565185_53.505044,-113.581878_53.500999,-113.589915_53.494747,-113.591769_53.487391,-113.589915_53.481505,-113.593006_53.481137,-113.599806_53.484816,-113.606607_53.48923,-113.617735_53.487759,-113.624536_53.482609,-113.628863_53.477458,-113.623918_53.47525,-113.614644_53.471939,-113.607844_53.466051,-113.607225_53.460162,-113.614026_53.465683,-113.628863_53.468995,-113.639373_53.473043,-113.652356_53.480401,-113.659157_53.55649,-113.659775_53.568608,-113.66163_53.573381,-113.663485
&dc=p,00000000,CC000080,1;53.436967,-113.492246_53.429948,-113.493872_53.421959,-113.494278_53.415421,-113.497122_53.410578,-113.502404_53.404765,-113.507685_53.396045,-113.512155_53.395802,-113.46015_53.39556,-113.345813_53.426801,-113.347032_53.447373,-113.347032_53.44326,-113.354752_53.438177,-113.369784_53.435757,-113.380754_53.435273,-113.398631_53.435515,-113.433978_53.436483,-113.449823_53.436967,-113.492246
&dc=p,00000000,CC000080,1;53.480052,-113.497521_53.467477,-113.498334_53.460705,-113.494677_53.456592,-113.494271_53.44764,-113.49549_53.440865,-113.493865_53.437476,-113.493052_53.437718,-113.477613_53.437234,-113.460549_53.436024,-113.439828_53.435298,-113.421545_53.435298,-113.397574_53.436508,-113.380916_53.437718,-113.371165_53.440623,-113.36304_53.444011,-113.353695_53.448366,-113.348007_53.455866,-113.34435_53.468203,-113.344757_53.481019,-113.343944_53.493831,-113.34435_53.512438,-113.345569_53.517028,-113.369947_53.517028,-113.386198_53.516545,-113.398793_53.514371,-113.41992_53.51727,-113.436984_53.518478,-113.444704_53.485371,-113.445922_53.483195,-113.466237_53.480293,-113.483301_53.480052,-113.497521
&dc=p,00000000,CC000080,1;53.507048,-113.560888_53.506395,-113.56857_53.505525,-113.576618_53.503785,-113.583568_53.501609,-113.588324_53.49791,-113.59125_53.493557,-113.590884_53.490511,-113.589787_53.486811,-113.590153_53.482892,-113.590884_53.481369,-113.596006_53.481586,-113.601127_53.484634,-113.605882_53.487899,-113.612101_53.489205,-113.616857_53.488116,-113.626002_53.484852,-113.628197_53.480933,-113.627099_53.477886,-113.624173_53.475926,-113.619052_53.47462,-113.614296_53.472225,-113.608077_53.468523,-113.607346_53.463515,-113.610272_53.460683,-113.615028_53.457416,-113.619783_53.453496,-113.625636_53.448703,-113.631489_53.445217,-113.639537_53.442385,-113.641_53.43868,-113.642829_53.435412,-113.646853_53.433232,-113.65234_53.431053,-113.658193_53.428002,-113.660754_53.42059,-113.658925_53.413396,-113.655267_53.408381,-113.651243_53.399221,-113.645024_53.395731,-113.643195_53.395513,-113.618686_53.395513,-113.569301_53.395949,-113.513698_53.40053,-113.510406_53.405764,-113.507114_53.412524,-113.502358_53.416012,-113.497603_53.420808,-113.495042_53.427566,-113.495042_53.434104,-113.493213_53.438245,-113.493579_53.444346,-113.495774_53.449792,-113.495774_53.45502,-113.495042_53.458288,-113.494676_53.46395,-113.496871_53.466781,-113.4987_53.48028,-113.497603_53.482239,-113.51443_53.482675,-113.53016_53.482892,-113.55723_53.487246,-113.558693_53.493993,-113.560522_53.500956,-113.560156_53.507048,-113.560888
&dc=p,00000000,CC000080,1;53.656958,-113.551584_53.636475,-113.552202_53.63171,-113.568895_53.625844,-113.585587_53.61851,-113.597952_53.613009,-113.608462_53.603839,-113.623918_53.59907,-113.635046_53.600171,-113.664721_53.585126,-113.662866_53.580355,-113.664721_53.577418,-113.662866_53.574115,-113.664103_53.573013,-113.644938_53.571178,-113.628863_53.573013,-113.615262_53.577051,-113.599188_53.580355,-113.583114_53.581089,-113.570131_53.580722,-113.552821_53.579988,-113.534274_53.581089,-113.5182_53.581456,-113.505835_53.580722,-113.494088_53.593199,-113.494088_53.62401,-113.494707_53.646737,-113.494088_53.651135,-113.494707_53.655532,-113.499653_53.65773,-113.503362_53.656958,-113.551584
&dc=p,00000000,CC000080,1;53.646737,-113.471214_53.646737,-113.48296_53.646004,-113.494088_53.617777,-113.494088_53.581456,-113.49347_53.581089,-113.482342_53.581456,-113.471214_53.582557,-113.456994_53.578887,-113.450194_53.578153,-113.437211_53.580722,-113.429792_53.58219,-113.420519_53.581456,-113.406299_53.577786,-113.395171_53.571912,-113.376624_53.569709,-113.363023_53.569709,-113.346949_53.579621,-113.345712_53.589163,-113.346949_53.596135,-113.349422_53.608975,-113.353749_53.61961,-113.363023_53.627677,-113.37786_53.638674,-113.406299_53.64747,-113.436284_53.646737,-113.471214

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Bing Maps API - drawing multiple regions on a map

Hi @mochabits,

How do you draw multiple regions on a map using Bing Maps API within your PowerApps? Using Image control?

I suppose that you use a Image control display the map within your app, is it true?

Based on the formula that you provided, I have made a test, and the issue is confirmed on my side.

I afraid that you could only draw 2 regions (current limit) on a map using Bing Maps API through Image control within PowerApps currently.

If you would like this feature to be added to be improved, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Bing Maps API - drawing multiple regions on a map

Hi @mochabits,

How do you draw multiple regions on a map using Bing Maps API within your PowerApps? Using Image control?

I suppose that you use a Image control display the map within your app, is it true?

Based on the formula that you provided, I have made a test, and the issue is confirmed on my side.

I afraid that you could only draw 2 regions (current limit) on a map using Bing Maps API through Image control within PowerApps currently.

If you would like this feature to be added to be improved, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 146 members 4,966 guests
Please welcome our newest community members: