-
Notifications
You must be signed in to change notification settings - Fork 915
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
Problem with marker.getposition() in ionic 2 #1567
Comments
I'm not familiar with ionic, but I think
is wrong. let lt = maker.getPosition();
this.position = lt.lat.toString() + " " + lt.lng.toString(); |
Unfortunately it did not help, I get this error: Property 'lat' does not existe on type 'Promise' |
Um. The ionic wrapper is wrong. This plugin returns the position value as synchronize. cordova-plugin-googlemaps/www/Marker.js Lines 132 to 138 in 520cd25
|
Thanks for your help! I'm gonna check this issue in the ionic native git |
I sent a pull request. |
I have question, with the pull request everything should work fine right? |
I think so, but I'm not familiar with ionic. I haven't tested it. Please test it, and please let me know if there are any problems. |
The problem continue, I don't getPosition() of marker. |
Yes, pull request is not accepted yet. |
I have been still waiting the ionic team merge the pull request for some reason. |
The pull request has been accepted. Please reinstall the plugin. |
thanks very much, it works correctly. |
Sounds good |
I am unable to get the coordinates of the marker once i move it around the map:
I am using:
"@ionic-native/geolocation": "^4.0.0", "@ionic-native/google-maps": "^4.0.0",
i am using the next fuction to initialize the marker:
In my promises I don't get any errors, but I don't get the new position of the marker either
The text was updated successfully, but these errors were encountered: