- Jan 12, 2015
- 0
- 0
- 0
How can I plot a 3D building or Ploygon on a google map
I used this code and I got the 2D polygon but I want a 3D view or block :
Polygon polygon2 = mMap.addPolygon(new PolygonOptions()
// .add(new LatLng(0, 0), new LatLng(0, 5), new LatLng(3, 5), new LatLng(0, 0))
.add(new LatLng(6.822288, -58.134665), new LatLng(6.822160, -58.134215), new LatLng(6.821691, -58.134472), new LatLng(6.821819, -58.134923))
.strokeColor(Color.GREEN)
.zIndex(3.5f)
.geodesic(true)
.fillColor(Color.BLUE));
I used this code and I got the 2D polygon but I want a 3D view or block :
Polygon polygon2 = mMap.addPolygon(new PolygonOptions()
// .add(new LatLng(0, 0), new LatLng(0, 5), new LatLng(3, 5), new LatLng(0, 0))
.add(new LatLng(6.822288, -58.134665), new LatLng(6.822160, -58.134215), new LatLng(6.821691, -58.134472), new LatLng(6.821819, -58.134923))
.strokeColor(Color.GREEN)
.zIndex(3.5f)
.geodesic(true)
.fillColor(Color.BLUE));