GraphicsLayer l = (GraphicsLayer)this.map1.Layers["MY_LAYER_ID"]; this.map1.Extent = l.FullExtent;
There shouldn't be any difference based on the size of the map.however a smaller map needs to zoom out more to a different scale to fit the same extent. Could it be you have some max/min zoom limitations (either explicitly or caused by a cached layers levels), SnapToLevels etc enabled?
<i:Interaction.Behaviors> <esri:MaintainExtentBehavior /> </i:Interaction.Behaviors>
this.map1.ZoomTo(l.FullExtent);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.