Hi,

the problem is that you are accessing a private member from a other 
class. This is not allowed and only works with the source version. The 
build version renames private members, due to you can't access them. 
Just make your members public when you need to access them:
__map -> map

Cheers,
Chris

Am 26.04.2011 17:23, schrieb arsousa:
> Hi everyone,
>
> I've been developing an application which integrate with OpenLayers and
> everything works fine since I run it from the source.
> I executed the build process with no errors or warnings (because I #ignore
> de OpenLayers classes).
> When run it from build environment the map appear, but it errors when
> Qooxdoo buttons execute  an OpenLayers control like zoom in, zoom out or
> pan. Raise an error saying that class map is undefined. This works perfectly
> running from source.
> Should I have to include or do something more in build process?
>
> Sample Code
>
> ***** Constructor of class map - Integration with OpenLayers *****
>
>      ,construct: function() {
>
>         this.base( arguments );
>
>         var wdg = new qx.ui.core.Widget();
>
>          this.setWidget(wdg);
>          this.__map = null;
>          this.__zboxin = null;
>
>          (...)
>               
>          wdg.addListener("appear", function(e) {
>          if( this.__map == null ) {
>
>           var wdom = this.getWidget().getContentElement().getDomElement();
>               
>               this.__map = new OpenLayers.Map(wdom, mapOptions);
>               
>               (...)
>               
>               this.__zboxin = new OpenLayers.Control.ZoomBox();
>          this.__map.addControl(self.__zboxin);
>               
>               }
>               
>               }
>       }
>
>
> **** Integrate Qooxdoo Button with OpenLayers map control *****
>
> var btzoomAll = new qx.ui.toolbar.Button();
>       btzoomAll.addListener("execute", function(e) {
>                  classmap.__map.zoomToMaxExtent();
>       }, this);
>
>
> Thanks for your help,
>
> Ana Rita Sousa
>
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Intregation-with-OpenLayers-problem-running-from-build-tp6306242p6306242.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to