I need to generate PDF documents server-side that include a map, with markers and the like, but to my knowledge this isn't possible with Google Maps because of JavaScript reliance.
Is there some way to use the Google Maps API for this, or is there some other free (or cheap) alternative with this capability and comparable functionality?
what you can do is to use google maps static api to generate an image: http://code.google.com/apis/maps/documentation/staticmaps/
and then import that image into pdf.
Extension to dusoft's answer. You can load the image with Imagick and
$im = new Imagick("image.jpg");
$im->setImageFormat("pdf");
$im->writeImage("image.pdf");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With