This commit is contained in:
wangcongtao
2020-12-14 19:16:40 +08:00
parent 9db6d9e821
commit 578a5fc383
33 changed files with 670 additions and 660 deletions

View File

@@ -4,6 +4,8 @@ import android.graphics.Bitmap;
import android.location.Location;
import android.view.View;
import androidx.annotation.RawRes;
import com.mogo.map.MogoLatLng;
import com.mogo.map.location.MogoLocation;
@@ -71,6 +73,8 @@ public class MogoMarkerOptions extends Observable {
*/
private boolean mAutoManager = true;
private @RawRes int mIcon3DRes = 0;
public MogoMarkerOptions position( MogoLatLng latLng ){
if ( latLng != null ) {
latitude( latLng.lat );
@@ -212,6 +216,11 @@ public class MogoMarkerOptions extends Observable {
return this;
}
public MogoMarkerOptions icon3DRes(@RawRes int icon3DRes){
this.mIcon3DRes = icon3DRes;
return this;
}
public double getLatitude() {
return latitude;
}
@@ -309,6 +318,10 @@ public class MogoMarkerOptions extends Observable {
return this;
}
public int getIcon3DRes() {
return mIcon3DRes;
}
@Override
public String toString() {
return "MogoMarkerOptions{" +