none
How to display a label within a polygon in Bing Maps v8. RRS feed

  • Question

  • There used to be SetTitle() and SetDescription for polygons which would display a label within the polygon.  How would I do this with v8?
    Tuesday, September 26, 2017 6:46 PM

Answers

  • That was in the old v6.3 control and added a pushpin. That was usually the first thing users disabled. That said, you can do this in one of many ways. One option is to calculate the average or the min/max latitude and longitude values of your polygon and create a pushpin with a label there. You can also use the Spatial Math library in V8 and calculate the true centroid of the polygon and use that location.

    [Blog] [twitter] [LinkedIn]

    Tuesday, September 26, 2017 10:30 PM