Skip to content

Commit b106052

Browse files
author
Pedro Gil
committed
Update index.android.ts
1 parent 0f4df97 commit b106052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui-mapbox/index.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,13 +1345,13 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
13451345
if (marker.icon) {
13461346
// for markers from url see UrlMarker in https://github.com/mapbox/mapbox-gl-native/issues/5370
13471347
if (marker.icon.startsWith('res://')) {
1348-
let cached = this.iconCache[marker.iconPath];
1348+
let cached = this.iconCache[marker.icon];
13491349
if (!cached) {
13501350
const resourcename = marker.icon.substring(6);
13511351
const res = Utils.ad.getApplicationContext().getResources();
13521352
const identifier = res.getIdentifier(resourcename, 'drawable', Utils.ad.getApplication().getPackageName());
13531353
if (identifier !== 0) {
1354-
cached = this.iconCache[marker.iconPath] = iconFactory.fromResource(identifier);
1354+
cached = this.iconCache[marker.icon] = iconFactory.fromResource(identifier);
13551355
}
13561356
}
13571357
if (cached) {

0 commit comments

Comments
 (0)