Files
iTartanas/itranvias_code/com/google/maps.android/data/kml/KmlPlacemark.java
T

60 lines
1.7 KiB
Java

package com.google.maps.android.data.kml;
import com.google.android.gms.maps.model.MarkerOptions;
import com.google.android.gms.maps.model.PolygonOptions;
import com.google.android.gms.maps.model.PolylineOptions;
import com.google.maps.android.data.Feature;
import com.google.maps.android.data.Geometry;
import java.util.Map;
/* JADX INFO: loaded from: classes2.dex */
public class KmlPlacemark extends Feature {
private final KmlStyle mInlineStyle;
private final String mStyle;
public KmlPlacemark(Geometry geometry, String str, KmlStyle kmlStyle, Map<String, String> map) {
super(geometry, str, map);
this.mStyle = str;
this.mInlineStyle = kmlStyle;
}
public String getStyleId() {
return super.getId();
}
public KmlStyle getInlineStyle() {
return this.mInlineStyle;
}
public PolygonOptions getPolygonOptions() {
KmlStyle kmlStyle = this.mInlineStyle;
if (kmlStyle == null) {
return null;
}
return kmlStyle.getPolygonOptions();
}
public MarkerOptions getMarkerOptions() {
KmlStyle kmlStyle = this.mInlineStyle;
if (kmlStyle == null) {
return null;
}
return kmlStyle.getMarkerOptions();
}
public PolylineOptions getPolylineOptions() {
KmlStyle kmlStyle = this.mInlineStyle;
if (kmlStyle == null) {
return null;
}
return kmlStyle.getPolylineOptions();
}
public String toString() {
StringBuilder sb = new StringBuilder("Placemark{\n style id=");
sb.append(this.mStyle);
sb.append(",\n inline style=").append(this.mInlineStyle);
sb.append("\n}\n");
return sb.toString();
}
}