Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HeatmapLayer Component #248

Merged
merged 4 commits into from
Sep 29, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move HeatmapLayer files
zolrath committed Jun 6, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 21dbb7759a30cbbcf19bf37895ade3b02b1f802f
4 changes: 2 additions & 2 deletions src/addons/HeatmapLayer.js → src/HeatmapLayer.js
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ import {
heatmapLayerDefaultPropTypes,
heatmapLayerControlledPropTypes,
heatmapLayerEventPropTypes,
} from "./addonsCreators/HeatmapLayerCreator";
} from "./creators/HeatmapLayerCreator";

export default class HeatmapLayer extends Component {
static propTypes = {
@@ -29,7 +29,7 @@ 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.directionsRenderer.getDirections(); }
getData() { return this.state.heatmapLayer.getData(); }

// END - Public APIs
//
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@ import {
Component,
} from "react";

import { default as HeatmapLayerEventList } from "../addonsEventLists/HeatmapLayerEventList";
import { default as eventHandlerCreator } from "../../utils/eventHandlerCreator";
import { default as defaultPropsCreator } from "../../utils/defaultPropsCreator";
import { default as composeOptions } from "../../utils/composeOptions";
import { default as componentLifecycleDecorator } from "../../utils/componentLifecycleDecorator";
import { default as HeatmapLayerEventList } from "../eventLists/HeatmapLayerEventList";
import { default as eventHandlerCreator } from "../utils/eventHandlerCreator";
import { default as defaultPropsCreator } from "../utils/defaultPropsCreator";
import { default as composeOptions } from "../utils/composeOptions";
import { default as componentLifecycleDecorator } from "../utils/componentLifecycleDecorator";

import { default as GoogleMapHolder } from "../../creators/GoogleMapHolder";
import { default as GoogleMapHolder } from "./GoogleMapHolder";

export const heatmapLayerControlledPropTypes = {
// NOTICE!!!!!!
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://developers.google.com/maps/documentation/javascript/3.exp/reference#Polyline
// https://developers.google.com/maps/documentation/javascript/3.exp/reference#HeatmapLayer
// [].map.call($0.querySelectorAll("tr>td>code"), function(it){ return it.textContent; })
export default [
`zoom_changed`,