-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Expose 'type' property in GoogleMapsLatLngBounds #693
Comments
ColinFrick
pushed a commit
to ColinFrick/ionic-native
that referenced
this issue
Oct 13, 2016
ihadeed
pushed a commit
that referenced
this issue
Oct 13, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The LatLngBounds class of the plugin has a property named 'type' which is used to differentiate between LatLng and LatLngBounds in animateCamera and moveCamera.
Because GoogleMapsLatLngBounds doesn't expose this property animateCamera / moveCamera fails when bounds are supplied:
Reason: The plugin converts the LatLngBounds to an array with southwest LatLng and northeast LatLng, but because of the missing type property it is assumed that only a LatLng is supplied, and the native plugin tries to access the (not existing) lat / lng properties:
googlemaps-cdv-plugin.js:
PluginMap.java:
As a test I hacked in the type property and the code animates the camera successfully.
Tested in the Android Emulator:
The text was updated successfully, but these errors were encountered: