UWP: Draw map icons to scale

97 Views Asked by At

I have an application that I am writing in UWP that draws a car on a map. Around that car, there are POIs that I would like to draw on the map also. I have a 2D array that populates the POIs from my car, such that the car is located at [500,500] and that POIs in the 2D array are 0-500 metres from the car.

I am trying to render this 2D array as bytes on a writeable bitmap, but have them to scale. What I am trying to figure out, is how to accurately calculate the number of pixels required to be coloured based on the POI’s distance from the car, at any given zoom level. Does UWP provide functionality to draw to scale like this?

I have sketched what I am trying to draw below.

Thanks!

enter image description here

0

There are 0 best solutions below