Skip to content

Commit 17df54b

Browse files
authored
Update README.md
1 parent 6192ddf commit 17df54b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Fable.ReactGoogleMaps/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ In your css add the following:
2626
and in your F# code you can create the map like this:
2727

2828
```fs
29-
let defaultCenter:Position = Fable.Helpers.GoogleMaps.Literal.createLatLng 40.6892494 -74.0445004
29+
let defaultCenter:Fable.Import.GoogleMaps.LatLngLiteral = Fable.Helpers.GoogleMaps.Literal.createLatLng 40.6892494 -74.0445004
3030
3131
let myMap =
3232
googleMap [
3333
MapProperties.ApiKey googleMapApiKey
3434
MapProperties.MapLoadingContainer "maploadercontainer"
3535
MapProperties.MapContainer "mapcontainer"
3636
MapProperties.DefaultZoom 9
37-
MapProperties.DefaultCenter defaultCenter
38-
MapProperties.Center defaultCenter ]
37+
MapProperties.DefaultCenter !^ defaultCenter
38+
MapProperties.Center !^ defaultCenter ]
3939
```
4040

4141
### Traffic Layer

0 commit comments

Comments
 (0)