Commit 2c9682d
committed
fix(googlemaps): accept mixed LatLng | WeightedLocation array in HeatmapLayer.setData
According to the Google Maps API docs, `HeatmapLayer.setData` accepts either a mixed
`MVCArray<LatLng | WeightedLocation>` or a native mixed array of `LatLng` and `WeightedLocation`,
however the current typings only allow a mixed `MVCArray` or a `LatLng[]` or `WeightedLocation[]`.
These changes align the type to the one in the docs. I've also replaced the `any` in
`HeatmapLayerOptions.data` with the correct type.
More information: https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayer.setData1 parent 8cf251b commit 2c9682d
File tree
2 files changed
+8
-2
lines changed- types/googlemaps
- reference
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
421 | 427 | | |
422 | 428 | | |
423 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments