EXPORTING A MAP REPORT TO EXCEL OR PDF

651 views Asked by At

i am an Brasilian Web Developer, and i am making an report of phone calls geolocation in an virtual PABX ( asterisk ), already working fine with google maps API V3.

OBJECTIVE Export this report into a PDF or Excel, so i am thinking in turn the map into a image, to export after:

What i already try:

  • Create a Static Map dont solve my problem because i have a marker for each calls, and i am clustering markers with MarkerClusterer

  • I converted my map in Canvas using html2canvas, after my html turned in canvas i used canvas2image to create an <img> element, for simple html this solution works perfect, but in case of google maps the result is that:

Unfortunately i cannot post images because i have no reputation, i always visit StackOverflow but its my first time making a question, but i can describe that the image generated from the canvas have just the gray google maps background and the number of markers of the markerclusterer.

You can see the image here to understand better:

enter image description here

I am thinking in something like take a screenshot of the page and crop to just pick map region, but any sugestions that can solve the problem or give me a way will be very welcome.

0

There are 0 answers