zoukankan      html  css  js  c++  java
  • PrintTemplate说明

      

    require(["esri/tasks/support/PrintTemplate"], function(PrintTemplate) { /* code goes here */ });
    lass: esri/tasks/support/PrintTemplate
    Inheritance: PrintTemplate Accessor
    Since: ArcGIS API for JavaScript 4.1
    
    Defines the layout template options used by the PrintTask to generate the print page.
    Constructors
    
    new PrintTemplate(properties)
        Parameter:
        properties Object
        optional
    
        See the properties for a list of all the properties that may be passed into the constructor.
    Property Overview
    Any properties can be set, retrieved or listened to. See the Working with Properties topic.
    


    Property Details
      attributionVisible Boolean

    When false, the attribution is not displayed on the printout. This only applies when the layout value is map-only. Reference our policies on Licensing & Attribution for specific attribution requirements.
    Default Value:true
      declaredClass Stringreadonly inherited
      Since: ArcGIS API for JavaScript 4.7

    The name of the class. The declared class name is formatted as esri.folder.className.

      exportOptions Object

    Define the map width, height and dpi. Required when layout = 'map-only'. See the object specification table below for available options to set for exportOptions.

    
          
    Example:
    layoutOptions: {
      titleText: "My Print",
      authorText: "Sam",
      copyrightText: "My Company",
      scalebarUnit: "Miles",
      // the following text elements must
      // exist in the print service to appear
      customTextElements: [
        {"description": "My description"},
        {"location": "My Location"},
        {"date": "11/11/2020, 11:11:20 AM"}
      ]
    }

  • 相关阅读:
    垂直同步
    C++ RAII
    C++ RAII
    LCD刷新率和垂直同步的设置
    ping结果中TTL是什么意思
    垂直同步
    stage.frameRate改变帧频
    ping结果中TTL是什么意思
    stage.frameRate改变帧频
    ping 命令的原理,揭开单向“Ping”通的奥秘
  • 原文地址:https://www.cnblogs.com/leebokeyuan/p/12161308.html
Copyright © 2011-2022 走看看