mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-30 20:41:08 +00:00
Dont init a new spritefactory
This commit is contained in:
+1
-1
@@ -133,7 +133,7 @@ public class ReactNativeMapboxGLManager extends SimpleViewManager<MapView> {
|
||||
try {
|
||||
Drawable image = drawableFromUrl(annotationURL);
|
||||
image.setBounds(0, 0, 100, 100);
|
||||
SpriteFactory spriteFactory = new SpriteFactory(view);
|
||||
SpriteFactory spriteFactory = view.getSpriteFactory();
|
||||
Sprite icon = spriteFactory.fromDrawable(image);
|
||||
marker.icon(icon);
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user