question

CRHinners avatar image
0 Votes"
CRHinners asked CRHinners commented

Undocumented InfoboxOptions.autoAlignment property in Bing Maps v8?

In the "Reusing an infobox" Bing Maps v8 online demo, I spotted InfoboxOptions.autoAlignment, which seems to automatically reposition Infoboxes so that they stay within the visible area of the map when they're opened for a pushpin that is near the edge. However, this property is not documented on the InfoboxOptions MS Docs page, and it's not in the Microsoft.BingMaps.V8.TypeScript NuGet package v2.0.3, so my TS doesn't compile when I add it.

The only other references I found to it on the web are in three-year-old threads in the old, archived forum. (Thread A, Thread B)

Can we show the v8 control some love and get this property documented and the TS updated? I'd really like to use this option instead of writing my own custom code to reposition the Infobox.


windows-maps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IoTGirl avatar image
0 Votes"
IoTGirl answered CRHinners commented

Hi CRHinners,

I will ask the folks that know about the control and see.

Sincerely,
IoTGirl

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

My pull request to add this to the Bing Maps v8 TypeScript library was denied, saying that autoAlignment is an unsupported internal option. Which is a shame, because it works quite well! Anyway, if it isn’t intended to be used, it should be removed from the public SDK page.

0 Votes 0 ·