use of net.osmand.aidlapi.maplayer.point.AMapPoint in project Osmand by osmandapp.
the class AMapLayer method readFromBundle.
@Override
protected void readFromBundle(Bundle bundle) {
id = bundle.getString("id");
name = bundle.getString("name");
zOrder = bundle.getFloat("zOrder");
imagePoints = bundle.getBoolean("imagePoints");
circlePointMinZoom = bundle.getInt("circlePointMinZoom");
circlePointMaxZoom = bundle.getInt("circlePointMaxZoom");
smallPointMinZoom = bundle.getInt("smallPointMinZoom");
smallPointMaxZoom = bundle.getInt("smallPointMaxZoom");
bigPointMinZoom = bundle.getInt("bigPointMinZoom");
bigPointMaxZoom = bundle.getInt("bigPointMaxZoom");
bundle.setClassLoader(AMapPoint.class.getClassLoader());
List<AMapPoint> pointList = bundle.getParcelableArrayList("points");
if (pointList != null) {
for (AMapPoint p : pointList) {
this.points.put(p.getId(), p);
}
}
}
Aggregations