-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoPint is not implemented #1604
Comments
For the types, you should import from firebase. import * as firebase from 'firebase/app'
...
let point = new firebase.firestore.GeoPoint(32.5522, 34.556656) |
The jamesdaniels solution didn't work with me, any suggestions what might be the problem? I'm getting error I'm using: |
This is different in 5.0 now, you should do: import { firestore } from 'firebase/firestore';
...
new firestore.GeoPoint ... |
You are correct, |
I use this to make the GeoPoint work let point = new firestore.GeoPoint(32.5522, 34.556656); |
Hi what is the recommended way to import these classes? There are different answers here. |
Hi @jamesdaniels I am confused. What is the correct way to import?
does not work |
Version info
Angular: 5.2.x
Firebase: ^4.8.2
AngularFire: 5.0.0-rc.7
Description
AngularFire doesn't have GeoPoint interface
Expected behavior
Actual behavior
TypeError: Cannot read property 'GeoPoint' of undefined
More info
Firebase JS reference:
https://firebase.google.com/docs/reference/js/firebase.firestore.GeoPoint
The text was updated successfully, but these errors were encountered: