mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-01-11 11:55:48 +01:00
Add tag support and implement Z-Index API
This commit is contained in:
parent
ce9f40e9d9
commit
e32cb84397
2
extern/GmsApi
vendored
2
extern/GmsApi
vendored
@ -1 +1 @@
|
||||
Subproject commit a57ac35b5da42e8b7f78cb1cd002daae404420fb
|
||||
Subproject commit aa18e807a36440f67a16ca70f29e75ba3bc04e0b
|
@ -22,6 +22,7 @@ import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
import com.google.android.gms.dynamic.ObjectWrapper;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import com.google.android.gms.maps.model.MarkerOptions;
|
||||
import com.google.android.gms.maps.model.internal.IMarkerDelegate;
|
||||
@ -42,6 +43,7 @@ public class MarkerImpl extends IMarkerDelegate.Stub implements MarkerItemMarkup
|
||||
private BitmapDescriptorImpl icon;
|
||||
private AndroidBitmap oldBitmap;
|
||||
private boolean removed = false;
|
||||
private IObjectWrapper tag = null;
|
||||
|
||||
public MarkerImpl(String id, MarkerOptions options, MarkupListener listener) {
|
||||
this.id = id;
|
||||
@ -264,4 +266,24 @@ public class MarkerImpl extends IMarkerDelegate.Stub implements MarkerItemMarkup
|
||||
private void prepareMarkerIcon(MarkerItem item) {
|
||||
item.setMarker(new MarkerSymbol(oldBitmap, options.getAnchorU(), options.getAnchorV(), !options.isFlat()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setZIndex(float zIndex) {
|
||||
options.zIndex(zIndex);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getZIndex() {
|
||||
return options.getZIndex();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTag(IObjectWrapper obj) {
|
||||
this.tag = obj;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IObjectWrapper getTag() {
|
||||
return this.tag == null ? ObjectWrapper.wrap(null) : this.tag;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user