Hybrid View

  1. #1
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Answers
    1
    Vote Rating
    0
    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
    Gainesville, FL
    Posts
    36,812
    Answers
    3468
    Vote Rating
    836
    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


    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
    ________________
    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
    162
    Answers
    1
    Vote Rating
    0
    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
    Gainesville, FL
    Posts
    36,812
    Answers
    3468
    Vote Rating
    836
    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


    If the map has a parent, does the parent have a layout?
    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.

  5. #5
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Answers
    1
    Vote Rating
    0
    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
    Gainesville, FL
    Posts
    36,812
    Answers
    3468
    Vote Rating
    836
    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  
    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.

Thread Participants: 1

Tags for this Thread