public MainPage() { InitializeComponent(); MyMap.Layers.LayersInitialized += Layers_LayersInitialized; } bool performedInitialZoom = false; private void Layers_LayersInitialized(object sender, EventArgs args) { if (!performedInitialZoom) { MyMap.ZoomTo(someExtent); performedInitialZoom = true; } }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.