<div dir="ltr">Hm, the bbox is in 900913 and it seems acceptable. Any chance that your server is unable to fetch those images because of something blocking the connection?</div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-16 11:09 GMT+01:00 John, Steffen <span dir="ltr"><<a href="mailto:s.john@atenekom.eu" target="_blank">s.john@atenekom.eu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div>Hi,</div>
<div>Yes, this is waht i'm doing. I started debugging, and found out that tiles with really weired bounding box values are send to geonode.maps.views.map_<wbr>thumbnail.</div>
<div>but some of the tiles of wms_webatlas have correct bounding boxes. Also the bounding boxes of the geoserver-Wms are correct.</div>
<div><br>
</div>
<div>What may be the problem? I guess it has something to do with the layer definition..</div>
<div><br>
</div>
<div>Any further ideas?</div>
<div><br>
</div>
<div>This are the images sended to map_thumbnail():</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 268px; top: 36px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=626172.135625,6887893.491875,1252344.27125,7514065.6275&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=626172.135625,6887893.<wbr>491875,1252344.27125,7514065.<wbr>6275&WIDTH=256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 12px; top: 36px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=0,6887893.491875,626172.135625,7514065.6275&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=0,6887893.491875,626172.<wbr>135625,7514065.6275&WIDTH=256&<wbr>HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 268px; top: 292px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=626172.135625,6261721.35625,1252344.27125,6887893.491875&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=626172.135625,6261721.<wbr>35625,1252344.27125,6887893.<wbr>491875&WIDTH=256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 268px; top: -220px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=626172.135625,7514065.6275,1252344.27125,8140237.763125&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=626172.135625,7514065.<wbr>6275,1252344.27125,8140237.<wbr>763125&WIDTH=256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 524px; top: 36px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=1252344.27125,6887893.491875,1878516.406875,7514065.6275&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=1252344.27125,6887893.<wbr>491875,1878516.406875,7514065.<wbr>6275&WIDTH=256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 12px; top: 292px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=0,6261721.35625,626172.135625,6887893.491875&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=0,6261721.35625,626172.<wbr>135625,6887893.491875&WIDTH=<wbr>256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 12px; top: -220px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=0,7514065.6275,626172.135625,8140237.763125&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=0,7514065.6275,626172.<wbr>135625,8140237.763125&WIDTH=<wbr>256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 524px; top: 292px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=1252344.27125,6261721.35625,1878516.406875,6887893.491875&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=1252344.27125,6261721.<wbr>35625,1878516.406875,6887893.<wbr>491875&WIDTH=256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: 524px; top: -220px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=1252344.27125,7514065.6275,1878516.406875,8140237.763125&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=1252344.27125,7514065.<wbr>6275,1878516.406875,8140237.<wbr>763125&WIDTH=256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: -244px; top: 36px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-626172.135625,6887893.491875,0,7514065.6275&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=-626172.135625,6887893.<wbr>491875,0,7514065.6275&WIDTH=<wbr>256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: -244px; top: 292px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-626172.135625,6261721.35625,0,6887893.491875&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=-626172.135625,6261721.<wbr>35625,0,6887893.491875&WIDTH=<wbr>256&HEIGHT=256"></a>;</div>
<div><img class="olTileImage" style="visibility: inherit; opacity: 1; position: absolute; left: -244px; top: -220px; width: 256px; height: 256px;" src="<a href="https://sg.geodatenzentrum.de/wms_webatlasde_grau__UUID?LAYERS=webatlasde_grau&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-626172.135625,7514065.6275,0,8140237.763125&WIDTH=256&HEIGHT=256" target="_blank">https://sg.<wbr>geodatenzentrum.de/wms_<wbr>webatlasde_grau__UUID?LAYERS=<wbr>webatlasde_grau&FORMAT=image%<wbr>2Fpng&TILED=true&SERVICE=WMS&<wbr>VERSION=1.1.1&REQUEST=GetMap&<wbr>STYLES=&SRS=EPSG%3A900913&<wbr>BBOX=-626172.135625,7514065.<wbr>6275,0,8140237.763125&WIDTH=<wbr>256&HEIGHT=256"></a>;</div>
<div><br>
</div>
<div class="m_5962380921243209407-x-evo-paragraph m_5962380921243209407-x-evo-top-signature-spacer"><br>
</div>
<div>Am Donnerstag, den 16.03.2017, 10:21 +0100 schrieb Simone Dalmasso:</div>
<blockquote type="cite">
<div dir="ltr">Hi, are you saving the thumbnail through the set thumbnail button in map detail -> edit map?
<div>This is the only way to get the background rendered in the thumbnail</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-03-16 9:43 GMT+01:00 John, Steffen <span dir="ltr">
<<a href="mailto:s.john@atenekom.eu" target="_blank">s.john@atenekom.eu</a>></span>:<br>
<blockquote type="cite">Hi,<br>
I created custom map base layers, which are added to every newly<br>
created map. When saving this map, the thumbnail is created without the<br>
basemap on it.<br>
<br>
To define the basemaps, i added a gxp plugin, correspondingly to the<br>
BingSource, based on a WMS. May be I missed something? <br>
Do you have any idea, what I have done wrong?<br>
<br>
Thank you so much for your help.<br>
<br>
Here is the code:<br>
<br>
gxp.plugins.WebAtlasFarbeSourc<wbr>e = Ext.extend(gxp.plugins.LayerSo<wbr>urce, {<br>
<br>
    ptype: "gxp_webatlasfarbesource",<br>
<br>
    title: "WebAtlasDE Farbe",<br>
    <br>
    webAtlasFarbeTitle: "WebAtlasDEFarbe",<br>
    url: "<a href="https://sg.geodatenzentrum.de/wms_webatlasde__UUID" rel="noreferrer" target="_blank">https://sg.geodatenzentrum.de<wbr>/wms_webatlasde__UUID</a>",<br>
    attribution: "&copy; GeoBasis-DE / <b>BKG</b> ("+year+")",<br>
    createStore: function() {<br>
        <br>
        var layers = [<br>
             new OpenLayers.Layer.WMS(this.webA<wbr>tlasFarbeTitle,<br>
                              <wbr>     this.url,<br>
                              <wbr>     {layers: ["webatlasde"],<br>
                              <wbr>     format:"image/png",<br>
                              <wbr>     tiled: true<br>
                              <wbr>     },<br>
                              <wbr>     {<br>
                              <wbr>         attribution : this.attribution<br>
                              <wbr>     })<br>
<br>
        ];<br>
        <br>
        this.store = new GeoExt.data.LayerStore({<br>
            layers: layers,<br>
            fields: [<br>
                {name: "source", type: "string"},<br>
                {name: "name", type: "string", defaultValue:<br>
"webatlasdefarbe"},<br>
                {name: "abstract", type: "string", mapping:<br>
"attribution"},<br>
                {name: "group", type: "string", defaultValue:<br>
"background"},<br>
                {name: "fixed", type: "boolean", defaultValue: true},<br>
                {name: "selected", type: "boolean"}<br>
            ]<br>
        });<br>
        this.store.each(functi<wbr>on(l) {<br>
            l.set("group", "background");<br>
        });<br>
        this.fireEvent("ready"<wbr>, this);<br>
<br>
    },<br>
    <br>
    createLayerRecord: function(config) {<br>
        var record;<br>
        var index = this.store.findExact("name", <a href="http://config.name" rel="noreferrer" target="_blank">
config.name</a>);<br>
        if (index > -1) {<br>
<br>
            record =<br>
this.store.getAt(index).copy(<a href="http://Ext.data.Record.id" rel="noreferrer" target="_blank">E<wbr>xt.data.Record.id</a>({}));<br>
            var layer = record.getLayer().clone();<br>
 <br>
            // set layer title from config<br>
            if (config.title) {<br>
                /**<br>
                 * Because the layer title data is duplicated, we have<br>
                 * to set it in both places.  After records have been<br>
                 * added to the store, the store handles this<br>
                 * synchronization.<br>
                 */<br>
                layer.setName(<wbr>config.title);<br>
                record.set("ti<wbr>tle", config.title);<br>
            }<br>
<br>
            // set visibility from config<br>
            if ("visibility" in config) {<br>
                layer.visibili<wbr>ty = config.visibility;<br>
            }<br>
            <br>
            record.set("select<wbr>ed", config.selected || false);<br>
            record.set("source<wbr>", config.source);<br>
            record.set("name", <a href="http://config.name" rel="noreferrer" target="_blank">
config.name</a>);<br>
            if ("group" in config) {<br>
                record.set("gr<wbr>oup", config.group);<br>
            }<br>
<br>
            record.data.layer = layer;<br>
            record.commit();<br>
        }<br>
        return record;<br>
    }<br>
<br>
});<br>
<br>
Ext.preg(gxp.plugins.WebAtlasF<wbr>arbeSource.prototype.ptype,<br>
gxp.plugins.WebAtlasFarbeSourc<wbr>e);<br>
<br>
<br>
______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/geonode-users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all"><span class="HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div class="m_5962380921243209407gmail_signature" data-smartmail="gmail_signature">Simone </div>
</font></span></div>
</blockquote>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>