Hi,I have just created this application:http://map.stjohns.ca/mapcentre2/map...2TestPage.htmlBut 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.1Thanks,Rafael
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); } }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.