Export Layouts with Titles to pdf, bmp, jpg, etc.

By Joey Gentry, GIS Programmer, Moscow, ID

Download the script.

Code Summary

This is a function(s) that very easily exports the contents of the map control given to a given image type. It uses the map object and scales the extents appropriately. You can choose which file format to export to as well as dpi. It requires a host and object given as strings. The title can be set as well. The title is placed in the top right corner so for your layout design you may have to adjust the position values. The function returns the url of the image file.

Advertisements

Comments are closed.

%d bloggers like this: