mapsplugin / cordova-plugin-googlemaps

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

Clean project cordova 11, only gray background no map loaded inside div #2917

Open DirkTeulings opened 1 year ago

DirkTeulings commented 1 year ago

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

OS: (check one with "x")

cordova information: (run $> cordova plugin list) cordova version 11.0.0 android platform 10.1.2

cordova-androidx-build 1.0.4 "cordova-androidx-build"
cordova-plugin-googlemaps 2.8.0-20200709-2008 "cordova-plugin-googlemaps"

Current behavior: When new project is created via the hello world page: https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/hello-world/README.md You get initially: image

Then when i found out that you need to install plugin via: cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps/tree/multiple_maps

And follow the hello world page you get and nothing more. image

Expected behavior: a functional map when following the hello world page and no error's in a clean project

Related code, data or error log (please format your code or data): No related code, data or logging to be found: image

fradali commented 1 year ago

I'm trying to run the plugin with Android@11 but i couldn't do it , i tested many branches without any luck ..

mcastets commented 1 year ago

Hi @fradali, we use this plugin in production in our app and we are maintaining it (only bug fixes though).

You can try it out by adding it (current tag is 2.7.1.4):

cordova plugin add git+https://github.com/4sh/squashed-cordova-plugin-googlemaps.git#2.7.1.4

We have tested it against iOS and several Android devices. In addition, we squashed all history to a single commit to improve download time (divided by 30) when installing the plugin.

fradali commented 1 year ago

@mcastets Thanks a lot The map is working fine without any issues with cordova 11 , tested on Android device (android 13).