Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Insert WaterMark Dynamically

1 REPLY 1
Reply
Message 1 of 2
Anonymous
301 Views, 1 Reply

Insert WaterMark Dynamically

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.

1 REPLY 1
Message 2 of 2
gluckett
in reply to: Anonymous

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...

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report