In the bounds directive, $scope.bounds.options is used as the options for map.fitBounds. This is nice as the user can specify animation options and the like. Center should use a similar way to specify options to map.setView (leaflet docs).
Copied from original issue: tombatossals/angular-leaflet-directive#907
From @joeljeske on August 31, 2015 14:21
In the bounds directive,
$scope.bounds.options
is used as the options formap.fitBounds
. This is nice as the user can specify animation options and the like. Center should use a similar way to specify options tomap.setView
(leaflet docs).Copied from original issue: tombatossals/angular-leaflet-directive#907