Open FrancescoCerio opened 3 years ago
Please share your project files on GitHub (Do not past your code, or zip file here). If you can't share your code, please create another project that reproduce your issue.
I think you're misconfigured.
Thank you for your quick reply! I'm cloning the project in order to reproduce the problem, in the meantime I would like to show you briefly how I implemented the map rotation so that it follows the device rotation.
I have set a timer that every 10 seconds calls the setCameraBearing()
function of GoogleMap passing as parameter the number relative to the orientation of the device at that time.
Reading from the documentation this is the only way I found to be able to implement this feature. On Android it works without any problem, iOS on the other hand crashes and only auto rotation works, as if it takes precedence over any other user gesture.
Is this implementation correct or is there a simpler and more effective way?
This plugin simply passes the parameters to the Google Maps SDKs. Inside the SDKs are in charged by Google, not me.
The code of this plugin on Android and iOS are almost the same as much as possible.
So, please use as is.
I'm submitting a ... (check one with "x")
OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior: On iOS devices, gesture events are not captured when the map rotation follows the device orientation. The bug occurs when the map is set by the user in manual rotation mode. This setting allows the map to rotate automatically based on the orientation of the device. Once this mode is set, the map doesn't seem to capture any gesture event (zoom, drag, etc..) yet they are all set to true in the GoogleMapGestureOptions object.
Expected behavior: In theory this should not happen and the user should be able to move and zoom on the map without any problem. In fact on Android devices the bug does not occur and everything proceeds in the right way.
[Android] $> adb shell screenrecord /sdcard/capture.mp4 $> adb pull /sdcard/capture.mp4 ./ [iOS] Use QuickTimer player on Mac --->
Related code, data or error log (please format your code or data):
Support this plugin activity
I appreicate if you give me a beer :beer: from here