<StackPanel Orientation="Horizontal" Margin="5"> <RadioButton Content="Imagery" ToolTipService.ToolTip="Ortho" GroupName="BaseLayer" Margin="5,0,0,0" Foreground="White" FontSize="11" > <i:Interaction.Triggers> <i:EventTrigger EventName="Checked"> <actions:SetLayerUrlAction TargetName="Map" LayerID="BaseLayer" Url="http://ADDRESS/arcgis/rest/services/SERVICE_NAME/MapServer"/> </i:EventTrigger> </i:Interaction.Triggers> </RadioButton>
private void OnExtentChanged(object s, ExtentEventArgs args) { if MapApplication.Current.Map.Scale < 1500 { code to zoom to scale here } }
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.