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.8.2",
"@ionic-native/core": "^4.7.0",
Current behavior:
We add markers parametrized with remote data. One of these data is the icon image url. Then, when the map page load the first time on iOS, all is fine, but the second time the app crashes and closes automatically. If we don't give any image, or pass an static local image to all icons, the problem disappears and all if fine.
On Android, all works fine. It only occurs in iOS.
If there is any remote data and app does not have to make any icons, the app does not crash.
Expected behavior:
All times we want to load the map with all remote data, we could do without crashes.
Screen capture or video record:
Related code, data or error log (please format your code or data):
generate_icon(data){
let promise = new Promise((resolve => {
let icono:MarkerIcon;
icon = {
// With that line the app crash on second load
url : data.markerPath,
// With that line the app does not crash any time
//url : "./assets/img/dashboard/markerfull.jpeg",
size: {
width: 60,
height: 70
}
};
resolve(icon);
}));
return promise;
}
...
this.map.addMarker({
position: pos,
icon: icono
})
...
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/google-maps": "^4.8.2", "@ionic-native/core": "^4.7.0",Current behavior:
We add markers parametrized with remote data. One of these data is the icon image url. Then, when the map page load the first time on iOS, all is fine, but the second time the app crashes and closes automatically. If we don't give any image, or pass an static local image to all icons, the problem disappears and all if fine. On Android, all works fine. It only occurs in iOS. If there is any remote data and app does not have to make any icons, the app does not crash. Expected behavior:
All times we want to load the map with all remote data, we could do without crashes.
Screen capture or video record:
Related code, data or error log (please format your code or data):