本文整理汇总了Java中com.google.android.gms.maps.model.GroundOverlay.remove方法的典型用法代码示例。如果您正苦于以下问题:Java GroundOverlay.remove方法的具体用法?Java GroundOverlay.remove怎么用?Java GroundOverlay.remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.android.gms.maps.model.GroundOverlay
的用法示例。
在下文中一共展示了GroundOverlay.remove方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeAndUpdateBootprints
import com.google.android.gms.maps.model.GroundOverlay; //导入方法依赖的package包/类
private void removeAndUpdateBootprints() {
if (mBootprintLocations.size() >= MAX_BOOTPRINTS) {
final GroundOverlay removedOverlay = mBootprintLocations.remove(0);
removedOverlay.remove();
}
for (int i = 0; i < mBootprintLocations.size(); i++) {
GroundOverlay bootprint = mBootprintLocations.get(i);
int footprintsLeft = MAX_BOOTPRINTS - mBootprintLocations.size();
float transparency = 1f - ((i + footprintsLeft) / (float) MAX_BOOTPRINTS);
bootprint.setTransparency((2f * transparency / 3f) + .33f);
}
}
示例2: remove
import com.google.android.gms.maps.model.GroundOverlay; //导入方法依赖的package包/类
/**
* Remove this tile layer
* @param args
* @param callbackContext
* @throws JSONException
*/
protected void remove(JSONArray args, CallbackContext callbackContext) throws JSONException {
String id = args.getString(1);
GroundOverlay groundOverlay = (GroundOverlay)this.objects.get(id);
if (groundOverlay == null) {
this.sendNoResult(callbackContext);
return;
}
String propertyId = "gOverlay_property_" + id;
this.objects.remove(propertyId);
groundOverlay.remove();
this.sendNoResult(callbackContext);
}
示例3: onRequestSuccess
import com.google.android.gms.maps.model.GroundOverlay; //导入方法依赖的package包/类
@Override
public void onRequestSuccess(GetDeparturesResponse getDeparturesResponse) {
for (GroundOverlay bus : mBusMarkers) {
bus.remove();
}
processResponse(getDeparturesResponse);
}
示例4: removeGroundOverlays
import com.google.android.gms.maps.model.GroundOverlay; //导入方法依赖的package包/类
/**
* Removes all ground overlays in the given hashmap
*
* @param groundOverlays hashmap of ground overlays to remove
*/
private void removeGroundOverlays(HashMap<KmlGroundOverlay, GroundOverlay> groundOverlays) {
for (GroundOverlay groundOverlay : groundOverlays.values()) {
groundOverlay.remove();
}
}