HOW TO
Information provided is the procedure for adding a watermark image or text onto the images generated from an Image map service.
Code:
<LAYER type="acetate" name="textwatermark" visible="true">
<OBJECT units="pixel">
<TEXT coords="200 200" label="Demo Watermark">
<TEXTMARKERSYMBOL fontstyle="regular" fontsize="20" font="Arial" transparency="0.3" fontcolor="170,170,170" angle="45" />
</TEXT>
</OBJECT>
</LAYER>
Note:
The above tag adds a new acetate layer into the .AXL file with a text object using the TEXTMARKERSYMBOL. To further customize how the actual text looks, refer to the tag TEXTMARKERSYMBOL in the ArcXML Programmers Reference Guide
Code:
<LAYER type="acetate" name="testwatermark" visible="true">
<OBJECT units="pixel">
<TEXT coords="200 200" label="Demo Watermark">
<TEXTMARKERSYMBOL fontstyle="regular" fontsize="20" font="Arial" transparency="0.3" fontcolor="170,170,170" angle="45" />
</TEXT>
</OBJECT>
<OBJECT units="pixel">
<TEXT coords="150 150" label="One more Demo Watermark">
<TEXTMARKERSYMBOL fontstyle="regular" fontsize="20" font="Arial" transparency="0.3" fontcolor="255,0,0" angle="0" />
</TEXT>
</OBJECT>
</LAYER>
Code:
<LAYER type="acetate" name="imagewatermark" visible="true">
<OBJECT units="pixel">
<POINT coords="200 300">
<RASTERMARKERSYMBOL image="path to watermark image file" transparency="0.2" size="142,142" antialiasing="true" />
</POINT>
</OBJECT>
</LAYER>
Note:
Adding big images into the acetate layer might affect the performance. It is important to keep the size of the image to a minimum. The image also needs to be .JPEG or .GIF for the transparency to work.
Get help from ArcGIS experts
Download the Esri Support App