views:

82

answers:

0

In a project of mine which relies on VE API, i face a weird situation. I construct VEPolyline and apply array of VELatLong objects to it, array is generated in jQuery's $.each loop like

push = new Array();
$.each(arr,function(index,ele)
    path.push(ele);
})

everything is ok until zoomed, then i get following error:

Unexpected value 759,379,543,37,-79,683,NaN,780,-79,683,399,177 when parsing points attribute

when exactly the same error is give, but created directly like

[latlon1,latlon2,latlon3,...,latlonn]

it's possible to zoom freely