【发布时间】:2015-06-01 02:59:48
【问题描述】:
最近我尝试在 Google Maps v2 for Android 中使用 Overlay,从一些教程中我们知道
BitmapDescriptor image = BitmapDescriptorFactory.fromResource(R.drawable.android);
GroundOverlayOptions groundOverlay = new GroundOverlayOptions()
.image(image)
.position(point1, 500f)
.transparency(0.5f);
googleMap.addGroundOverlay(groundOverlay);
我面临的问题是:我可以从 URL 覆盖图像吗?喜欢:
BitmapDescriptor image = BitmapDescriptorFactory.fromResource(R.drawable.android);
GroundOverlayOptions groundOverlay = new GroundOverlayOptions()
.image(***"http://image path...."***)
.position(point1, 500f)
.transparency(0.5f);
googleMap.addGroundOverlay(groundOverlay);
【问题讨论】:
标签: google-maps google-maps-api-3 google-maps-android-api-2 google-maps-api-2