IE8 - Paths - Invalid data passed to the polyline path
Hello everyone! I'm having a problem in working with paths in IE8. I'm creating the path object this way:
$scope.paths = {}; // at controller start
//later when i get markers:
_.each(steps, function (step) {
p1.latlngs.push({ lat: step.Destination.Latitude, lng: step.Destination.Longitude });
});
$scope.paths.p1 = p1;
In chrome and firefox is working without problem, but in IE it's not working. I did some debugging and i found out that i don't pass the test:_isValidPolyline Here's my p1 obj:
{
"color": "#efa800",
"weight": 8,
"latlngs": [
{
"lat": 40.714,
"lng": -74.006
},
{
"lat": 25.788969,
"lng": -80.22644
}
]
}
Is my path obj correct? What can I do to fix it?
I haven't got ie8 but does the demo example work in ie8 http://tombatossals.github.io/angular-leaflet-directive/#!/examples/path
No, the demo doesn't work in IE8. But that's because in the demo site there isn't any basis optimization to make it work with IE<9. Do you know what's wrong with my path object?
Was this ever figured out. Closing since it is stale.