Hi again, it is the default MapFish config file, goes below. Thanks,
Luís #=========================================================================== # allowed DPIs #=========================================================================== dpis: - 254 - 190 - 127 - 56 #=========================================================================== # allowed Formats #=========================================================================== # '*' means any formats formats: ['*'] #=========================================================================== # the allowed scales #=========================================================================== scales: - 25000 - 50000 - 100000 - 200000 - 500000 - 1000000 - 2000000 - 4000000 - 8000000 - 16000000 - 32000000 - 64000000 #=========================================================================== # the list of allowed hosts #=========================================================================== hosts: - !localMatch dummy: true - !ipMatch ip: www.camptocamp.org - !dnsMatch host: labs.metacarta.com port: 80 - !dnsMatch host: demo.mapfish.org port: 80 # the default fileName for the files downloaded from the servlet outputFilename: MapFish_PrintOut On 3 July 2013 17:18, Alexandre Dubé <ad...@mapgears.com> wrote: > Hi Luís, > > What does your json config look like ? > > Alexandre > > > > On 13-07-03 11:15 AM, Luís de Sousa wrote: > > Hi Alexandre, thank you for replying. > > Basically the calculatePageBounds function is being invoked with the > arguments [undefined, "m"] (line 148 in PrintPage.js). This function is not > checking if the scale argument is valid, immediately applying the get > method on it, thus producing an exception. > > There might be a reason for the scale argument to be undefined, but with > this exception it is not clear what it may be. > > Thank you, > > Luís > > > On 2 July 2013 14:19, Alexandre Dubé <ad...@mapgears.com> wrote: > >> Hi, >> >> Try putting a break point in Firebug on that line and look at what is >> going on. Look at where this scale variable is supposed to be >> instantiated. It should normally come from the json print param returned >> by your print service. >> >> HTH, >> >> Alexandre >> >> >> >> On 13-07-01 05:39 AM, Luís de Sousa wrote: >> >> Hello again, another developer told me that the PrintProvider project >> has issues with the GET method. I changed it to POST but I'm still the >> error at the same place in PrintPage.js. >> >> Any insights are welcome. Thank you, >> >> Luís >> >> >> On 25 June 2013 11:23, Luís de Sousa <luis.a.de.so...@gmail.com> wrote: >> >>> Hello everyone, >>> >>> I'm trying to create some basic print functionality with the code >>> below. Whenever the printView is called the fit function is returning back >>> the error in the subject. This is what I get with Firebug: >>> >>> TypeError: scale is undefined >>> >>> var s = scale.get("value"); >>> >>> PrintPage.js (line 298) >>> >>> >>> Is this a bug or a misconfiguration of some sorts? Thank you, >>> >>> Luís >>> >>> >>> //////////////////////////////////////////////////////////////////////////////////////////////////////// >>> >>> printProvider = new GeoExt.data.PrintProvider({ >>> url: "http://localhost:8080/print2.0", >>> method: "GET", >>> customParams: { >>> mapTitle: "Printing Demo", >>> comment: "This is a simple map printed from GeoExt." >>> } >>> }); >>> >>> printPage = new GeoExt.data.PrintPage({ >>> printProvider: printProvider >>> }); >>> >>> printView = function() { >>> printPage.fit(mapPanel, true); >>> printProvider.print(mapPanel, printPage, mainView.items[2]); >>> }; >>> >> >> >> >> _______________________________________________ >> Users mailing >> listUsers@geoext.orghttp://www.geoext.org/cgi-bin/mailman/listinfo/users >> >> >> >> -- >> Alexandre Dubé >> Mapgearswww.mapgears.com >> >> >> _______________________________________________ >> Users mailing list >> Users@geoext.org >> http://www.geoext.org/cgi-bin/mailman/listinfo/users >> >> > > > -- > Alexandre Dubé > Mapgearswww.mapgears.com > >
_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users