Start of export function for map widget.