We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91979ff commit 4b72713Copy full SHA for 4b72713
src/mapbox.ios.ts
@@ -3409,7 +3409,7 @@ class MGLMapViewDelegateImpl extends NSObject implements MGLMapViewDelegate {
3409
}
3410
} else if (cachedMarker.iconPath) {
3411
const appPath = knownFolders.currentApp().path;
3412
- const iconFullPath = appPath + '/' + cachedMarker.iconPath;
+ const iconFullPath = appPath + '/' + cachedMarker.iconPath.replace('~/', '');
3413
if (File.exists(iconFullPath)) {
3414
const image = ImageSource.fromFileSync(iconFullPath).ios;
3415
// perhaps add resize options for nice retina rendering (although you can now use the 'icon' param instead)
0 commit comments