Closed JeongJun-Lee closed 5 years ago
I checked your repo on my phone. I haven't tested it, but I guess you installed this plug-in with --variable GOOGLE_MAPS_ANDROID_API_KEY
.
The specification way has been changed since v2.6.0. You need to define your API keys in config.xml file, not variable option.
I have already two lines like below
<preference name="GOOGLE_MAPS_ANDROID_API_KEY" value="***" />
<preference name="GOOGLE_MAPS_IOS_API_KEY" value="****" />
at https://github.com/JeongJun-Lee/ionic4-gmap-overlay/blob/master/config.xml
Found reasons:
Finally it works well. But I suggest to show error logs at the case 1 or 2 in Browser console, because there was no error log, it was really hard to find the root causes.
Thanks.
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
)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": "^5.0.0", "@ionic-native/google-maps": "^5.5.0",Current behavior:
Will be blank screen with TileOverlay in case the map page is loaded as a main page by lazy loading This issue is similar to https://github.com/ionic-team/ionic-native-google-maps/issues/190
Expected behavior:
the map page is loaded as a main page by lazy loading should be seen well, not a blank.
Screen capture or video record:
Related code, data or error log (please format your code or data): https://github.com/JeongJun-Lee/ionic4-gmap-overlay