Hi ,
I am using AIMS 2015 , I am generating map using C# code and map is comming dyamically consist of multiple layers all are comming runtime.
I want "WaterMark" in my map . How it will display from codebehind ?
Please help me on same and provide some sample code .
Thanks & Regards
Pramod Yerne.
Since the mapdefinition is XML, you will have to get the runtime Map Definition, modify the XML and apply the changes.
The Watermark XML looks like this example:
<Watermarks>
<Watermark>
<Name>watermark</Name>
<ResourceId>Library://Samples/Sheboygan/Symbols/watermark.WatermarkDefinition</ResourceId>
<PositionOverride>
<XYPosition>
<XPosition>
<Offset>13.3333333333333</Offset>
<Unit>Points</Unit>
<Alignment>Left</Alignment>
</XPosition>
<YPosition>
<Offset>13.3333333333333</Offset>
<Unit>Points</Unit>
<Alignment>Top</Alignment>
</YPosition>
</XYPosition>
</PositionOverride>
</Watermark>
</Watermarks>
You would have to loop over the XML and change the XML, save the map and use that modified map in your layout...