<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 class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<wbr>WebAtlasFarbeSource = Ext.extend(gxp.plugins.<wbr>LayerSource, {<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.<wbr>de/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.<wbr>webAtlasFarbeTitle,<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(<wbr>function(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("<wbr>title", config.title);<br>
            }<br>
<br>
            // set visibility from config<br>
            if ("visibility" in config) {<br>
                layer.<wbr>visibility = config.visibility;<br>
            }<br>
            <br>
            record.set("<wbr>selected", config.selected || false);<br>
            record.set("<wbr>source", 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("<wbr>group", 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.<wbr>WebAtlasFarbeSource.prototype.<wbr>ptype,<br>
gxp.plugins.<wbr>WebAtlasFarbeSource);<br>
<br>
<br>
______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">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/<wbr>mailman/listinfo/geonode-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>