ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

Map is blank #110

Closed cathypark closed 5 years ago

cathypark commented 5 years ago

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

If you choose 'problem or bug report', please select OS: (check one with "x")

cordova information: (run $> cordova plugin list)

cordova-plugin-googlemaps 2.4.6 "cordova-plugin-googlemaps"

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/google-maps": "^4.7.0",

Current behavior:

I can't create a Map. I checked all issues related problem(API Key, deviceReady, backgroundColor). My API key has no restraints. plugin.google.maps.event.MAP_READY event to work but I still don´t see the map I have tried again without @ionic-native/google-maps but it was still not working properly.

Please NOTE attached screen-shot. (div's id is "sft-map-container")

Expected behavior:

A map is properly generated.

Screen capture or video record:

Related code, data or error log (please format your code or data): screen shot 2018-10-25 at 8 39 33 pm

The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.

Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.

Giving much information, you are waiting time is less.
Thank you for your cooperation.
wf9a5m75 commented 5 years ago

Please share your project files on GitHub

wf9a5m75 commented 5 years ago

At least, you should use the latest version. https://www.npmjs.com/package/@ionic-native/google-maps

drantunes commented 5 years ago

I'm testing in a fresh ionic 4 project and the map is blank. I strictly followed the tutorial but on Android always gets the white screen. It seems to be a problem related to the getDiv function, as shown in the attached figure.

I'm using Ionic 4 Beta and all the libraries in the latest version.

screenshot 2018-10-26 12 53 31
drantunes commented 5 years ago

The ionic cordova run browser mode works fine.

wf9a5m75 commented 5 years ago

Please share your project files on GitHub.

And don't jump in to another person's issue.

wf9a5m75 commented 5 years ago

ping

wf9a5m75 commented 5 years ago

Since there is no response, I close this thread.