[Users] Geoext - Print Error
adams
adams at terrestris.de
Fri Aug 6 11:50:08 CEST 2010
Andreas,
thanks for the hint .... unfortunately updating to trunk didn't help. So
I'll try your first suggestion now.
BTW - when building the lib out from svn-checkout, I also stopped at
this point:
http://www.geoext.org/pipermail/dev/2010-March/000626.html
As there is no real working fix for that thread, this is the way it
worked for me:
I simply replaced the "-j" at line 50 in the Makefile by "-s" and the
build process worked:
jsbuild full.cfg -v -o $(LIB_NAME)/script/ -s GeoExt.js
regards, Till
Andreas Hocevar wrote:
> Hi Till,
>
> the example you were looking at is from current trunk, and there were some changes since 0.7. You either have to base your code on the example found in the 0.7 release, or use GeoExt trunk. I would suggest the latter, because printing has been improved since 0.7.
>
> Regards,
> Andreas.
>
> On Aug 6, 2010, at 10:51 , adams wrote:
>
>
>> Dear list,
>>
>> we implemented the print-panel (geoext 0.7) as follows:
>>
>> var printProvider = new GeoExt.data.PrintProvider({
>> method: "GET", // "POST" recommended for production use
>> capabilities: printCapabilities // from the info.json script in
>> the html
>> });
>>
>> printPage = new GeoExt.data.PrintPage({
>> printProvider: printProvider,
>> customParams: {
>> mapTitle: "Geoext is cool!"
>> }
>> });
>>
>> printExtent = new GeoExt.plugins.PrintExtent({
>> showOnInit: false,
>> printProvider: printProvider
>> });
>>
>> and further down:
>>
>> mapPanel = new GeoExt.MapPanel({
>> ...
>> plugins: [printExtent],
>> ....
>>
>> This was derived from the examples "print-extent" and "print-form". When
>> opening the print panel in our client, I get an error "page.center is
>> null [center: page.center.lon, page.center.lat]" .
>>
>> Comparing our stuff with the example, I see, that in the form-example a
>> method is called:
>>
>> printExtent.addPage();
>>
>> doing this another error comes up: "printExtent.addPage is not a function"
>>
>>
>> Any hint will make me happy and let me pay a drink in Barcelona... ;-)
>>
>> Regards, Till
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
>
--
---------------------------------------------------------
terrestris GmbH & Co. KG
Irmintrudisstrasse 17
53111 Bonn
Germany
Till Adams
Geschäftsführung
Tel: +49 (0)228 / 962 899-52
Fax: +49 (0)228 / 962 899-57
adams at terrestris.de http://www.terrestris.de
Amtsgericht Bonn, HRA 6835
---------------------------------------------------------
Komplementärin:
terrestris Verwaltungs GmbH
vertreten durch:
Hinrich Paulsen, Till Adams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100806/7cfe21b6/attachment.htm
More information about the Users
mailing list