try {
Properties props = new Properties();
props.setProperty("path.run", System.getProperty("user.dir"));
props.setProperty("path.images", "");
MapImage map = new MapImage(props, href);
path = processMap(map);
map.setThumbnail(thumbWidth);
map.setShowLargeGrid(false);
map.setShowThings(true);
map.setShowAreas(true);
map.setShowFeatures(true);
map.saveImage(imageDir.getPath()+"/"+path, scale, false);
} catch (Exception e) {
e.printStackTrace();
}
return "../../images/"+path;