Disable Coordinate Label when Plotting in Ajax Viewer

By Daniel Du

When plotting in Ajax viewer with QuickPlot, the coordinate labels of left-upper corner and bottom-right corner always show up as screen-shot below:

image

I got a request to disable this coordinate label. After some investigation, here is the solution for your reference.

The simplest way is to change the CSS of coordinate label div, please refer to C:Program FilesAutodeskAutodesk Infrastructure Web Server Extension 2012wwwviewerfilesquickplot.js and seach “createCoordinateLabel”, edit the value of label.style.cssText to “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;

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/white-space: pre;/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

 

Here is the screen-shot after modification, the coordinate label is disabled now.

image

This solution applies to AIMS 2013 as well.


Comments

2 responses to “Disable Coordinate Label when Plotting in Ajax Viewer”

  1. Hello Daniel du as I have a question I put a statistical chart on a map or in a thematic map cast in autocad 2013.

  2. TypePad HTML Email
    Hi Alex,
    Sorry but I am clear about your meaning, are you trying to add a chart in AIMS? Would you please refer to this post to check whether it is helpful?
    http://adndevblog.typepad.com/infrastructure/2012/04/make-full-use-of-tooltip-in-autodesk-infrastructure-map-serveraims-or-mapguide-open-source.html
    Thanks,
    Daniel

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading