Results 1 to 6 of 6

Thread: Ext.Map problem

  1. #1
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    166
    Answers
    1
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,415
    Answers
    3899
    Vote Rating
    1269
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

  3. #3
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    166
    Answers
    1
    Vote Rating
    0
      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,415
    Answers
    3899
    Vote Rating
    1269
      0  

    Default

    If the map has a parent, does the parent have a layout?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

  5. #5
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    166
    Answers
    1
    Vote Rating
    0
      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 Attached Files

  6. #6
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,415
    Answers
    3899
    Vote Rating
    1269
      0  
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •