You found a bug! We've classified it as TOUCH-4258 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Exclamation Ext.Map can't customize

    Ext.Map can't customize


    Hi, I've a strange behavior with Sencha Touch 2.1.1 and Sencha Cmd v3.1.1.270.

    I've create an empty application and edit the app.js launch method like this:
    Code:
            Ext.Viewport.add(Ext.create('Ext.Map'),{
                mapOptions : {
                    center: new google.maps.LatLng(43.768732,11.256901),
                    zoom: 16
                }
            });
    The Ext.Map ignore the mapOptions and center the map on Los Altos (near Mountain View)...

    Thanks a lot
    Stefano

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    You have an error in your parenthesis:

    Code:
                        Ext.Viewport.add(Ext.create('Ext.Map', {
                            mapOptions : {
                                center: new google.maps.LatLng(43.768732,11.256901),
                                zoom: 16
                            }
                        }));
    This is much easier to read this way:

    Code:
                        Ext.Viewport.add({
                            xtype: 'map',
                            mapOptions : {
                                center: new google.maps.LatLng(43.768732,11.256901),
                                zoom: 16
                            }
                        }));

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Default


    ahh I'm stupid! Thanks, this is correct:

    Code:
            
    Ext.Viewport.add({
       xtype: 'map',
       mapOptions : {
          center: new google.maps.LatLng(43.768732,11.256901),
          zoom: 16
       }
    });
    I'm sorry...

  5. #5
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Default


    The problem still remain using sencha app build (testing|production|package).
    Without build works correctly, after building no.

    Thanks
    Stefano

  6. #6
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Default


    Anyone?

    Stefano

  7. #7
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Default


    Hi Mitchell, is most important for me fix this problem... Any workaround?
    thanks

    Stefano

  8. #8
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This bug report is marked as OPEN still so has not been marked as fixed or anything.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  9. #9
    Ext JS Premium Member
    Join Date
    Apr 2009
    Location
    Brasil
    Posts
    20
    Vote Rating
    0
    benyhapper is on a distinguished road

      0  

    Default


    I'm have the same problem

  10. #10
    Ext JS Premium Member
    Join Date
    Apr 2009
    Location
    Brasil
    Posts
    20
    Vote Rating
    0
    benyhapper is on a distinguished road

      0  

    Default


    Which version works Maps on Android devices?, I tested several versions 2.x and no work

Thread Participants: 3

Tags for this Thread