mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 913 forks source link

unable to show markers that are on different continents because of minimum zoom level #2902

Open CodeWithOz opened 2 years ago

CodeWithOz commented 2 years ago

I'm submitting a ... (check one with "x")

OS: (check one with "x")

cordova information: (run $> cordova plugin list)

branch-cordova-sdk 3.2.0 "branch-cordova-sdk"
com.fedirts.cameraroll 0.7.0 "CameraRoll"
com.googlemaps.ios 3.9.0 "Google Maps SDK for iOS"
cordova-background-geolocation 3.6.2 "BackgroundGeolocation"
cordova-launch-review 4.0.1 "Launch Review"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-advanced-http 3.2.2 "Advanced HTTP plugin"
cordova-plugin-android-notch 1.0.0 "AndroidNotch"
cordova-plugin-android-permissions 1.1.2 "Permissions"
cordova-plugin-background-fetch 6.0.8 "CDVBackgroundFetch"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-camera 6.0.0 "Camera"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-enable-multidex 0.2.0 "Enable Multidex"
cordova-plugin-file-transfer 2.0.0-dev "File Transfer"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-googlemaps 2.7.1 "cordova-plugin-googlemaps"
cordova-plugin-googleplus 8.5. "Google SignIn"
cordova-plugin-inappbrowser 5.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-ios-camera-permissions 1.2.0 "iOS Permissions"
cordova-plugin-local-notification 0.9.0-beta.4 "LocalNotification"
cordova-plugin-media-capture 3.0.3 "Capture"
cordova-plugin-media 5.0.4-dev "Media"
cordova-plugin-native-logs 1.0.5 "Native Logs"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-network-information 3.0.0 "Network Information"
cordova-plugin-purchase 10.5.0 "Purchase"
cordova-plugin-sign-in-with-apple 0.1.2 "cordova-plugin-sign-in-with-apple"
cordova-plugin-statusbar 3.0.0-dev "StatusBar"
cordova-plugin-video-editor 1.1.3 "VideoEditor"
cordova-plugin-x-socialsharing 6.0.3 "SocialSharing"
cordova-sqlite-storage 6.0.0 "Cordova SQLite storage plugin - cordova-sqlite-storage plugin version"
cordova.plugins.diagnostic 6.1.1 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
pushy-cordova-receiver 1.0.0 "Pushy SDK Receiver for Cordova"
pushy-cordova 1.0.40 "PushySDK"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

@ionic-native/core : N/A
@ionic-native/google-maps : N/A

Current behavior: For some devices with smaller screens, markers are not within the map if the distances are far away, like on different continents. You can see this in the video I've attached. The method I used is map.animateCamera and I set the target to an array of locations in Africa and North America. However because they're far apart so the minimum zoom level is reached and they're still not visible at that level.

Expected behavior: I expect to be able to view locations that are far away, perhaps the map can be zoomed out further to accommodate?

Screen capture or video record:

https://user-images.githubusercontent.com/28525986/154521975-38685d76-8d5b-4118-acf8-e6d115feece9.mp4

Related code, data or error log (please format your code or data):

map.animateCamera({
  target: [...]
});

Support this plugin activity

I appreicate if you give me a beer :beer: from here