|
发表帖子
API/SDK版本号: |
5.2.0 |
产品: |
2D地图 |
手机型号: |
ZTE C2016 |
使用接口: |
addGroundOverlay |
高德地图上贴.bmp(.png)图片,发现贴图数量达到20个左右时,地图上面显示不出来贴图。之前用百度地图也是相同实现方法,没有出现过这个问题。请问是不是有什么限制?附上贴图代码:private AMap aMap;
aMap = mapView.getMap();
for (int i = 0; i < 30; ++i) {
Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.b1).copy(Bitmap.Config.ARGB_8888, true);
if (null == bmp) {
continue;
}
int properWidth = 200;
BitmapDescriptor bmpDesc = BitmapDescriptorFactory.fromBitmap(bmp);
GroundOverlayOptions goo = new GroundOverlayOptions().image(bmpDesc)
.position(new LatLng(lat, lon), properWidth, properWidth).zIndex(100);
aMap.addGroundOverlay(goo);
}
|
|