打印微件

尝试一下在线预览

此示例演示如何为 2D MapView 添加 打印微件 。 微件可以在打印输出中保留地图比例或地图范围。 默认情况下,保留地图范围。 改为使用 TemplateOptions.scaleEnabled 来保留比例。 该微件还在打印输出中打印本地化日期。


打印微件调用 GPServer 上的  Get Layout Templates Info   任务来发现每个模板可能的 customTextElements   值。 使用自定义打印服务时,找到的值将填充在 Advanced options 下的打印微件中。 这些值可以在打印微件 UI 中被覆盖,或者以编程方式使用 Print.templateCustomTextElements 。

注意:目前打印  SceneView  是不可能的。相反,看到 SceneView.takeScreenshot() 

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.