<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 } }
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.