aratcliffe / Leaflet.print

Plugin for printing a Leaflet map using either Mapfish or the GeoServer print module.
114 stars 40 forks source link

Cannot print Leaflet Cluster Map Icons, L.geoJsonpolygon layer, Div Icon #4

Closed riostevenson closed 10 years ago

riostevenson commented 10 years ago

Cannot print Leaflet Cluster Map Icons, L.geoJsonpolygon layer, Div Icon

When attempting to print I get the following error on the div icon specifically when I click print when a div is on screen:

Uncaught TypeError: Cannot read property 'x' of null leaflet.print-src.js:371 L.print.Provider.L.Class.extend._encoders.layers.vector leaflet.print-src.js:371 L.print.Provider.L.Class.extend._encodeLayers leaflet.print-src.js:263 L.print.Provider.L.Class.extend.print leaflet.print-src.js:96 L.Control.Print.L.Control.extend.onActionClick leaflet.print-src.js:702 t.(anonymous function).s

aratcliffe commented 10 years ago

I haven't tested either of those layer types. Unfortunately I don't have the time to work on adding support for them at this time but would welcome any improvements to the code.

riostevenson commented 10 years ago

Awe thanks this is a great library.... unfortunately I'm not really a JavaScript guy my background lies in C# .NET but because of recent project requirements I'm having to pick up some. If I can figure out anything I would definetely contribute.