Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #97 from mapbox/document-options
Browse files Browse the repository at this point in the history
document render options
  • Loading branch information
samanpwbb committed Mar 4, 2015
2 parents 848fa66 + ae4831d commit a8cf26a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ map.render({}, function(err, image) {
});
```

The first argument passed to `map.render` is an options object, all keys are optional:

```js
{
zoom: {zoom}, // number, defaults to 0
width: {width}, // number (px), defaults to 256
height: {height}, // number (px), defaults to 256
latitude: {latitude}, // number (coordinate), defaults to 0
longitude: {longitude}, // number (coordinate), defaults to 0
bearing: {bearing}, // number (degree), defaults to 0
ratio: {ratio} // number (scale factor), defaults to 1.0
}
```

## Testing

```
Expand Down

0 comments on commit a8cf26a

Please sign in to comment.