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