File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
src/Fable.ReactGoogleMaps Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -50,4 +50,22 @@ If you want to show markers on the map then you can create them like this:
5050 googleMap [
5151 MapProperties.ApiKey googleMapApiKey
5252 // ..
53- MapProperties.Markers (unbox markers) ]
53+ MapProperties.Markers (unbox markers) ]
54+
55+ ## MarkerClusterer
56+
57+ The map component allows you to use a [ MarkerClusterer] ( https://tomchentw.github.io/react-google-maps/#markerclusterer ) :
58+
59+ let clustered =
60+ markers
61+ |> markerClusterer [
62+ MarkerClustererProperties.AverageCenter true
63+ MarkerClustererProperties.MaxZoom 15
64+ MarkerClustererProperties.EnableRetinaIcons true
65+ MarkerClustererProperties.GridSize 60.]
66+
67+ let myMap =
68+ googleMap [
69+ MapProperties.ApiKey googleMapApiKey
70+ // ..
71+ MapProperties.Markers clustered ]
You can’t perform that action at this time.
0 commit comments