From e7b695cec0a261641215bbee183bde03f62d2763 Mon Sep 17 00:00:00 2001 From: eddyverbruggen Date: Sat, 4 Mar 2017 16:18:04 +0100 Subject: [PATCH] #80 Cannot read property 'getLocationServices' of undefined - And yet another method was removed in the Android Mapbox SDK :( --- mapbox.android.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mapbox.android.js b/mapbox.android.js index 49ee1d6..75eeabf 100755 --- a/mapbox.android.js +++ b/mapbox.android.js @@ -501,8 +501,7 @@ mapbox._addMarkers = function(markers, nativeMap) { if (identifier === 0) { console.log("No icon found for this device desity for icon " + marker.icon + ", using default"); } else { - var iconDrawable = android.support.v4.content.ContextCompat.getDrawable(application.android.context, identifier); - markerOptions.setIcon(iconFactory.fromDrawable(iconDrawable)); + markerOptions.setIcon(iconFactory.fromResource(identifier)); } } else if (marker.icon.startsWith("http")) { if (marker.iconDownloaded !== null) {