Skip to content

Commit

Permalink
Merge pull request #872 from jsaguiar/master
Browse files Browse the repository at this point in the history
Fix: SetCamera config uses zoom instead of zoomLevel
  • Loading branch information
nitaliano committed Dec 14, 2017
2 parents b2911bf + 6f5add7 commit f3b8c8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/MapView.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Map camera will perform updates based on provided config. Advanced use only!
```javascript
this.map.setCamera({
centerCoordinate: [lng, lat],
zoomLevel: 16,
zoom: 16,
duration: 2000,
})

Expand Down
6 changes: 3 additions & 3 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@
},
{
"name": "setCamera",
"docblock": "Map camera will perform updates based on provided config. Advanced use only!\n\n@example\nthis.map.setCamera({\n centerCoordinate: [lng, lat],\n zoomLevel: 16,\n duration: 2000,\n})\n\nthis.map.setCamera({\n stops: [\n { pitch: 45, duration: 200 },\n { heading: 180, duration: 300 },\n ]\n})\n\n @param {Object} config - Camera configuration",
"docblock": "Map camera will perform updates based on provided config. Advanced use only!\n\n@example\nthis.map.setCamera({\n centerCoordinate: [lng, lat],\n zoom: 16,\n duration: 2000,\n})\n\nthis.map.setCamera({\n stops: [\n { pitch: 45, duration: 200 },\n { heading: 180, duration: 300 },\n ]\n})\n\n @param {Object} config - Camera configuration",
"modifiers": [],
"params": [
{
Expand All @@ -1154,7 +1154,7 @@
"returns": null,
"description": "Map camera will perform updates based on provided config. Advanced use only!",
"examples": [
"\nthis.map.setCamera({\n centerCoordinate: [lng, lat],\n zoomLevel: 16,\n duration: 2000,\n})\n\nthis.map.setCamera({\n stops: [\n { pitch: 45, duration: 200 },\n { heading: 180, duration: 300 },\n ]\n})\n\n "
"\nthis.map.setCamera({\n centerCoordinate: [lng, lat],\n zoom: 16,\n duration: 2000,\n})\n\nthis.map.setCamera({\n stops: [\n { pitch: 45, duration: 200 },\n { heading: 180, duration: 300 },\n ]\n})\n\n "
]
}
],
Expand Down Expand Up @@ -2569,4 +2569,4 @@
}
]
}
}
}
2 changes: 1 addition & 1 deletion javascript/components/MapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class MapView extends React.Component {
* @example
* this.map.setCamera({
* centerCoordinate: [lng, lat],
* zoomLevel: 16,
* zoom: 16,
* duration: 2000,
* })
*
Expand Down

0 comments on commit f3b8c8f

Please sign in to comment.