|
|
@@ -223,14 +223,19 @@ class StepFragment(val goBack: () -> Unit, val changePage: (PageChangeBO) -> Uni
|
|
|
itMapInfo.pointList?.forEach { itPoint ->
|
|
|
val locationX = (itPoint.x!!.toFloat() - (itMapInfo.x!!.toFloat() / 50)) * 50 / itMapInfo.width!!.toFloat() * it.width
|
|
|
val locationY = (itPoint.y!!.toFloat() + 1 - itMapInfo.y!!.toFloat() / 50) * 50 / itMapInfo.height!!.toFloat() * it.height
|
|
|
- mStationList.add(
|
|
|
- CustomStationLayer.IsolationPoint(
|
|
|
- PointF(locationX, locationY),
|
|
|
- itPoint.entityName!!,
|
|
|
- itPoint.entityId!!,
|
|
|
- mMachineryDetail?.pointIdList?.contains(itPoint.entityId) == true
|
|
|
+ BitmapUtil.loadBitmapFromUrl(
|
|
|
+ mBinding?.mapview?.context!!, itPoint.pointIcon!!, 18, 18
|
|
|
+ ) { itBitmap ->
|
|
|
+ mStationList.add(
|
|
|
+ CustomStationLayer.IsolationPoint(
|
|
|
+ PointF(locationX, locationY),
|
|
|
+ itPoint.entityName!!,
|
|
|
+ itBitmap,
|
|
|
+ itPoint.entityId!!,
|
|
|
+ mMachineryDetail?.pointIdList?.contains(itPoint.entityId) == true
|
|
|
+ )
|
|
|
)
|
|
|
- )
|
|
|
+ }
|
|
|
}
|
|
|
mBinding?.mapview?.loadMap(it)
|
|
|
}
|