angular-leaflet-directive icon indicating copy to clipboard operation
angular-leaflet-directive copied to clipboard

IE8 - Paths - Invalid data passed to the polyline path

Open thetom88 opened this issue 12 years ago • 3 comments

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?

thetom88 avatar Feb 26 '14 08:02 thetom88

I haven't got ie8 but does the demo example work in ie8 http://tombatossals.github.io/angular-leaflet-directive/#!/examples/path

set321go avatar Feb 26 '14 22:02 set321go

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?

thetom88 avatar Feb 27 '14 08:02 thetom88

Was this ever figured out. Closing since it is stale.

nmccready avatar Jun 23 '15 13:06 nmccready