From 4b6acf3ea037bf8ed79e5c6a4e9994fd1ca98b92 Mon Sep 17 00:00:00 2001 From: Brandon Mills Date: Thu, 30 Jun 2016 23:19:06 -0400 Subject: [PATCH] Add updateChoroplethOptions prop --- examples/choropleth-example.jsx | 5 +++-- src/datamap.jsx | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/choropleth-example.jsx b/examples/choropleth-example.jsx index fcec303..2f270d6 100644 --- a/examples/choropleth-example.jsx +++ b/examples/choropleth-example.jsx @@ -48,12 +48,13 @@ export default class ChoroplethExample extends React.Component { return ( ); diff --git a/src/datamap.jsx b/src/datamap.jsx index 09bd7a1..a71b2f3 100644 --- a/src/datamap.jsx +++ b/src/datamap.jsx @@ -13,6 +13,7 @@ export default class Datamap extends React.Component { height: React.PropTypes.any, labels: React.PropTypes.bool, style: React.PropTypes.object, + updateChoroplethOptions: React.PropTypes.object, width: React.PropTypes.any }; @@ -56,6 +57,7 @@ export default class Datamap extends React.Component { data, graticule, labels, + updateChoroplethOptions, ...props } = this.props; @@ -68,7 +70,7 @@ export default class Datamap extends React.Component { element: this.refs.container }); } else { - map.updateChoropleth(data); + map.updateChoropleth(data, updateChoroplethOptions); } if (arc) {