@@ -3,7 +3,7 @@ module Fable.Helpers.ReactGoogleMaps
33open Fable.Core
44open Fable.Import
55open Fable.Core .JsInterop
6- open Google. Maps
6+ open Fable. Import . GoogleMaps
77
88module R = Fable.Helpers.React
99
@@ -63,7 +63,7 @@ module Props =
6363 | Title of string
6464 | Icon of string
6565 | OnClick of ( unit -> unit )
66- | Position of LatLng
66+ | Position of U2 < LatLng , LatLngLiteral >
6767 interface IMarkerProperties
6868
6969 type IMarkerClustererProperties =
@@ -90,8 +90,8 @@ module Props =
9090 | SearchBoxText of string
9191 | ShowSearchBox of bool
9292 | ShowTrafficLayer of bool
93- | DefaultCenter of LatLng
94- | Center of LatLng
93+ | DefaultCenter of U2 < LatLng , LatLngLiteral >
94+ | Center of U2 < LatLng , LatLngLiteral >
9595 | OnCenterChanged of ( unit -> unit )
9696 | OnPlacesChanged of ( Place [] -> unit )
9797 | OnZoomChanged of ( unit -> unit )
@@ -137,4 +137,4 @@ let googleMap (props:Props.IMapProperties list) : React.ReactElement =
137137 R.from GoogleMapComponent ( keyValueList CaseRules.LowerFirst props) []
138138
139139
140- let getPosition ( options : obj ) : Fable.Import.JS.Promise < Fable.Import.Browser.Position > = importMember " ./location.js"
140+ let getPosition ( options : obj ) : Fable.Import.JS.Promise < Fable.Import.Browser.Position > = importMember " ./location.js"
0 commit comments