Closed kelvindart-certua closed 5 years ago
Actually, I'm just installing the Google Play Services SDK - I feel it might be related... 🙂
Unfortunately installing the Google Play SDK wasn't related - it still didn't render the map after I had the SDK installed.
GoogleMapsMapTypeId.ROADMAP
https://github.com/ionic-team/ionic-native-google-maps/blob/master/documents/maptype/README.md
Hey @wf9a5m75 - just tried it by providing GoogleMapsMapTypeId.ROADMAP
and no luck - it's still blank. 😢
Okay, please share your project files on GitHub repository.
Thanks @wf9a5m75 - I'll create an isolated project (due to NDAs on the product). I'll let you know when created, and link it here.
Hey @wf9a5m75 - I've produced an example repository which you can find here: https://github.com/kelvindart-certua/ionic-googlemaps-issue. You can set up the project by:
git clone git@github.com:kelvindart-certua/ionic-googlemaps-issue.git
npm i
to install dependenciesconfig.xml
ionic cordova run android --device
to run on an Android deviceI tried updating the Google Maps CocoaPod to 3.3.0
but no joy, unfortunately. I don't have access to an older Android device, so unable to confirm if it's version related. Also, the project above runs ok on iOS (I have omitted the MapType again, but tried various things including/omitting various key/values).
I have blanked out the API keys, for obvious reasons: https://github.com/kelvindart-certua/ionic-googlemaps-issue/blob/master/config.xml#L102-L103.
If you need anything my end, or for me to test anything, please let me know!
The problem is tilt
value.
tilt
value range is from 0 to 90.
Hi @wf9a5m75 - that's awesome - thanks so much. Apologies, I didn't realise at all. I will rectify this in my code and try it out.
On your approval, shall I raise a PR so that out-of-bound values are set to a default? Or is this behaviour you don't think the plugin should be responsible for?
I'm submitting a ... (check one with "x")
OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)ionic info:
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: I have the Google Maps plugin installed which seems to work fine on iOS, but not on Android (a
div
renders and is set to the desired height, but it has no content inside of it where the map should display). I am running it on a Samsung Galaxy S10 running Android 9 Pie.I have no errors displayed on the console, and I have tried to debug it. It seems to reach this line, and then stops execution: https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/src/android/plugin/google/maps/PluginMap.java#L277
I have no idea why execution stops after here.
Expected behavior: For the map to render.
Screen capture or video record:
Related code, data or error log (please format your code or data):
This code does work on iOS.
Support this plugin activity
I appreicate if you give me a beer :beer: from here