Skip to content

Commit 6eeb8d9

Browse files
committed
Using Fable.Import.GoogleMaps.
1 parent c925242 commit 6eeb8d9

File tree

2 files changed

+5
-2600
lines changed

2 files changed

+5
-2600
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Fable.Helpers.ReactGoogleMaps
33
open Fable.Core
44
open Fable.Import
55
open Fable.Core.JsInterop
6-
open Google.Maps
6+
open Fable.Import.GoogleMaps
77

88
module 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

Comments
 (0)