diff --git a/src/HeatmapLayer.js b/src/HeatmapLayer.js index 513c6761..421d055d 100644 --- a/src/HeatmapLayer.js +++ b/src/HeatmapLayer.js @@ -28,7 +28,6 @@ export default class HeatmapLayer extends Component { // // https://developers.google.com/maps/documentation/javascript/3.exp/reference#HeatmapLayer // - // [].map.call($0.querySelectorAll("tr>td>code"), function(it){ return it.textContent; }).filter(function(it){ return it.match(/^get/) && !it.match(/^getMap/); }) getData() { return this.state.heatmapLayer.getData(); } // END - Public APIs diff --git a/src/creators/HeatmapLayerCreator.js b/src/creators/HeatmapLayerCreator.js index 78227827..83b99143 100644 --- a/src/creators/HeatmapLayerCreator.js +++ b/src/creators/HeatmapLayerCreator.js @@ -17,8 +17,6 @@ export const heatmapLayerControlledPropTypes = { // // Only expose those with getters & setters in the table as controlled props. // -// [].map.call($0.querySelectorAll("tr>td>code"), function(it){ return it.textContent; }).filter(function(it){ return it.match(/^set/) && !it.match(/^setMap/); }) -// // https://developers.google.com/maps/documentation/javascript/3.exp/reference#HeatmapLayer data: PropTypes.any, options: PropTypes.object, @@ -50,7 +48,9 @@ export default class HeatmapLayerCreator extends Component { static _createHeatmapLayer(heatmapLayerProps) { const { mapHolderRef } = heatmapLayerProps; // https://developers.google.com/maps/documentation/javascript/3.exp/reference#HeatmapLayer - const heatmapLayer = new google.maps.visualization.HeatmapLayer(composeOptions(heatmapLayerProps, heatmapLayerControlledPropTypes)); + const heatmapLayer = new google.maps.visualization.HeatmapLayer( + composeOptions(heatmapLayerProps, heatmapLayerControlledPropTypes) + ); heatmapLayer.setMap(mapHolderRef.getMap());