diff --git a/doc/bounds-attribute.md b/doc/bounds-attribute.md index 6e87d2d9..3c589ef7 100644 --- a/doc/bounds-attribute.md +++ b/doc/bounds-attribute.md @@ -7,7 +7,7 @@ This sub-directive needs the **leaflet** main directive, so it is normally used ``` -It will map an object _bounds_ of our controller scope with the corresponding object on our leaflet directive isolated scope. It's a bidirectional relationship, so a change in this object on the controller scope object will affect the map bounds, or an interaction on the map which changes the map position will update our _bounds_ values. Let's define the bounds model with an example: +It will map an object _bounds_ of our controller scope with the corresponding object on our leaflet directive's isolated scope. It is a bidirectional relationship, so a change in this object on the controller scope object will affect the map bounds, or an interaction on the map which changes the map position will update our _bounds_ values. Let's define the bounds model with an example: ``` $scope.bounds = { @@ -23,7 +23,7 @@ $scope.bounds = { } ``` -Defining the bounds is a little complex, so we have a helper which will allow us to be more concise on the definition making use of and array with two arrays with to values inside (lat, lng). To use it, we must make use of the _leafletBoundsHelpers_ service on our controller. For example: +Defining the bounds is a little complex, so we have a helper which will allow us to be more concise on the definition. This can be done by making use of the _leafletBoundsHelpers_ service on our controller. We create the bounds with an array encapsulating two arrays, each containing two values inside (lat, lng). For example: ``` app.controller("DemoController", [ "$scope", "leafletBoundsHelpers", function($scope, leafletBoundsHelpers) { @@ -37,4 +37,4 @@ app.controller("DemoController", [ "$scope", "leafletBoundsHelpers", function($s }); ``` -And that's all, we can see how the _$scope.bounds_ object is updated when we are interacting with the map, like [this example](http://tombatossals.github.io/angular-leaflet-directive/examples/bounds-example.html). +Now we can see when the _$scope.bounds_ object is updated when we are interacting with the map like in [this example](http://tombatossals.github.io/angular-leaflet-directive/examples/bounds-example.html).