本文整理了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
暂无
代码示例来源: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);
}
});
内容来源于网络,如有侵权,请联系作者删除!