Closed hartherbert closed 5 years ago
I don't recommend you use this plug-in in slide. Map is NOT a HTML element.
I'm not using a slider, it's just the swipe back navigation. You can test the same behaviour with a map only page.
The map is not the problem, if you look at it, the map slides perfectly fine. It is just beeing overlayed by the previous page (the one being swiped back)
Did you read and understand how this plugin work?
Since this plug-in displays the native map view under the browser, this plugin changes background of elements are transparent.
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)Current behavior: When I navigate from my tab1-page to the map-page (is child page), it all looks fine. Then the native google map is rendered inside my
<ion-card-content>
in a<div>
. All looks good, but when I try to swipe back to the search-page, several things happenExpected behavior: When navigating back using a swipe (iOS) the map should
Screen capture or video record:![swipebackerror (1)](https://user-images.githubusercontent.com/22191877/58027117-38917880-7b18-11e9-86e7-7d18824f4bf5.gif)
Related code, data or error log (please format your code or data):
This only happens if the map is in place. When I remove the map out of the page, the transition works fine.
This error seems to be related to this issue on the plugin page #2593
This has been tested on the simulator and on real devices. All of them fail the swipe navigation.
Git Repo
Here is a demo repo to demonstrate the error ionic-googlemaps-test
To run the project on a real device, please enter your own Google API keys inside the
config.xml
fileAfter that simply run the project using
ionic cordova run ios --target=iPhone-XS