Skip to content

Commit 1674773

Browse files
authored
Merge pull request #246 from shashvatnaik/master
added functionality for weighted positions in heatmap component
2 parents 98f7c3c + 4535320 commit 1674773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/HeatMap.js

+1-1
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)