Skip to content

Commit 4b72713

Browse files
author
Chris Vietor
committed
fix: replace tilde in markers iconPath (so ~ would work on both android and ios)
1 parent 91979ff commit 4b72713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapbox.ios.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3409,7 +3409,7 @@ class MGLMapViewDelegateImpl extends NSObject implements MGLMapViewDelegate {
34093409
}
34103410
} else if (cachedMarker.iconPath) {
34113411
const appPath = knownFolders.currentApp().path;
3412-
const iconFullPath = appPath + '/' + cachedMarker.iconPath;
3412+
const iconFullPath = appPath + '/' + cachedMarker.iconPath.replace('~/', '');
34133413
if (File.exists(iconFullPath)) {
34143414
const image = ImageSource.fromFileSync(iconFullPath).ios;
34153415
// perhaps add resize options for nice retina rendering (although you can now use the 'icon' param instead)

0 commit comments

Comments
 (0)