Hello! I'm stumped by this one, so I thought I'd ask the module experts.
I've created a views page that displays a list of nodes that a user has flagged. Each node has a location, and I've created an attachment that I use in conjunction with a custom tpl.php file to build a Static Google Map image. When I view the page, the Static Google Map image loads with markers as expected; when I email the page using this module, the image has markers as expected; when I view the page as a PDF, the markers do not load, but the map itself does.
The tpl.php file I'm using is:
<p><img src="http://maps.googleapis.com/maps/api/staticmap?center=39.859945414941905,-84.9957275390625&zoom=11&size=640x640&scale=2&maptype=roadmap<?php foreach ($rows as $id => $row): ?><?php print trim($row,"\r\n "); ?><?php endforeach; ?>&sensor=false" /></p>
It's seems that the PDF version doesn't process my views rows. To test that, I changed the template to just the URL, without loading the image, and it was processing the rows just fine, and the URL was accurate. So I was hoping for help determining if this is just a problem with my syntax in building the img tag, or if it's a bug with this module.
Thanks!
P.S. An example of the URL I'm building is: http://maps.googleapis.com/maps/api/staticmap?center=39.859945414941905,.... This is based on the example Google provides here: https://developers.google.com/maps/documentation/staticmaps/#quick_example
Comments
Comment #1
areikiera commentedGah! Should've wrapped that code in PHP instead of code. Admin, could you change if needed? Thanks!Comment #2
jcnventuraHi,
Which PDF lib are you using? TCPDF? I may need you to debug some of the code.. It seems you know enough that you created the tpl.php, so I need you to check the value of the img URL in the HTML that is finally passed to the PDF lib.
The code tries to circumvent some of the image handling problems in the libs, and this may be happening here.
Comment #3
jcnventuraNo further info in more than two weeks. Closing the issue.