Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    9
    Vote Rating
    0
    prakseb is on a distinguished road

      0  

    Default Unanswered: Polylines in Sencha Touch

    Unanswered: Polylines in Sencha Touch


    Hallo,

    I have a probelm with adding latitude and longitude to a array and then to draw a polyline with these entries.

    My code:
    Code:
    var lat = geo.getLatitude();var longt = geo.getLongitude();
    
    
    route.push( new google.maps.LatLng( lat +', ' + longt ) );
    alert(route);
    //marker.setPosition(lat + ', ' + longt);
    
    
    if (polyline) {
    		polyline.setMap(null);
    }
    
    
    polyline = new google.maps.Polyline({
    	path : route,
    	strokeColor: "red",
    	strokeOpacity: 1.0,
    	strokeWeight: 5
    });
    polyline.setMap(map),
    In the alert I get the parameters (NaN, NaN) instead of (41.234153, 16.4354356)

    Can somebody help me?

    Thanks
    Sebastian

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    9
    Vote Rating
    0
    prakseb is on a distinguished road

      0  

    Default


    Nobody has an idea?

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2011
    Posts
    75
    Answers
    2
    Vote Rating
    1
    ShaneTex is on a distinguished road

      0  

    Default


    It depends on where you are getting it from, but this is what I used...

    var locs = [];

    var latLng = new google.maps.LatLng(record.get('lat'),record.get('lng'));

    locs.push(latLng);

    var mapGraphics = new google.maps.Polyline({
    path: locs,
    map: me.Map.getMap(),
    title: record.get('name'),
    tooltip: record.get('Info'),
    strokeColor: style,
    icons: [{
    icon: lineSymbol,
    offset: '0',
    repeat: '20px'
    }],
    strokeOpacity: 0
    });