3

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.

5

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.

  • This is perfect - I've never heard the term 'map surrounds' used before in the context of ArcMap. – Radar May 15 '13 at 21:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.