Generate PDF on the server from Google Maps API?
问题 We have a hosted web app that uses the Google Maps API for various types of geographical reports, using a combination of the javascript API for adding markers and shapes, plus KML overlays for other layers. There's some demand from customers for turning these into nice downloadable & printable PDF maps. I'm not sure where to begin with that. Any ideas? 回答1: As Mark Storer pointed out, you can use wkhtmltopdf. If you have polylines or other stuff in your map you will likely need wkhtmltopdf to