Closed jhonarodriguez closed 6 years ago
The map is removed automatically when the map div is removed.
If you want to keep the map, you need to detach the map from the map div
when you leave, then attach the map to the map div
when you come back to the map page.
// detach
map.setDiv();
// attach
map.setDiv(document.getElementById("map_canvas");
thank you very much friend, it worked perfectly
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:
Expected behavior:
Screen capture or video record:
Related code, data or error log (please format your code or data):
Hello,
I have a problem that when I'm going from tabs, in the first tab is the map, returning to it from the map disappears, some method to reload the map template