PrintTask printTask = new PrintTask("http://myServer/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task"); ArcGISDynamicMapServiceLayer lyr = new ArcGISDynamicMapServiceLayer(); lyr.Url = "http://myServer/arcgis/rest/services/myMapService/MapServ1er"; ObservableCollection<Layer> colLayers = new ObservableCollection<Layer>(); colLayers.Add(lyr); Envelope extent = new Envelope(<xmin>, <ymin>, <xmax>, <ymax>); PrintParameters PrintParams = new PrintParameters(colLayers, extent); ... // set layoutOptions [optional] ... // set exportOptions [optional] printTask.ExecuteAsync(PrintParams);
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.