Hi!
I'm generating a GoogleMaps map in a dialog.
So, is it possible to print this map? I've seen that it's possible if only I render this map to an image format, something like a printscreen of the map. But, I have no idea how to do this.
Thanks!
Hi!
I'm generating a GoogleMaps map in a dialog.
So, is it possible to print this map? I've seen that it's possible if only I render this map to an image format, something like a printscreen of the map. But, I have no idea how to do this.
Thanks!
You can use the Static Maps API. It generates a map image on the fly.
Chris B is right, you want to do something like:
on Print (your "print this" click event or whatever)
a) Grab the current coordinates ,width, height and zoom of the currently displayed dynamic map (the one the user is seeing)
b) Replace dynamic map by an image tag and build your static Maps API Url with the values you grabbed in a