Skip to content

Commit 698be9a

Browse files
committed
Make Clusterer explicit
1 parent 0af3a98 commit 698be9a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Fable.ReactGoogleMaps/Fable.Helpers.ReactGoogleMaps.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ module Props =
129129
| OnZoomChanged of (unit -> unit)
130130
| OnIdle of (unit -> unit)
131131
| OnClick of (GoogleMapsMouseEvent -> unit)
132-
| Markers of React.ReactElement list
132+
| Markers of React.ReactElement seq
133+
| [<CompiledName("Markers")>] Clusterer of React.ReactElement
133134
| MapLoadingContainer of string
134135
| MapContainer of string
135136
| Options of obj

src/Fable.ReactGoogleMaps/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ let myMap =
6767
googleMap [
6868
MapProperties.ApiKey googleMapApiKey
6969
// ..
70-
MapProperties.Markers (unbox markers) ]
70+
MapProperties.Markers markers ]
7171
```
7272

7373
## MarkerClusterer
@@ -87,5 +87,5 @@ let myMap =
8787
googleMap [
8888
MapProperties.ApiKey googleMapApiKey
8989
// ..
90-
MapProperties.Markers clustered ]
90+
MapProperties.Clusterer clustered ]
9191
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
### 0.2.2
1+
### 0.3.0
22

33
* Initial release

0 commit comments

Comments
 (0)