How to add print option in Google Maps API?

Asked

Viewed 194 times

1

I recently developed a script that generates routes from the markings in the google maps API, I would like to add the option to print that route, ie the map. I noticed that on the official Google Maps site you have the option to print and it generates a fixed image to be printed, not the map "manipulable".

Any idea that is different but with the same end result will be welcome and of great help.

From now on, thank you!

  • What do you mean, you want to "manipulate" the image in the print view? Put your code, so we understand better what you need.

  • Actually I don’t need to manipulate, I just want to generate an image from the result returned by the map, to print. Or an API button itself that does this, but I don’t know. Anyway, I need to print the map, already tried Ctrl + P, but cut, so turning into image would be possible to resize to fit on the page. Thank you.

  • Good morning, follow a link that helped me do what you want to do, it will teach you to pick up the map and create a ready-to-print unmanageable image https://fazcertoquefunciona.wordpress.com/2013/01/09/html5-geolocalizacao/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.