Skip to content

Commit 4535320

Browse files
committed
added functionality for weighted postions in heatmap component
1 parent e9ed46d commit 4535320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/HeatMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class HeatMap extends React.Component {
5858
}
5959

6060
const data = positions.map((pos) => {
61-
return new google.maps.LatLng(pos.lat, pos.lng);
61+
return {location: new google.maps.LatLng(pos.lat, pos.lng), weight:pos.weight}
6262
});
6363

6464
const pref = {

0 commit comments

Comments
 (0)