Skip to content

Commit

Permalink
feat(Map): expose fitBounds as public API
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Dec 16, 2014
1 parent 9a32aff commit c64da72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ MapSpec = {
});
},

fitBounds (latLngBounds) {
ensure_map_created(this, (map) => {
map.fitBounds(latLngBounds);
});
},

getInitialState () {
return {
/* [null, false, true] => ["init", "api loaded", "done"] */
Expand Down

0 comments on commit c64da72

Please sign in to comment.