Skip to content

Commit

Permalink
feat(Map): configureable id, className and style
Browse files Browse the repository at this point in the history
BREAKING CHANGE

remove inline style of width and height
  • Loading branch information
tomchentw committed Oct 29, 2014
1 parent 222adab commit 420e83b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ module.exports = React.createClass({
},

_render (props, state) {
return <div ref="mapCanvas" style={{width:"100%", height:400}} />;
return <div ref="mapCanvas"
id={props.id}
className={props.className}
style={props.style}>
</div>;
}
});

0 comments on commit 420e83b

Please sign in to comment.