Messenger.Default.Register<PropertyChangedMessage<NavigableGeography>>( this, action => { if (action.NewValue.Extent != null) { if(MaxExtent == null) MaxExtent = MapLayers["Base Map"].FullExtent; ConstrainedExtent = MaxExtent; Extent = action.NewValue.Extent.Expand(1.25); ConstrainedExtent = Extent; } });
<!-- Map --> <esri:Map x:Name="map" ext:AttachedProperties.BindableExtent="{Binding MapVM.Extent}" Background="White" SnapToLevels="True" d:IsHidden="True" IsLogoVisible="False" Layers="{Binding MapVM.MapLayers}" > <i:Interaction.Behaviors> <esri:ConstrainExtentBehavior ConstrainedExtent="{Binding MapVM.ConstrainedExtent, Mode=OneWay}" /> </i:Interaction.Behaviors> </esri:Map>
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.