[GIS] Creating maps programmatically using ArcObjects. Adding legends, scale bars, north arrows

arcgis-10.1arcobjectscartography

I'm looking for some examples related to the publishing of maps programmatically to image format using ArcObjects. More specifically I would like to add standard map elements such as a scale bar, legend, and north arrow.

Currently I am able to create an MXD, add several layers from paths stored in a dictionary, set the symbology based on layer files, set the extent, and export the map as a JPEG. Up to this point I haven't found any examples of ArcObjects code that also makes the map look more professional by adding additional elements (and sizing/positioning them).

Any help would be much appreciated.

Best Answer

See the Working with the page layout section in the documentation - mainly the Map surrounds topic, which provides an overview how the most common map surrounds (legend, scalebar etc.) are structured, followed by Working with map surrounds, which shows how to add these elements to the page layout.

Related Question