Skip to content

Commit b2a247f

Browse files
committed
Remove getGeoPosition
1 parent b11a817 commit b2a247f

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,3 @@ let googleMap (props:Props.IMapProperties list) : React.ReactElement =
151151

152152
R.from GoogleMapComponent (keyValueList CaseRules.LowerFirst props) []
153153

154-
open Fable.Import.JS
155-
156-
let getGeoPosition () : Promise<Coordinates.Position> =
157-
Promise.Create (fun resolve reject ->
158-
let onSucces (position:Browser.Position) =
159-
let pos = Coordinates.newPos position.coords.latitude position.coords.longitude
160-
resolve pos
161-
let onError (posError:Browser.PositionError) =
162-
reject (System.Exception("Could not determine location", System.Exception(sprintf "%A" posError)))
163-
164-
Browser.navigator.geolocation.getCurrentPosition(onSucces, onError)
165-
)

src/Fable.ReactGoogleMaps/Fable.ReactGoogleMaps.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<Version>0.1.1</Version>
4+
<Version>0.1.2</Version>
55
<TargetFramework>netstandard2.0</TargetFramework>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
### 0.1.1
1+
### 0.1.2
22

33
* Initial release

0 commit comments

Comments
 (0)