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

      0  

    Default Unanswered: Ext.Map problem

    Unanswered: Ext.Map problem


    Hi to all, I've this map:
    Code:
    Ext.define('geomobi.view.GeoMap', {
        extend: 'Ext.Map',
        alias: 'widget.geomap',
        config: {
        	title: '',
        	iconCls: 'maps',
    		id: 'mappa',
    	    listeners: {
    		    initialize: function(comp, opts){
    		    	comp.setMapOptions({
    	        		zoom: 10,
    	        		streetViewControl:  false, 
    	        		center: new google.maps.LatLng(lat, lng),
    	        		mapTypeControl: ((Ext.os.is.iOS) ? true : false ),
    	        		mapTypeControlOptions: {
    	        			style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
    	        		},
    	        		navigationControl: true,
    	        		navigationControlOptions: {
    	        			style: google.maps.NavigationControlStyle.DEFAULT
    	        		},
    	        		mapTypeId: google.maps.MapTypeId.ROADMAP
    	    		});
         		},
    
    
        	}
    
    
        },
    
    
        initialize: function() {
            this.callParent(arguments);
        }
    }
    With sencha 2.0.1.1 all works fine but with 2.0.2 or 2.1beta3 all tiles of map are gray without errors.
    Where is the problem?

    Stefano

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Using just that code and creating it using this:

    Code:
    new geomobi.view.GeoMap({
        fullscreen : true
    });
    On an iPhone it displays the tiles as expected for me using 2.1.0 b1
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  3. #3
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    156
    Vote Rating
    0
    Answers
    1
    stefx is on a distinguished road

      0  

    Default


    Hi Mitchel, I need to define the map as illustrated. The fullscreen is on my viewport... The problems still remain..

    Thanks
    stefano

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    If the map has a parent, does the parent have a layout?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

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

      0  

    Exclamation


    Mitchel, I test a map into a new project. Add the sdk and resources folders into directory and verify the same issue.
    thanks
    Stefano

    Attached Files

  6. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

Tags for this Thread