Exporting Maps as PDF or Images > Troubleshooting |
I am trying your Export Map related examples provided in Download Package > Code > ExportMapSamples folder. None of them see to finish the final step. What is wrong? |
Before trying the examples from our download package, you need to undertake the necessary setup steps as under:
If it still doesn't work, switch the debug mode of map to on and it'll be able to guide as to what might be wrong. |
I have copied the server-side PHP or Ruby on Rails handlers, but they do not seem to generate images at all. |
Make sure that you've GD library installed on your server in case of PHP, and RMagick in case of Ruby on Rails. |
My PHP/Ruby on Rails server-side handlers are unable to generate PDFs |
Make sure you've GZip library installed on your server in case of PHP, and zlib in case of Ruby on Rails. |
I want to export the maps and save them on server without having to render the maps in browser. How can I do this? |
This CANNOT be done. FusionMaps necessarily needs to render once in the browser, before any of the export handlers are called. This is because the maps are always generated at client-side. After that, it takes a snapshot to the client-side Export component or server-side Export scripts for generation of image/PDFs. |
When creating an instance of FusionMaps Export Component, I do not see the UI at all. Instead, it shows me the text that I filled in my container DIV. |
Make sure of the following:
If nothing works, switch the debugMode of component to true (click here for details), and it'll show what went wrong. |
When using some download tools (like DAP), I cannot download the image in case of server-side exports. |
Yes- this is because they do not resend the POST data. So, you'll have to disable the same to allow download of map. |
Instead of saving on server, can I directly email the map? |
Not directly. But since we allow saving on server, you can write your own script to automatically email the saved image. This script can be placed in our server-side script, or externally. |
Instead of just exporting the maps to PDF, I also want my HTML content to be a part of the PDF. How can I achieve that? |
Currently, the only way would be to use a print PDF driver (like say PDF995). Since FusionMaps export component does not have access to anything that is contained in your browser window, it cannot export that as a PDF. |
The maps in my PDF look a bit larger than my actual maps. Why? |
The PDFs rendered by FusionMaps Export Handler is 72 DPI in PDF. The PDF viewer that you are using must have been set to a different Display Resolution (pixel/inch setting). A higher value would show the map bigger and blurred while a smaller value would reduce the map size. Please set the Resolution to 72 to see the correct map size. |