O2 API/Google Maps/Save large map as JPG
From
Here is a script that loads up a big Google Map and save it as a JPG
Note that the script is currently hardcoded to the LondonAbundace.com Google Map, but it is easy to make it generic (the file created from this script was 27Mb in size (Google map size was 4048x4048)
panel.clear(); var picture = panel.add_PictureBox(); var width = 4048; var height = 4048; var zoom = 13; var htmlCode= ("<html><body><iframe width=\"{0}\" height=\"{1}\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" ".line() + "src=\"http://maps.google.co.uk/maps/ms?hl=en&ie=UTF8&msa=0&msid=100708142690829776065.00047f64011ffda6f29b1&t=h&ll=51.481129,-0.265335&spn=0.003434,0.009549&output=embed\" > ".line() + "</iframe></body></html>").format(width, height,zoom); var file = htmlCode.saveWithExtension(".html"); file.info(); var ie = "about:blank".ie(); ie.open(file); //ie.InternetExplorer.FullScreen= true; ie.askUserToContinue(); ie.screenshot(); var targetFile = PublicDI.config.getTempFileInTempDirectory(".jpg"); "JPG File: {0}".info(targetFile); ie.IE.CaptureWebPageToFile(targetFile); picture.load(targetFile); ie.closeInNSeconds(10);
