I have an information layer of points, where i am using different png images to represent the point.
However the location point that is set appears to be the top left of the image. So when zoomed out, it appears to be significantly in a different location. Do you know how to offset the set lat/long location so that the center point of the image is being used?
I am forcing the image to be 64x64. Is there some way to set the margin to -32,-32 to offset the image? or any other ideas?
However the location point that is set appears to be the top left of the image. So when zoomed out, it appears to be significantly in a different location. Do you know how to offset the set lat/long location so that the center point of the image is being used?
I am forcing the image to be 64x64. Is there some way to set the margin to -32,-32 to offset the image? or any other ideas?
BitmapImage bitmapImage= new BitmapImage(); |
bitmapImage.SetSource(new MemoryStream((Byte[])imageData)); |
var image = new Image(); |
image.Source = bitmapImage; |
image.Width = 64; |
image.Height = 64; |
image.Stretch = Stretch.Uniform; |
// todo: lat long needs to reference center of image. |
MapLayer.SetLocation(image, new Location(latitude, longitude)); |