本文整理汇总了Java中com.amap.api.maps.model.Marker.hideInfoWindow方法的典型用法代码示例。如果您正苦于以下问题:Java Marker.hideInfoWindow方法的具体用法?Java Marker.hideInfoWindow怎么用?Java Marker.hideInfoWindow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.amap.api.maps.model.Marker
的用法示例。
在下文中一共展示了Marker.hideInfoWindow方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onMarkerClick
import com.amap.api.maps.model.Marker; //导入方法依赖的package包/类
@Override
public boolean onMarkerClick(Marker marker) {
if (marker.isInfoWindowShown()) {
marker.hideInfoWindow();
} else {
marker.showInfoWindow();
}
if (marker.equals(mWHU1)) {
endPoint = AMapUtil.convertToLatLonPoint(mWHU1.getPosition());
} else if (marker.equals(mWHU2)) {
endPoint = AMapUtil.convertToLatLonPoint(mWHU2.getPosition());
} else if (marker.equals(mWHU3)) {
endPoint = AMapUtil.convertToLatLonPoint(mWHU3.getPosition());
} else if (marker.equals(mWHU4)) {
endPoint = AMapUtil.convertToLatLonPoint(mWHU4.getPosition());
} else if (marker.equals(mWHU5)) {
endPoint = AMapUtil.convertToLatLonPoint(mWHU5.getPosition());
} else if (marker.equals(mWHU6)) {
endPoint = AMapUtil.convertToLatLonPoint(mWHU6.getPosition());
} else if (marker.equals(mWHU6)) {
endPoint = AMapUtil.convertToLatLonPoint(mWHU7.getPosition());
}
return false;
}
示例2: onMarkerClick
import com.amap.api.maps.model.Marker; //导入方法依赖的package包/类
@Override
public boolean onMarkerClick(Marker marker) {
if (marker.isInfoWindowShown()) {
marker.hideInfoWindow();
} else {
marker.showInfoWindow();
}
return false;
}
示例3: onInfoWindowClick
import com.amap.api.maps.model.Marker; //导入方法依赖的package包/类
/**
* @see com.amap.api.maps.AMap.OnInfoWindowClickListener#
* onInfoWindowClick(com.amap.api.maps.model.Marker)
*/
@Override
public void onInfoWindowClick(Marker marker) {
Clusterkraf clusterkraf = clusterkrafRef.get();
if (clusterkraf != null) {
boolean handled = false;
ClusterPoint clusterPoint = clusterkraf.currentClusterPointsByMarker.get(marker);
OnInfoWindowClickDownstreamListener downstreamListener = clusterkraf.options.getOnInfoWindowClickDownstreamListener();
if (downstreamListener != null) {
handled = downstreamListener.onInfoWindowClick(marker, clusterPoint);
}
if (handled == false && clusterPoint != null) {
if (clusterPoint.size() > 1) {
switch(clusterkraf.options.getClusterInfoWindowClickBehavior()) {
case ZOOM_TO_BOUNDS:
clusterkraf.zoomToBounds(clusterPoint);
break;
case HIDE_INFO_WINDOW:
marker.hideInfoWindow();
break;
case NO_OP:
// no-op
break;
}
} else {
switch(clusterkraf.options.getSinglePointInfoWindowClickBehavior()) {
case HIDE_INFO_WINDOW:
marker.hideInfoWindow();
break;
case NO_OP:
// no-op
break;
}
}
}
}
}
示例4: onInfoWindowClick
import com.amap.api.maps.model.Marker; //导入方法依赖的package包/类
@Override
public void onInfoWindowClick(Marker marker) {
marker.hideInfoWindow();
}