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);
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.