来自 URL 的 MapBox Lcoation 组件图像

问题描述

所以,我需要来自 Url 的当前位置组件图像

private var profileimage = drawableFromUrl(context?.let{SessionManager(it).getUserProfile()?.imageUrl })

我将我的 URL 更改为 drawable 但想到了 MapBox 功能 要求 DrawableID 而不是 drawable

 LocationComponentOptions.builder(it)
                        .foregroundDrawableStale(R.drawable.xxxxxx)
                        .foregroundDrawable(R.drawable.xxxxxx)

我意识到我无法以编程方式将资源保存到 drawable 文件夹中。 有什么解决方案吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)