Android Studio dando Cannot resolve method .getMap()

  • Respostas:1
  • AbertoNão stickySem resposta
  • Posts no fórum: 1

23/01/2017, 20:39:22 via Web

private void setUpMap() {
// Do a null check to confirm that we have not already instantiated the
// map.
if (mMap == null) {
mMap = ((MapView) clientRequestView.findViewById(R.id.clientReqMap))
.getMap();
mMap.getUiSettings().setZoomControlsEnabled(false);
mMap.setMyLocationEnabled(false);
mMap.getUiSettings().setMyLocationButtonEnabled(false);

        mMap.setOnMarkerClickListener(new OnMarkerClickListener() {

            @Override
            public boolean onMarkerClick(Marker marker) {
                marker.showInfoWindow();
                return true;
            }
        });
        addMarker();

Responder

Recommended articles