修复了marker点击切换的bug

This commit is contained in:
董宏宇
2020-01-13 11:41:21 +08:00
parent ef8e4979d3
commit c12d3a87bd
18 changed files with 185 additions and 115 deletions

View File

@@ -8,7 +8,7 @@ import java.io.Serializable;
public class MarkerLocation implements Serializable {
private String address;
private Double angle;
private float angle;
private Double lat;
private Double lon;
@@ -20,11 +20,11 @@ public class MarkerLocation implements Serializable {
this.address = address;
}
public Double getAngle() {
public float getAngle() {
return angle;
}
public void setAngle(Double angle) {
public void setAngle(float angle) {
this.angle = angle;
}

View File

@@ -1,5 +1,7 @@
package com.mogo.module.common.entity;
import java.util.Objects;
/**
* author : donghongyu
* e-mail : 1358506549@qq.com
@@ -73,6 +75,19 @@ public class MarkerShowEntity {
this.markerLocation = markerLocation;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MarkerShowEntity that = (MarkerShowEntity) o;
return bindObj.equals(that.bindObj);
}
@Override
public int hashCode() {
return Objects.hash(bindObj);
}
@Override
public String toString() {
return "MarkerShowEntity{" +