1
votes

I have custom map image with specific height and width. i need to map x-y coordinates of image to latitude longitude from four corner latitude longitude available.

this requirement is for fulfill current location of user into custom image map.

more on this on image i have specific few points on image, based on current position of user, i need to find near by point on image in Windows Phone Application.

Thanks in advance.

1

1 Answers

1
votes

If you are using the Bing Maps Silverlight Control for WP7, there are APIs for want you want to achieve.

The Map class for example provides methods LocationToViewportPoint and ViewportPointToLocation for converting coordinates.

There is also the class MercatorUtility which provides helpful methods like LocationToLogicalPoint and LogicalPointToLocation.

However, depending on what you mean with custom map image, nobody except you would possibly know how it maps to view coordinates.