使用BitMapDescriptor上的Android和iOS上的不同颜色
我正在使用bitmapdescriptor根据地图上的状态设置颜色,但是iOS颜色的Android颜色(正确)存在差异,其中iOS黄色上的黄色显示为深绿色。有任何建议制作iOS颜色,例如android颜色吗?
这是de color:
_status_icon(status) {
if (status == "Free") {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueBlue);
} else if (status == "Low") {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueGreen);
} else if (status == "Moderate") {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueYellow);
} else if (status == "Abundant") {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueOrange);
} else {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueRed);
}
}
I'm using BitmapDescriptor to set color based on status on the map, but there is a difference in Android colors (which are correct) with iOS colors, where on iOS yellow appears as dark green. Any suggestions to make iOS colors like Android colors?
Here is de color:
_status_icon(status) {
if (status == "Free") {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueBlue);
} else if (status == "Low") {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueGreen);
} else if (status == "Moderate") {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueYellow);
} else if (status == "Abundant") {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueOrange);
} else {
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueRed);
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论