Hi,
I have just created this application:
http://map.stjohns.ca/mapcentre2/map...2TestPage.html
But as you can see, the Zoom Full Extent in the Navigation control is not working. I am using epsg:32181 projection on my map.
Any suggestion or advice are welcome, because I spent a lot of time looking for a solution, but I think it is a bug.
BTW, Silverlight 5 and ArcGIS API 3.1
Thanks,
Rafael
I found a solution. Perhaps it is not the more orthodox solution, but it works:private void MyMap_ExtentChanged(object sender, ExtentEventArgs e)
{
if (MyMap.Extent.XMin < 280000 || MyMap.Extent.XMax > 352000 || MyMap.Extent.YMin < 5220000 || MyMap.Extent.YMax > 5300000)
{
double xmax = 347578.663;
double ymax = 5280116.623;
double xmin = 288990.972;
double ymin = 5239463.940;
ESRI.ArcGIS.Client.Geometry.Envelope streetEnv = new ESRI.ArcGIS.Client.Geometry.Envelope(xmax, ymax, xmin, ymin);
MyMap.ZoomTo(streetEnv);
}
}
So when the user doing click over the Full Extent Button, this function 'fixes' the map extent.I hope this solution is useful for more people.Rafael