Skip to content

Commit

Permalink
README formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Nov 21, 2023
1 parent af4bab6 commit 011b3c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ but doesn't support keeping the aspect ratio.
//areaSelect.remove();
```

### To make it keep the aspect ratio:
#### To make it keep the aspect ratio:

```javascript
var areaSelect = L.areaSelect({width:200, height:300, keepAspectRatio:true});
```

### To set the selected area (not compatible with `keepAspectRatio:true`):
#### To set the selected area (not compatible with `keepAspectRatio:true`):

```javascript
areaSelect.setBounds([{lat:59.2272559, lng:17.7606917}, {lat:59.4402838, lng:18.2000673}]);
Expand Down

0 comments on commit 011b3c4

Please sign in to comment.