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,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Moved to touch 2 forums

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi