Skip to content

Commit

Permalink
Shorten long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
zolrath committed Jun 7, 2016
1 parent 8b16ea4 commit 08abfb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/HeatmapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/creators/HeatmapLayerCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit 08abfb5

Please sign in to comment.