[map-sdk]地图默认不可以缩放
This commit is contained in:
@@ -1083,13 +1083,13 @@ class MapView(context: Context, private val mMapStyleParams: IMapStyleParams, pr
|
||||
private var isScroll = true
|
||||
|
||||
//可以斜滑
|
||||
private var isFling = true
|
||||
private var isFling = false
|
||||
|
||||
//可以旋转
|
||||
private var isRotate = true
|
||||
private var isRotate = false
|
||||
|
||||
//可以缩放
|
||||
private var isCanZoom = true
|
||||
private var isCanZoom = false
|
||||
|
||||
private var isVr = true
|
||||
|
||||
|
||||
@@ -517,13 +517,15 @@ class RoadHelper private constructor() {
|
||||
roadRectInfos.angle = buf.long / 1e8
|
||||
val rectList = ArrayList<RoadRect>()
|
||||
val size = buf.int
|
||||
for (i in 0 until size step 8) {
|
||||
val rect = RoadRect()
|
||||
rect.topLeft = LonLatPoint(buf.long / 1e8, buf.long / 1e8)
|
||||
rect.topRight = LonLatPoint(buf.long / 1e8, buf.long / 1e8)
|
||||
rect.bottomLeft = LonLatPoint(buf.long / 1e8, buf.long / 1e8)
|
||||
rect.bottomRight = LonLatPoint(buf.long / 1e8, buf.long / 1e8)
|
||||
rectList.add(rect)
|
||||
if(size > 0 && size % 8 == 0) {
|
||||
for (i in 0 until size step 8) {
|
||||
val rect = RoadRect()
|
||||
rect.topLeft = LonLatPoint(buf.long / 1e8, buf.long / 1e8)
|
||||
rect.topRight = LonLatPoint(buf.long / 1e8, buf.long / 1e8)
|
||||
rect.bottomLeft = LonLatPoint(buf.long / 1e8, buf.long / 1e8)
|
||||
rect.bottomRight = LonLatPoint(buf.long / 1e8, buf.long / 1e8)
|
||||
rectList.add(rect)
|
||||
}
|
||||
}
|
||||
roadRectInfos.roadRects = rectList
|
||||
if (CompileConfig.DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user