I'm building a mapping application using the Leaflet API http://leafletjs.com/.
I would like to use phantomjs to generate static screenshots of maps.
As an example, attempting to render this page:
http://leafletjs.com/examples/geojson-example.html
using
phantomjs examples/rasterize.js http://leafletjs.com/examples/geojson-example.html test.png
results in an image that's missing the SVG overlay. I have tried this using the prebuilt binaries under Windows 7 and Fedora Core 15. In addition, I compiled it from source under Fedora Core 15. All builds on both platforms yielded the same behavior.
Has anyone had success rendering Leaflet maps to PNG using phantomjs?
thanks.