Hi,
I am trying to use the map control to display our custom map so I created a DeepZoomTilesProvider. I use:
I am trying to use the map control to display our custom map so I created a DeepZoomTilesProvider. I use:
public override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY) {
string tileFileName = string.Format("{0}/{1}_{2}.png", tileLevel, tilePositionX, tilePositionY);
tileFileName = Path.Combine(this.TileLocation, tileFileName);
return new Uri(tileFileName, UriKind.RelativeOrAbsolute);
} I can show the custom map on the control but when I try to put a MapPinControl on the InformationLayer it show on an different position from the original XY coordinate (before cutting the map with Deep Zoom Composer). I suspect is something about Mercator projection but I can’t figure out how to transform the planar coordinates XY to Mercator before calling MapPinControl.
Thanks in Advance. Tavi