@@ -8,6 +8,7 @@ import isNumber from 'lodash.isnumber';
88import L from 'leaflet' ;
99import { MapLayer } from 'react-leaflet' ;
1010import simpleheat from 'simpleheat' ;
11+ import PropTypes from 'prop-types' ;
1112
1213export type LngLat = {
1314 lng : number ;
@@ -75,20 +76,20 @@ function shouldIgnoreLocation(loc: LngLat): boolean {
7576
7677export default class HeatmapLayer extends MapLayer {
7778 static propTypes = {
78- points : React . PropTypes . array . isRequired ,
79- longitudeExtractor : React . PropTypes . func . isRequired ,
80- latitudeExtractor : React . PropTypes . func . isRequired ,
81- intensityExtractor : React . PropTypes . func . isRequired ,
82- fitBoundsOnLoad : React . PropTypes . bool ,
83- fitBoundsOnUpdate : React . PropTypes . bool ,
84- onStatsUpdate : React . PropTypes . func ,
79+ points : PropTypes . array . isRequired ,
80+ longitudeExtractor : PropTypes . func . isRequired ,
81+ latitudeExtractor : PropTypes . func . isRequired ,
82+ intensityExtractor : PropTypes . func . isRequired ,
83+ fitBoundsOnLoad : PropTypes . bool ,
84+ fitBoundsOnUpdate : PropTypes . bool ,
85+ onStatsUpdate : PropTypes . func ,
8586 /* props controlling heatmap generation */
86- max : React . PropTypes . number ,
87- radius : React . PropTypes . number ,
88- maxZoom : React . PropTypes . number ,
89- minOpacity : React . PropTypes . number ,
90- blur : React . PropTypes . number ,
91- gradient : React . PropTypes . object
87+ max : PropTypes . number ,
88+ radius : PropTypes . number ,
89+ maxZoom : PropTypes . number ,
90+ minOpacity : PropTypes . number ,
91+ blur : PropTypes . number ,
92+ gradient : PropTypes . object
9293 } ;
9394
9495 createLeafletElement ( ) {
0 commit comments