<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Paolo,<div class=""><br class=""></div><div class="">some time ago I´ve been in a similar situation trying to debug thumbnails with leaflet.</div><div class="">Unfortuantely I could not find docs for printing execept:</div><div class=""><br class=""></div><div class=""><a href="https://docs.geoserver.org/latest/en/user/extensions/printing/index.html" class="">https://docs.geoserver.org/latest/en/user/extensions/printing/index.html</a></div><div class=""><a href="https://docs.geoserver.org/stable/en/user/extensions/printing/configuration.html" class="">https://docs.geoserver.org/stable/en/user/extensions/printing/configuration.html</a></div><div class=""><br class=""></div><div class="">However what helped me was a to double check that cleaned markup has everything we need:</div><div class=""><a href="https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/utils/thumbnail.js#L17" class="">https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/utils/thumbnail.js#L17</a></div><div class=""><br class=""></div><div class="">I did this by just testing the code in browser console and adding the cloned map to the body. </div><div class="">Then to work a bit faster I´ve used <a href="https://www.getpostman.com/" class="">https://www.getpostman.com/</a> to send the generated markup to the printing endpoint.</div><div class=""><br class=""></div><div class="">If I remember correctly I´ve faced an issue with thumbnail.js deleting to much and some SSL mixed</div><div class="">content blocking.</div><div class=""><br class=""></div><div class="">Not much, but hopefully a start.</div><div class=""><br class=""></div><div class="">cheers,</div><div class=""><br class=""></div><div class="">Toni</div><div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class=""><div class="">Message: 1<br class="">Date: Fri, 22 Feb 2019 17:35:04 -0500<br class="">From: Paolo Corti <<a href="mailto:pcorti@gmail.com" class="">pcorti@gmail.com</a>><br class="">To: geonode-devel <<a href="mailto:geonode-devel@lists.osgeo.org" class="">geonode-devel@lists.osgeo.org</a>><br class="">Subject: [GeoNode-devel] generation of layer's thumbnail with a custom<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>base<span class="Apple-tab-span" style="white-space:pre"> </span>map<br class="">Message-ID:<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span><<a href="mailto:CAHXrU-KOd-v4aivGgvz3O9c0Sv-qmSmW=4gLT1QKTH5Mgidbfg@mail.gmail.com" class="">CAHXrU-KOd-v4aivGgvz3O9c0Sv-qmSmW=4gLT1QKTH5Mgidbfg@mail.gmail.com</a>><br class="">Content-Type: text/plain; charset="UTF-8"<br class=""><br class="">Hi GeoNode developers<br class=""><br class="">We have the following problem: in one of our instances we are using<br class="">some custom basemaps. When using the "Set Thumbnail" feature from<br class="">layer page using one of this custom base maps, the thumbnail is<br class="">created but only the layer is rendered, in a white background.<br class="">Debugging the code, it looks like the thumbnail is generated by<br class="">sending a post request to geoserver/rest/printng (in the<br class="">geoserver/helpers.py/_render_thumbnail).<br class="">Where can I find some documentation about this printng GeoServer endpoint?<br class=""><br class="">Thanks<br class="">Paolo<br class=""><br class="">-- <br class="">Paolo Corti<br class="">Geospatial software developer<br class="">web: <a href="http://www.paolocorti.net" class="">http://www.paolocorti.net</a><br class="">twitter: @capooti<br class="">skype: capooti<br class=""><br class=""><br class="">------------------------------<br class=""><br class="">Subject: Digest Footer<br class=""><br class="">_______________________________________________<br class="">geonode-devel mailing list<br class=""><a href="mailto:geonode-devel@lists.osgeo.org" class="">geonode-devel@lists.osgeo.org</a><br class="">https://lists.osgeo.org/mailman/listinfo/geonode-devel<br class=""><br class=""><br class="">------------------------------<br class=""><br class="">End of geonode-devel Digest, Vol 49, Issue 22<br class="">*********************************************<br class=""></div></div></blockquote></div><br class=""></div></body></html>