58 lines
1.3 KiB
Java
58 lines
1.3 KiB
Java
package com.yj.earth.params;
|
|
|
|
import com.yj.earth.annotation.SourceType;
|
|
import lombok.Data;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@Data
|
|
@SourceType("polyhedronObject")
|
|
public class PolyhedronObject {
|
|
private String id;
|
|
private String name;
|
|
private List<Position> positions;
|
|
private boolean show;
|
|
private String color;
|
|
private int height;
|
|
private int extrudedHeight;
|
|
private Map<String, Object> customView;
|
|
private Label label;
|
|
private Attribute attribute;
|
|
private String richTextContent;
|
|
|
|
@Data
|
|
public static class Position {
|
|
private double lng;
|
|
private double lat;
|
|
private double alt;
|
|
}
|
|
|
|
@Data
|
|
public static class Label {
|
|
private String text;
|
|
private boolean show;
|
|
private Position position;
|
|
private int fontSize;
|
|
private int fontFamily;
|
|
private String color;
|
|
private double lineWidth;
|
|
private double pixelOffset;
|
|
private String[] backgroundColor;
|
|
private String lineColor;
|
|
private boolean scaleByDistance;
|
|
private int near;
|
|
private int far;
|
|
}
|
|
|
|
@Data
|
|
public static class Attribute {
|
|
private Link link;
|
|
|
|
@Data
|
|
public static class Link {
|
|
private List<Object> content;
|
|
}
|
|
}
|
|
}
|