Closed longinius closed 4 years ago
Ok, I'll check it later
Ok, I fixed problem, however you also need to change your code.
First, please upgrade @ionic-native/google-maps
$ npm uninstall @ionic-native/google-maps
$ npm install @ionic-native/google-maps@5.27.0-beta-20200630
Second, you also need to reinstall the cordova-plugin-googlemaps
$ ionic cordova plugin rm cordova-plugin-googlemaps
$ ionic cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps
$ ionic cordova plugin list
cordova-plugin-googlemaps 2.8.0-20200709-1800 "cordova-plugin-googlemaps" <-- make sure `2.8.0-20200709-1800`
Third, modify your code https://github.com/wf9a5m75/ionic-native-maps-error-fixed/
Then the app should work like this
Many thanks for the quick response and the adaptations to the source code. It now works as desired.
I'm submitting a ...
If you choose 'problem or bug report', please select OS:
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)Current behavior: If you hide the map with the
map.setDiv()
method through the Ionic lifecycle methodsionViewWillLeave
it works the first time. But the second time it can't hide the map.To reproduce in the repository you need to go to "Next page" and back two times. The second time the error occurs. In the browser platform the error occurs on the first call.
Expected behavior: Should hide the map without errors.
Screen capture or video record:
Related code, data or error log (please format your code or data): Repository: https://github.com/longinius/ionic-native-maps-error