private var printUtil:PrintUtil; printUtil = new PrintUtil(map); printUtil.LayoutElements = [title,author,locateCoordinateString]; var params:Object = printUtil.getPrintParameters(); exportMapGP.submitJob(params); <fx:Declarations> <esri:Geoprocessor id="exportMapGP" url="{gpServiceURL}" /> </fx:Declarations>
#Create a dictionary with the element name and element value elemSettings = params.get_layoutelements() i = 0 dictionary = dict({}) for subnode in elementNode: elemName = subnode.attrib["name"] elemValue = elemSettings.getRow(i) elemValue = elemValue[1:] elemValue = elemValue[:-1] elemValue = elemValue.replace("*","\n") i = i + 1 logging.info(elemName + ": " + elemValue) if elemValue: dictionary[elemName] = elemValue logging.info(elemName + ": " + elemValue)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.