[OpenLayers-Users] Mapfish and GeoExt PrintProvider issue

Bart van den Eijnden bartvde at boundlessgeo.com
Tue Dec 17 00:02:10 PST 2013


This question has nothing to do with OpenLayers.

I’d suggesting using the GeoExt list instead.

Best regards,
Bart

--
Bart van den Eijnden
Front-end Developer | Boundless
@boundlessgeo

On 17 Dec 2013, at 04:47, Brad Bordine <b.bordine at decapower.org> wrote:

> I am trying to make a Ext grid object print out via mapfish print and am unclear how to send the "grids" parameter through the spec. There is an example of a user sending the grids parameter to the Mapfish "print widget (http://web.archiveorange.com/archive/v/0qLmXVvRWkxmMKrmM5kL) however no one mentions how to do that using the print.provider GeoExt widget, which seems to be the object communicating with the server Mapfish widget. We are aware of the need for configuring the YAML but at the moment are trying to figure out how to get the right spec. Relevant snippets are below
> 
>       avoidedgrid = new Ext.grid.GridPanel({
>            title: "Total Avoided Costs for 1MW at Specified Location",
>            id: 'gridpanel',
>            renderTo: "gridoutput",
>            height:75,
>            width:365,
>            collapsible: true,
>            iconCls: 'icon-grid',
>            ds: ds,
>            cm: colModel
>        });
> 
> var printProvider = new GeoExt.data.PrintProvider({
>        method: "POST", // "POST" recommended for production use
>        layout: ('Letter'),
>        capabilities: printCapabilities, // from the info.json script in the html
>        customParams: {
>            mapTitle: "DECA Map",
>            dpi: 300,
>            grids: [avoidedgrid]
>        }
>    });
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131217/9255eeb7/attachment.html>


More information about the Users mailing list