Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    May 2013
    Location
    Rome Italy
    Posts
    17
    Vote Rating
    1
    r.colagrande is on a distinguished road

      0  

    Default mapOptions wrong save

    mapOptions wrong save


    Architect Build tested:


    Version: 2.2.2


    Build: 991


    Project Type:
    Touch 2.2.x


    Description:
    I set "center" parameter into mapOptions for a Ext.Map item and I get a crashing error because
    it saves in a wrong manner.


    Steps to reproduce the problem:
    Create a new Touch 2.2.x project
    Add a tabpanel
    Drag a panel and drop onto the map
    Set the mapOptions of map item
    mapOptions - object
    {
    center: new google.maps.LatLng(41.87314,12.585648)
    }


    The result that was expected:
    This should have worked and the map should be centered with input coordinates


    The view "app/view/MyTabPanel.js" should be saved with a blank between new and google.maps as follows:
    mapOptions - object
    {
    center: new google.maps.LatLng(41.87314,12.585648)
    }
    The result that occurs instead:
    The view is saved without blank as follows:
    Ext.define('MyApp.view.MyTabPanel', {
    extend: 'Ext.tab.Panel',


    config: {
    items: [
    {
    xtype: 'container',
    title: 'Tab 1'
    },
    {
    xtype: 'container',
    title: 'Tab 2'
    },
    {
    xtype: 'container',
    title: 'Tab 3'
    },
    {
    xtype: 'map',
    mapOptions: {
    center: newgoogle.maps.LatLng(41.87314,
    12.585648)
    }
    }
    ]
    }


    });
    Exception occurs:
    Uncaught ReferenceError: newgoogle is not defined in "app/view/MyTabPanel.js" class


    HELPFUL INFORMATION


    Screenshot, Project, or Video:
    attached an XDA with this simple use case


    Possible fix:
    You can modify the file "app/view/MyTabPanel.js" after deployment, but when I return to Architect and save it again the file is created in the same wrong way.


    Operating System:
    Windows 7 64 bit

    Best regards
    Raimondo Colagrande
    Attached Files

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Jan 2009
    Location
    Frederick, Maryland
    Posts
    922
    Vote Rating
    32
    jminnick has a spectacular aura about jminnick has a spectacular aura about

      0  
    Jason Minnick
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member
    Join Date
    May 2013
    Location
    Rome Italy
    Posts
    17
    Vote Rating
    1
    r.colagrande is on a distinguished road

      0  

    Default OK

    OK


    Thanks. It works.

Thread Participants: 1