1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    2
    Vote Rating
    0
    senchabeginner is on a distinguished road

      0  

    Default mapRender problem

    mapRender problem


    Hi, I am beginner in sencha touch. My problem is the lat and long value will keep remain the same after i refresh my page. Eventhough I have manage to pass in with the new value for long and lat. Sorry , if my english is bad .
    This is my code

    Code:
      initialize: function() {
            var dat = this.config.record;
            var Lat = dat.data.Lat;
            var Long = dat.data.Long;
    
                var position = new google.maps.LatLng(dat.data.Lat,dat.data.Long),
                map, marker,markerNew,Newmap;
    
                map = this.add({
                        xtype: 'map',
                        mapOptions: {
                        center: position,
                        mapTypeId: google.maps.MapTypeId.ROADMAP
                        },
    
            listeners: {
                maprender: function(extMapComponent, map){
                map = extMapComponent.getMap();
                marker = new google.maps.Marker({
                position: position,
                map: map
            });
      var Newposition = new google.maps.LatLng(Lat,Long);
    
            if(marker){
                marker.setMap(null);
                Newmap = extMapComponent.getMap();
                markerNew = new google.maps.Marker({
                position: position,
                map: Newmap
            });
    
            }
                }
               }
              });
        }

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,634
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    Moved to touch 2 forums

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar