[GeoNode-devel] generation of layer's thumbnail with a custom base map (Paolo Corti)

Toni Schönbuchner toni.schoenbuchner at csgis.de
Sat Feb 23 12:38:34 PST 2019

Dear Paolo,

some time ago I´ve been in a similar situation trying to debug thumbnails with leaflet.
Unfortuantely I could not find docs for printing execept:

https://docs.geoserver.org/stable/en/user/extensions/printing/configuration.html <https://docs.geoserver.org/stable/en/user/extensions/printing/configuration.html>

However what helped me was a to double check that cleaned markup has everything we need:
https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/utils/thumbnail.js#L17 <https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/utils/thumbnail.js#L17>

I did this by just testing the code in browser console and adding the cloned map to the body. 
Then to work a bit faster I´ve used https://www.getpostman.com/ <https://www.getpostman.com/> to send the generated markup to the printing endpoint.

If I remember correctly I´ve faced an issue with thumbnail.js deleting to much and some SSL mixed
content blocking.

Not much, but hopefully a start.



> Message: 1
> Date: Fri, 22 Feb 2019 17:35:04 -0500
> From: Paolo Corti <pcorti at gmail.com>
> To: geonode-devel <geonode-devel at lists.osgeo.org>
> Subject: [GeoNode-devel] generation of layer's thumbnail with a custom
> 	base	map
> Message-ID:
> 	<CAHXrU-KOd-v4aivGgvz3O9c0Sv-qmSmW=4gLT1QKTH5Mgidbfg at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> Hi GeoNode developers
> We have the following problem: in one of our instances we are using
> some custom basemaps. When using the "Set Thumbnail" feature from
> layer page using one of this custom base maps, the thumbnail is
> created but only the layer is rendered, in a white background.
> Debugging the code, it looks like the thumbnail is generated by
> sending a post request to geoserver/rest/printng (in the
> geoserver/helpers.py/_render_thumbnail).
> Where can I find some documentation about this printng GeoServer endpoint?
> Thanks
> Paolo
> -- 
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
> ------------------------------
> Subject: Digest Footer
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
> ------------------------------
> End of geonode-devel Digest, Vol 49, Issue 22
> *********************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190223/65086948/attachment.html>

More information about the geonode-devel mailing list