<Button Content="Prints" Click="Button_Click" Width="140" Height="30" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5"/>
private void Button_Click(object sender, RoutedEventArgs e) { var printTask = new PrintTask("http://yourservername:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task"); printTask.ExecuteCompleted+=new EventHandler<PrintEventArgs>(printTask_ExecuteCompleted); printTask.ExecuteAsync(new PrintParameters(MyMap)); }
<esri:ArcGISDynamicMapServiceLayer ID="USA" Url="http://servicesbeta2.esri.com/arcgis/rest/services/Census/MapServer"> <esri:ArcGISDynamicMapServiceLayer.DynamicLayerInfos> <esri:DynamicLayerInfoCollection> <esri:DynamicLayerInfo ID="2"> <esri:DynamicLayerInfo.Source> <esri:LayerMapSource MapLayerID="2" /> </esri:DynamicLayerInfo.Source> </esri:DynamicLayerInfo> </esri:DynamicLayerInfoCollection> </esri:ArcGISDynamicMapServiceLayer.DynamicLayerInfos> </esri:ArcGISDynamicMapServiceLayer>
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.