// Apre una finestra contenente una cartina
function showListingMap(listing_id)
{
    var listing = userListingsStore.getById(listing_id).data;
    //dumpProps(listing);

    var win = new Ext.Window({
        id: 'listing_window',
        title: listing.titolo,
        layout: 'fit',
        width: 500,
        height: 500,
        constrain: true,
        closable: true,
        modal: true,
        plain: true,
        items: [
            {
                xtype: 'gmappanel',
                zoomLevel: 16,
                gmapType: 'map',
                id: 'listing_map',
                border: true,
                mapConfOpts: [
                    'enableScrollWheelZoom',
                    'enableDoubleClickZoom',
                    'enableDragging'
                ],
                mapControls: [
                    'GSmallMapControl',
                    'GMapTypeControl'
                ],
                setCenter: {
                    geoCodeAddr: listing.indirizzo + ', ' + listing.comune + ', Marche, Italy',
                    marker: {title: listing.titolo}
                }
            }
        ]
    });

    win.show();
}
