zoukankan      html  css  js  c++  java
  • 去掉Ajax Viewer快速打印中的坐标标签

    在使用MapGuide中的快速打印QuickPlot时,默认显示左上角和右下角坐标,如图:

    image

    但也可能有人会希望打印一张干干净净的图纸,不想显示这个坐标提示标签. 峻祁连经过一番研究,最简单的办法就是更改这个Div标签的CSS样式.我们可以用写字板打开 C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2012\www\viewerfiles\quickplot.js 搜索 "createCoordinateLabel", 编辑label.style.cssText 为 "display:none;"

            var label = this.innerDoc.createElement("div");
            container.appendChild(label);
            label.id  = id;
            label.style.cssText = "display:none;";
            label.innerHTML     = "X: " + cX + " Y: " + cY;

    下面是编辑后打印的截图,坐标标签已经不显示了:

    image

    这种方法也同样适用于AIMS 2013.

  • 相关阅读:
    1.7 All components require plug-in?
    1.6 Why only in China?
    1.5 A better alternative thing: React Native
    1.4 The usage of plug-in
    1.3 History of Android Plug-in Programing
    SQL Server 查询请求
    matplotlib 绘图的核心原理
    数据加密 第六篇:透明文件加密
    数据加密 第五篇:非对称密钥
    SSIS 数据类型 第二篇:变量的数据类型
  • 原文地址:https://www.cnblogs.com/junqilian/p/2575938.html
Copyright © 2011-2022 走看看