Skip to content

Commit

Permalink
#80 Cannot read property 'getLocationServices' of undefined - And yet…
Browse files Browse the repository at this point in the history
… another method was removed in the Android Mapbox SDK :(
  • Loading branch information
EddyVerbruggen authored and eddyverbruggen committed Mar 4, 2017
1 parent f9413d0 commit 3e20f49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mapbox.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3e20f49

Please sign in to comment.