com.google.android.gms.maps.model.Marker.isVisible()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中com.google.android.gms.maps.model.Marker.isVisible()方法的一些代码示例,展示了Marker.isVisible()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marker.isVisible()方法的具体详情如下:
包路径:com.google.android.gms.maps.model.Marker
类名称:Marker
方法名:isVisible

Marker.isVisible介绍

暂无

代码示例

代码示例来源:origin: square/assertj-android

public MarkerAssert isNotVisible() {
  isNotNull();
  assertThat(actual.isVisible()) //
    .overridingErrorMessage("Expected to not be visible but was.") //
    .isFalse();
  return this;
 }
}

代码示例来源:origin: square/assertj-android

public MarkerAssert isVisible() {
 isNotNull();
 assertThat(actual.isVisible()) //
   .overridingErrorMessage("Expected to be visible but was not.") //
   .isTrue();
 return this;
}

代码示例来源:origin: mg6maciej/android-maps-extensions

@Override
public boolean isVisible() {
  if (virtual != null) {
    return virtual.isVisible();
  }
  return false;
}

代码示例来源:origin: mg6maciej/android-maps-extensions

public boolean isVisible() {
  if (marker != null) {
    return marker.isVisible();
  } else {
    return false;
  }
}

代码示例来源:origin: Phantast/smartnavi

@Override
public void onBackPressed() {
  if (routeHasBeenDrawn) {
    //Remove Route if drawn
    if (destMarker != null) {
      if (destMarker.isVisible()) {
        destMarker.setVisible(false);
      }
    }
    for (int a = 0; a <= routeParts; a++) {
      completeRoute[a].remove();
    }
    routeHasBeenDrawn = false;
    setFollowOn();
    View viewLine = findViewById(R.id.view156);
    if (viewLine != null) {
      viewLine.setVisibility(View.INVISIBLE);
    }
    TextView mapText = (TextView) findViewById(R.id.mapText);
    if (mapText != null) {
      mapText.setVisibility(View.INVISIBLE);
    }
  } else {
    super.onBackPressed();
  }
}

代码示例来源:origin: Phantast/smartnavi

@Override
  public void onMapLongClick(LatLng arg0) {
    mTracker.send(new HitBuilders.EventBuilder()
        .setCategory("Action")
        .setAction("Longpress_GoogleMap")
        .build());
    longpressLocation = arg0;
    if (longPressMarker != null) {
      if (longPressMarker.isVisible()) {
        longPressMarker.remove();
      }
    }
    longPressMarker = map.addMarker(new MarkerOptions().position(longpressLocation).icon(BitmapDescriptorFactory.fromBitmap(drawableDest))
        .anchor(0.5F, 1.0F));
    listHandler.sendEmptyMessage(2);
  }
});

相关文章