{% include "geonode/ext_header.html" %}
{% include "geonode/app_header.html" %}
{% include "geonode/geo_header.html" %}
<script type="text/javascript">
var app;
Ext.onReady(function() {
{% autoescape off %}
    GeoExt.Lang.set("{{ LANGUAGE_CODE }}");
    var config = Ext.apply({
        tools: [{
            ptype: "gxp_wmsgetfeatureinfo",
            format: "grid",
            actionTarget: "main.tbar",
            outputConfig: {width: 400, height: 200, panIn: false}
        }],
        useToolbar: true,
        {% if PROXY_URL %}
        proxy: '{{ PROXY_URL }}',
        {% endif %}
        printService: "",
        rest: "/maps/",

        // tell the map viewer where and how to be rendered
        portalConfig: {
            height: 400,
            renderTo: "the_map"
        }
    }, {{ config }});
app = new GeoExplorer.Viewer(config);
{% endautoescape %}
});
</script>
