1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    León, Spain
    Posts
    77
    Vote Rating
    3
    diesalher is on a distinguished road

      0  

    Default Map example?

    Map example?


    hi, is there any working map example for Sencha Touch 2 ?


    I'm having issues with thye rendering of a simple map without overlays or anythisnk, and i'm sure there must be an example out there.

    Thanks!

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    León, Spain
    Posts
    77
    Vote Rating
    3
    diesalher is on a distinguished road

      0  

    Default


    The problem starts when i have a tabpanel...

    Here is my code. Anyone can tell me whats happening here with the map?

    Thanks!

    SkeletonPhonegap2.zip

  3. #3
    Ext JS Premium Member Brendan Carroll's Avatar
    Join Date
    May 2007
    Location
    Balmer, MD.
    Posts
    139
    Vote Rating
    1
    Brendan Carroll is on a distinguished road

      0  

    Default


    Have you looked at the examples, searched the forums? The examples are the first place you should go. There are, however, some issues with the map class at present but it sounds as though they've been resolved at PR3. We'll see when it drop....THIS WEEK.
    -BC ...

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Location
    León, Spain
    Posts
    77
    Vote Rating
    3
    diesalher is on a distinguished road

      0  

    Default


    Quote Originally Posted by Brendan Carroll View Post
    Have you looked at the examples, searched the forums? The examples are the first place you should go. There are, however, some issues with the map class at present but it sounds as though they've been resolved at PR3. We'll see when it drop....THIS WEEK.
    Yes, i've seen the examples (the map example works, but is too simple and i cannot reproduce the behaviour in a tabpanel ) , i've been looking the forums (sencha touch 2, sencha touch 1, ext js,..), but the few threads that i have found with this issue are a bit old and didnt help me much.

    I know pr3 is this week and i'm waiting for it.

    I just supossed that there must be people with working map examples.

  5. #5
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    There will be a map example in the next release.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    vdubinsky is on a distinguished road

      0  

    Default


    I can confirm the problem OP identified. The problem seems to be related to TabPanel. This is easily reproduced by taking the 'map' example that Sencha Touch ships with and replacing the Ext.Panel container with Ext.TabPanel container and inserting just one panel with the same code that the 'map' example ships with. Result, map stops working. Commented out code works, the replacement code doesn't (sencha-touch-2.0.0-pr3).

    Code:
            //Ext.create('Ext.Panel', {
            //    fullscreen: true,
            //    layout: 'fit',
            //    items: [toolbar, mapdemo]
            //});
            Ext.create('Ext.TabPanel', {
                fullscreen: true,
                tabBarPosition: 'bottom',
                
                items: [
                    {
                        title: 'Home',
                        iconCls: 'home',
                        items: [toolbar, mapdemo]
    
    
                    }
                ]
            });

  7. #7
    Sencha User
    Join Date
    Nov 2011
    Location
    León, Spain
    Posts
    77
    Vote Rating
    3
    diesalher is on a distinguished road

      0  

    Default


    This issue seems fixed in PR3

    Thanks!

  8. #8
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    vdubinsky is on a distinguished road

      0  

    Default


    Really? Well it's not working for me with the code I pasted above where the only change I made to the Sencha map example is replace the Panel with TabPanel as the hosting component. And I'm using 2.0.0 pr3.

  9. #9
    Sencha User
    Join Date
    Nov 2011
    Location
    León, Spain
    Posts
    77
    Vote Rating
    3
    diesalher is on a distinguished road

      0  

    Default


    works for me...

    Here is my test app with a working map in a tabpanel

    SkeletonApp_pr3.zip

  10. #10
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    vdubinsky is on a distinguished road

      0  

    Default


    Quote Originally Posted by diesalher View Post
    works for me...

    Here is my test app with a working map in a tabpanel
    Indeed your app works. Thanks for providing it. Although it looks simple, your app is structured very differently from mine and I need to learn more Ext JS to fully understand it. I suspect that it's something simple I'm doing wrong. Thanks for assistance.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."