AnsweredAssumed Answered

Add Watermark for MAP_ONLY printing Option

Question asked by TikiLeBrock on Mar 4, 2016
Latest reply on Mar 22, 2016 by TikiLeBrock

Hi There!

 

After quite a lot of Searching for an Answer to my Problem and not finding any good

resulotion for i decieded to ask here.

 

When usind the MAP_ONLY Layout with the Printtask i cannot add any CopyrightText

to the Output. But this is an essential need for securing the rights of the used Data.

 

I find an intresting Post here Adding image watermark to map via ArcGIS API for JavaScript? - Geographic Information Systems Stack Exchange and try to implement this in my code. It Works fine to make the Div and the graphic inside visible but the Graphic isn't displayed when the Output is exported.

 

The Div is defined inside the Map-Div, like in the Example.

<div id="map" data-dojo-type="dijit/layout/ContentPane" region="center">

     <div id="MapCopyright" class="CRPrint"></div>

....

 

Here's the css Definition:

 

.CRPrint {

    width: 100%;

    height: 100%;

    position:absolute;

    top: 0pt;

    left: 0pt;

    background-color:#ffffff;

    opacity: 0.5;

    filter: alpha(opacity=50);

    color:#ff0000;

    font-size: 100px;

    font-weight: bolder;

    z-index: 10000;

    display:none;

    background-image: url("../images/CR.png");

    background-repeat: repeat-x;

}

 

When i called the PrintTask the display changed to visible so the Graphic would be exported too.

After the Print is successfull, display is set to "none" again.

 

Any guesses whats going wrong here? I have a strange feeling that this is all about the export of the Map,

but i can't put a finger on it.

 

Regards, Miriam

Outcomes