Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
package com.google.maps.android.data.kml;
|
||||
|
||||
import com.google.android.gms.maps.model.GroundOverlayOptions;
|
||||
import com.google.android.gms.maps.model.LatLngBounds;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public class KmlGroundOverlay {
|
||||
private final GroundOverlayOptions mGroundOverlayOptions;
|
||||
private String mImageUrl;
|
||||
private LatLngBounds mLatLngBox;
|
||||
private final Map<String, String> mProperties;
|
||||
|
||||
KmlGroundOverlay(String str, LatLngBounds latLngBounds, float f, int i, HashMap<String, String> map, float f2) {
|
||||
GroundOverlayOptions groundOverlayOptions = new GroundOverlayOptions();
|
||||
this.mGroundOverlayOptions = groundOverlayOptions;
|
||||
this.mImageUrl = str;
|
||||
this.mProperties = map;
|
||||
if (latLngBounds == null) {
|
||||
throw new IllegalArgumentException("No LatLonBox given");
|
||||
}
|
||||
this.mLatLngBox = latLngBounds;
|
||||
groundOverlayOptions.positionFromBounds(latLngBounds);
|
||||
groundOverlayOptions.bearing(f2);
|
||||
groundOverlayOptions.zIndex(f);
|
||||
groundOverlayOptions.visible(i != 0);
|
||||
}
|
||||
|
||||
public String getImageUrl() {
|
||||
return this.mImageUrl;
|
||||
}
|
||||
|
||||
public LatLngBounds getLatLngBox() {
|
||||
return this.mLatLngBox;
|
||||
}
|
||||
|
||||
public Iterable<String> getProperties() {
|
||||
return this.mProperties.keySet();
|
||||
}
|
||||
|
||||
public String getProperty(String str) {
|
||||
return this.mProperties.get(str);
|
||||
}
|
||||
|
||||
public boolean hasProperty(String str) {
|
||||
return this.mProperties.get(str) != null;
|
||||
}
|
||||
|
||||
GroundOverlayOptions getGroundOverlayOptions() {
|
||||
return this.mGroundOverlayOptions;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("GroundOverlay{\n properties=");
|
||||
sb.append(this.mProperties);
|
||||
sb.append(",\n image url=").append(this.mImageUrl);
|
||||
sb.append(",\n LatLngBox=").append(this.mLatLngBox);
|
||||
sb.append("\n}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user