最新产品

This commit is contained in:
2025-09-08 17:01:50 +08:00
commit 8056245ade
119 changed files with 8281 additions and 0 deletions

View File

@ -0,0 +1,222 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@Schema(description = "点标注对象")
@SourceType("point")
public class BillboardObject {
@Schema(description = "唯一标识")
private String id;
@Schema(description = "标注整体的显隐", defaultValue = "true")
private boolean show = true;
@Schema(description = "名称")
private String name;
@Schema(description = "位置(必填)")
private Position position = new Position();
@Schema(description = "高度模式0海拔高度1相对地表2依附地表; 3依附模型", defaultValue = "3")
private int heightMode = 3;
@Schema(description = "是否开启跟随视野缩放", defaultValue = "true")
private boolean scaleByDistance = true;
@Schema(description = "视野缩放最近距离", defaultValue = "2000")
private int near = 2000;
@Schema(description = "视野缩放最远距离", defaultValue = "100000")
private int far = 100000;
@Schema(description = "图标参数")
private Billboard billboard = new Billboard();
@Schema(description = "文字参数")
private Label label = new Label();
@Schema(description = "属性内容")
private Attribute attribute = new Attribute();
@Schema(description = "富文本内容")
private String richTextContent;
@Schema(description = "默认视角")
private CustomView customView = new CustomView();
@Data
@Schema(description = "位置属性")
public static class Position {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
@Data
@Schema(description = "图标参数")
public static class Billboard {
@Schema(description = "图标显隐", defaultValue = "true")
private boolean show = true;
@Schema(description = "图标路径")
private String image;
@Schema(description = "默认图标的唯一标识")
private String defaultImage;
@Schema(description = "图标放大倍数", defaultValue = "3")
private int scale = 3;
}
@Data
@Schema(description = "文字参数")
public static class Label {
@Schema(description = "文字内容")
private String text;
@Schema(description = "文字显隐", defaultValue = "true")
private boolean show = true;
@Schema(description = "文字字体项0黑体1思源黑体2庞门正道标题体3数黑体", defaultValue = "0")
private int fontFamily = 0;
@Schema(description = "文字大小、单位px", defaultValue = "39")
private int fontSize = 39;
@Schema(description = "文字颜色", defaultValue = "#00ffff")
private String color = "#00ffff";
}
@Data
@Schema(description = "属性内容")
public static class Attribute {
@Schema(description = "链接")
private Link link = new Link();
@Schema(description = "全景图")
private Vr vr = new Vr();
@Schema(description = "摄像头")
private Camera camera = new Camera();
@Schema(description = "ISC")
private Isc isc = new Isc();
@Schema(description = "物资")
private Goods goods = new Goods();
@Data
@Schema(description = "链接属性")
public static class Link {
@Schema(description = "链接内容列表")
private List<LinkContent> content = new ArrayList<>();
@Data
@Schema(description = "链接内容")
public static class LinkContent {
@Schema(description = "链接名称")
private String name;
@Schema(description = "链接地址")
private String url;
}
}
@Data
@Schema(description = "全景图属性")
public static class Vr {
@Schema(description = "全景图内容列表")
private List<VrContent> content = new ArrayList<>();
@Data
@Schema(description = "全景图内容")
public static class VrContent {
@Schema(description = "名称")
private String name;
@Schema(description = "地址")
private String url;
}
}
@Data
@Schema(description = "摄像头属性")
public static class Camera {
@Schema(description = "摄像头内容列表")
private List<Object> content = new ArrayList<>();
}
@Data
@Schema(description = "ISC属性")
public static class Isc {
@Schema(description = "ISC内容列表")
private List<Object> content = new ArrayList<>();
}
@Data
@Schema(description = "物资属性")
public static class Goods {
@Schema(description = "物资内容列表")
private List<GoodsContent> content = new ArrayList<>();
@Data
@Schema(description = "物资内容")
public static class GoodsContent {
@Schema(description = "id")
private String id;
@Schema(description = "名称")
private String name;
@Schema(description = "数量")
private String cnt;
}
}
}
@Data
@Schema(description = "默认视角属性")
public static class CustomView {
@Schema(description = "默认视角方位")
private Orientation orientation = new Orientation();
@Schema(description = "视角相对位置")
private RelativePosition relativePosition = new RelativePosition();
@Data
@Schema(description = "视角方位属性")
public static class Orientation {
@Schema(description = "航向角")
private double heading;
@Schema(description = "俯仰角")
private double pitch;
@Schema(description = "翻滚角")
private double roll;
}
@Data
@Schema(description = "视角相对位置属性")
public static class RelativePosition {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
}
}

View File

@ -0,0 +1,70 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import lombok.Data;
import java.util.List;
import java.util.Map;
@Data
@SourceType("circle")
public class Circle {
private String id;
private String name;
private Center center;
private int radius;
private Map<String, Object> customView;
private boolean show;
private String color;
private int heightMode;
private Line line;
private Label label;
private Attribute attribute;
private String richTextContent;
@Data
public static class Center {
private double lng;
private double lat;
private double alt;
}
@Data
public static class Line {
private int width;
private String color;
}
@Data
public static class Label {
private String text;
private boolean show;
private Position position;
private int fontSize;
private int fontFamily;
private String color;
private int lineWidth;
private int pixelOffset;
private List<String> backgroundColor;
private String lineColor;
private boolean scaleByDistance;
private int near;
private int far;
@Data
public static class Position {
private double lng;
private double lat;
private double alt;
}
}
@Data
public static class Attribute {
private Link link;
@Data
public static class Link {
private List<Object> content;
}
}
}

View File

@ -0,0 +1,192 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@Schema(description = "曲线对象")
@SourceType("curve")
public class CurvelineObject {
@Schema(description = "唯一标识")
private String id;
@Schema(description = "名称")
private String name;
@Schema(description = "首尾相反", defaultValue = "false")
private boolean rotate = false;
@Schema(description = "间距", defaultValue = "1")
private int space = 1;
@Schema(description = "速度", defaultValue = "10")
private String speed = "10";
@Schema(description = "空间单位名称", defaultValue = "0")
private String wordsName;
@Schema(description = "长度单位", defaultValue = "0")
private String lengthUnit;
@Schema(description = "线宽", defaultValue = "3")
private double width = 3;
@Schema(description = "颜色", defaultValue = "#ff0000")
private String color = "#ff0000";
@Schema(description = "材质类型 0-实线 1-虚线 2-泛光...", defaultValue = "0")
private int type = 0;
@Schema(description = "高度模式0海拔高度1相对高度2依附模式", defaultValue = "2")
private int heightMode = 2;
@Schema(description = "首尾相连", defaultValue = "false")
private boolean noseToTail = false;
@Schema(description = "线缓冲", defaultValue = "false")
private boolean extend = false;
@Schema(description = "线缓冲宽度", defaultValue = "10")
private double extendWidth = 10;
@Schema(description = "线缓冲颜色", defaultValue = "rgba(255,255,80,0.3)")
private String extendColor = "rgba(255,255,80,0.3)";
@Schema(description = "显隐", defaultValue = "true")
private boolean show = true;
@Schema(description = "经纬度和高度的列表(必填)")
private List<Position> positions = new ArrayList<>();
@Schema(description = "标签对象")
private Label label = new Label();
@Schema(description = "属性内容")
private Attribute attribute = new Attribute();
@Schema(description = "富文本内容")
private String richTextContent;
@Schema(description = "默认视角")
private CustomView customView = new CustomView();
@Data
@Schema(description = "位置属性")
public static class Position {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
@Data
@Schema(description = "标签参数")
public static class Label {
@Schema(description = "标签文本")
private String text;
@Schema(description = "标签显隐")
private Boolean show;
@Schema(description = "标签位置")
private Position position = new Position();
@Schema(description = "字体大小", defaultValue = "20")
private int fontSize = 20;
@Schema(description = "字体项 0黑体1思源黑体2庞门正道标题体3数黑体", defaultValue = "0")
private int fontFamily = 0;
@Schema(description = "字体颜色", defaultValue = "#ffffff")
private String color = "#ffffff";
@Schema(description = "引线宽", defaultValue = "4")
private double lineWidth = 4;
@Schema(description = "引线颜色", defaultValue = "#00ffff80")
private String lineColor = "#00ffff80";
@Schema(description = "字体偏移(引线长度)", defaultValue = "20")
private double pixelOffset = 20;
@Schema(description = "背景颜色", defaultValue = "['#00ffff80', '#00ffff80']")
private String[] backgroundColor = {"#00ffff80", "#00ffff80"};
@Schema(description = "距离缩放")
private Boolean scaleByDistance;
@Schema(description = "视野缩放最近距离", defaultValue = "2000")
private int near = 2000;
@Schema(description = "视野缩放最远距离", defaultValue = "100000")
private int far = 100000;
}
@Data
@Schema(description = "属性内容")
public static class Attribute {
@Schema(description = "链接")
private Link link = new Link();
@Data
@Schema(description = "链接属性")
public static class Link {
@Schema(description = "链接内容列表", defaultValue = "[]")
private List<LinkContent> content = new ArrayList<>();
@Data
@Schema(description = "链接内容")
public static class LinkContent {
@Schema(description = "链接名称")
private String name;
@Schema(description = "链接地址")
private String url;
}
}
}
@Data
@Schema(description = "默认视角属性")
public static class CustomView {
@Schema(description = "默认视角方位")
private Orientation orientation = new Orientation();
@Schema(description = "视角相对位置")
private RelativePosition relativePosition = new RelativePosition();
@Data
@Schema(description = "视角方位属性")
public static class Orientation {
@Schema(description = "航向角")
private double heading;
@Schema(description = "俯仰角")
private double pitch;
@Schema(description = "翻滚角")
private double roll;
}
@Data
@Schema(description = "视角相对位置属性")
public static class RelativePosition {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
}
}

View File

@ -0,0 +1,26 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import lombok.Data;
import java.util.Map;
@Data
@SourceType("groundText")
public class GroundText {
private String id;
private Map<String, Object> customView;
private boolean show;
private String text;
private double angle;
private int scale;
private int speed;
private String color;
private Position position;
@Data
public static class Position {
private double lng;
private double lat;
}
}

View File

@ -0,0 +1,11 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import lombok.Data;
@Data
@SourceType("layer")
public class Layer {
private Integer alpha;
private Integer brightness;
}

View File

@ -0,0 +1,187 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@Schema(description = "箭头对象")
@SourceType("attackArrow")
public class PolygonAttackArrowObject {
@Schema(description = "唯一标识")
private String id;
@Schema(description = "显示/隐藏", defaultValue = "true")
private boolean show = true;
@Schema(description = "名称")
private String name;
@Schema(description = "颜色", defaultValue = "rgba(255, 0, 0, 0.5)")
private String color = "rgba(255, 0, 0, 0.5)";
@Schema(description = "高度")
private double height;
@Schema(description = "高度模式0海拔高度1相对地表2依附模式", defaultValue = "2")
private int heightMode = 2;
@Schema(description = "面积单位", defaultValue = "平方米")
private String areaUnit = "平方米";
@Schema(description = "边框")
private Line line = new Line();
@Schema(description = "经纬度和高度的列表(必填)")
private List<Position> positions = new ArrayList<>();
@Schema(description = "动画", defaultValue = "false")
private boolean spreadState = false;
@Schema(description = "动画重复", defaultValue = "false")
private boolean loop = false;
@Schema(description = "动画持续时长(毫秒)", defaultValue = "3000")
private int spreadTime = 3000;
@Schema(description = "标签对象")
private Label label = new Label();
@Schema(description = "属性内容")
private Attribute attribute = new Attribute();
@Schema(description = "富文本内容")
private String richTextContent;
@Schema(description = "默认视角")
private CustomView customView = new CustomView();
@Data
@Schema(description = "边框属性")
public static class Line {
@Schema(description = "边框宽", defaultValue = "2")
private double width = 2;
@Schema(description = "边框颜色", defaultValue = "rgba(155, 155, 124, 0.89)")
private String color = "rgba(155, 155, 124, 0.89)";
}
@Data
@Schema(description = "位置属性")
public static class Position {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
@Data
@Schema(description = "标签参数")
public static class Label {
@Schema(description = "标签文本")
private String text;
@Schema(description = "标签显隐")
private Boolean show;
@Schema(description = "标签位置")
private Position position = new Position();
@Schema(description = "字体大小", defaultValue = "20")
private int fontSize = 20;
@Schema(description = "字体项 0黑体1思源黑体2庞门正道标题体3数黑体", defaultValue = "0")
private int fontFamily = 0;
@Schema(description = "字体颜色", defaultValue = "#ffffff")
private String color = "#ffffff";
@Schema(description = "引线宽", defaultValue = "4")
private double lineWidth = 4;
@Schema(description = "引线颜色", defaultValue = "#00ffff80")
private String lineColor = "#00ffff80";
@Schema(description = "字体偏移(引线长度)", defaultValue = "20")
private double pixelOffset = 20;
@Schema(description = "背景颜色", defaultValue = "['#00ffff80', '#00ffff80']")
private String[] backgroundColor = {"#00ffff80", "#00ffff80"};
@Schema(description = "距离缩放", defaultValue = "false")
private boolean scaleByDistance = false;
@Schema(description = "视野缩放最近距离", defaultValue = "2000")
private int near = 2000;
@Schema(description = "视野缩放最远距离", defaultValue = "100000")
private int far = 100000;
}
@Data
@Schema(description = "属性内容")
public static class Attribute {
@Schema(description = "链接", defaultValue = "{}")
private Link link = new Link();
@Data
@Schema(description = "链接属性")
public static class Link {
@Schema(description = "链接内容列表", defaultValue = "[]")
private List<LinkContent> content = new ArrayList<>();
@Data
@Schema(description = "链接内容")
public static class LinkContent {
@Schema(description = "链接名称")
private String name;
@Schema(description = "链接地址")
private String url;
}
}
}
@Data
@Schema(description = "默认视角属性")
public static class CustomView {
@Schema(description = "默认视角方位")
private Orientation orientation = new Orientation();
@Schema(description = "视角相对位置")
private RelativePosition relativePosition = new RelativePosition();
@Data
@Schema(description = "视角方位属性")
public static class Orientation {
@Schema(description = "航向角")
private double heading;
@Schema(description = "俯仰角")
private double pitch;
@Schema(description = "翻滚角")
private double roll;
}
@Data
@Schema(description = "视角相对位置属性")
public static class RelativePosition {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
}
}

View File

@ -0,0 +1,178 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@Schema(description = "多边形对象")
@SourceType("panel")
public class PolygonPanelObject {
@Schema(description = "唯一标识")
private String id;
@Schema(description = "显示/隐藏", defaultValue = "true")
private boolean show = true;
@Schema(description = "名称")
private String name;
@Schema(description = "颜色", defaultValue = "rgba(255, 0, 0, 0.5)")
private String color = "rgba(255, 0, 0, 0.5)";
@Schema(description = "高度")
private double height;
@Schema(description = "高度模式0海拔高度1相对地表2依附模式", defaultValue = "2")
private int heightMode = 2;
@Schema(description = "面积单位", defaultValue = "平方米")
private String areaUnit = "平方米";
@Schema(description = "边框")
private Line line = new Line();
@Schema(description = "经纬度和高度的列表(必填)")
private List<Position> positions = new ArrayList<>();
@Schema(description = "标签对象")
private Label label = new Label();
@Schema(description = "属性内容")
private Attribute attribute = new Attribute();
@Schema(description = "富文本内容")
private String richTextContent;
@Schema(description = "默认视角")
private CustomView customView = new CustomView();
@Data
@Schema(description = "边框属性")
public static class Line {
@Schema(description = "边框宽", defaultValue = "2")
private double width = 2;
@Schema(description = "边框颜色", defaultValue = "rgba(155, 155, 124, 0.89)")
private String color = "rgba(155, 155, 124, 0.89)";
}
@Data
@Schema(description = "位置属性")
public static class Position {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
@Data
@Schema(description = "标签参数")
public static class Label {
@Schema(description = "标签文本")
private String text;
@Schema(description = "标签显隐")
private Boolean show;
@Schema(description = "标签位置")
private Position position = new Position();
@Schema(description = "字体大小", defaultValue = "20")
private int fontSize = 20;
@Schema(description = "字体项 0黑体1思源黑体2庞门正道标题体3数黑体", defaultValue = "0")
private int fontFamily = 0;
@Schema(description = "字体颜色", defaultValue = "#ffffff")
private String color = "#ffffff";
@Schema(description = "引线宽", defaultValue = "4")
private double lineWidth = 4;
@Schema(description = "引线颜色", defaultValue = "#00ffff80")
private String lineColor = "#00ffff80";
@Schema(description = "字体偏移(引线长度)", defaultValue = "20")
private double pixelOffset = 20;
@Schema(description = "背景颜色", defaultValue = "['#00ffff80', '#00ffff80']")
private String[] backgroundColor = {"#00ffff80", "#00ffff80"};
@Schema(description = "距离缩放", defaultValue = "false")
private boolean scaleByDistance = false;
@Schema(description = "视野缩放最近距离", defaultValue = "2000")
private int near = 2000;
@Schema(description = "视野缩放最远距离", defaultValue = "100000")
private int far = 100000;
}
@Data
@Schema(description = "属性内容")
public static class Attribute {
@Schema(description = "链接", defaultValue = "{}")
private Link link = new Link();
@Data
@Schema(description = "链接属性")
public static class Link {
@Schema(description = "链接内容列表", defaultValue = "[]")
private List<LinkContent> content = new ArrayList<>();
@Data
@Schema(description = "链接内容")
public static class LinkContent {
@Schema(description = "链接名称")
private String name;
@Schema(description = "链接地址")
private String url;
}
}
}
@Data
@Schema(description = "默认视角属性")
public static class CustomView {
@Schema(description = "默认视角方位")
private Orientation orientation = new Orientation();
@Schema(description = "视角相对位置")
private RelativePosition relativePosition = new RelativePosition();
@Data
@Schema(description = "视角方位属性")
public static class Orientation {
@Schema(description = "航向角")
private double heading;
@Schema(description = "俯仰角")
private double pitch;
@Schema(description = "翻滚角")
private double roll;
}
@Data
@Schema(description = "视角相对位置属性")
public static class RelativePosition {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
}
}

View File

@ -0,0 +1,187 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@Schema(description = "钳形箭头对象")
@SourceType("pincerArrow")
public class PolygonPincerArrowObject {
@Schema(description = "唯一标识")
private String id;
@Schema(description = "显示/隐藏", defaultValue = "true")
private boolean show = true;
@Schema(description = "名称")
private String name;
@Schema(description = "颜色", defaultValue = "rgba(255, 0, 0, 0.5)")
private String color = "rgba(255, 0, 0, 0.5)";
@Schema(description = "高度")
private double height;
@Schema(description = "高度模式0海拔高度1相对地表2依附模式", defaultValue = "2")
private int heightMode = 2;
@Schema(description = "面积单位", defaultValue = "平方米")
private String areaUnit = "平方米";
@Schema(description = "边框")
private Line line = new Line();
@Schema(description = "经纬度和高度的列表(必填)")
private List<Position> positions = new ArrayList<>();
@Schema(description = "动画", defaultValue = "false")
private boolean spreadState = false;
@Schema(description = "动画重复", defaultValue = "false")
private boolean loop = false;
@Schema(description = "动画持续时长(毫秒)", defaultValue = "3000")
private int spreadTime = 3000;
@Schema(description = "标签对象")
private Label label = new Label();
@Schema(description = "属性内容")
private Attribute attribute = new Attribute();
@Schema(description = "富文本内容")
private String richTextContent;
@Schema(description = "默认视角")
private CustomView customView = new CustomView();
@Data
@Schema(description = "边框属性")
public static class Line {
@Schema(description = "边框宽", defaultValue = "2")
private double width = 2;
@Schema(description = "边框颜色", defaultValue = "rgba(155, 155, 124, 0.89)")
private String color = "rgba(155, 155, 124, 0.89)";
}
@Data
@Schema(description = "位置属性")
public static class Position {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
@Data
@Schema(description = "标签参数")
public static class Label {
@Schema(description = "标签文本")
private String text;
@Schema(description = "标签显隐")
private Boolean show;
@Schema(description = "标签位置")
private Position position = new Position();
@Schema(description = "字体大小", defaultValue = "20")
private int fontSize = 20;
@Schema(description = "字体项 0黑体1思源黑体2庞门正道标题体3数黑体", defaultValue = "0")
private int fontFamily = 0;
@Schema(description = "字体颜色", defaultValue = "#ffffff")
private String color = "#ffffff";
@Schema(description = "引线宽", defaultValue = "4")
private double lineWidth = 4;
@Schema(description = "引线颜色", defaultValue = "#00ffff80")
private String lineColor = "#00ffff80";
@Schema(description = "字体偏移(引线长度)", defaultValue = "20")
private double pixelOffset = 20;
@Schema(description = "背景颜色", defaultValue = "['#00ffff80', '#00ffff80']")
private String[] backgroundColor = {"#00ffff80", "#00ffff80"};
@Schema(description = "距离缩放", defaultValue = "false")
private boolean scaleByDistance = false;
@Schema(description = "视野缩放最近距离", defaultValue = "2000")
private int near = 2000;
@Schema(description = "视野缩放最远距离", defaultValue = "100000")
private int far = 100000;
}
@Data
@Schema(description = "属性内容")
public static class Attribute {
@Schema(description = "链接", defaultValue = "{}")
private Link link = new Link();
@Data
@Schema(description = "链接属性")
public static class Link {
@Schema(description = "链接内容列表", defaultValue = "[]")
private List<LinkContent> content = new ArrayList<>();
@Data
@Schema(description = "链接内容")
public static class LinkContent {
@Schema(description = "链接名称")
private String name;
@Schema(description = "链接地址")
private String url;
}
}
}
@Data
@Schema(description = "默认视角属性")
public static class CustomView {
@Schema(description = "默认视角方位")
private Orientation orientation = new Orientation();
@Schema(description = "视角相对位置")
private RelativePosition relativePosition = new RelativePosition();
@Data
@Schema(description = "视角方位属性")
public static class Orientation {
@Schema(description = "航向角")
private double heading;
@Schema(description = "俯仰角")
private double pitch;
@Schema(description = "翻滚角")
private double roll;
}
@Data
@Schema(description = "视角相对位置属性")
public static class RelativePosition {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
}
}

View File

@ -0,0 +1,178 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@Schema(description = "矩形对象")
@SourceType("rectangle")
public class PolygonRectangleObject {
@Schema(description = "唯一标识")
private String id;
@Schema(description = "显示/隐藏", defaultValue = "true")
private boolean show = true;
@Schema(description = "名称")
private String name;
@Schema(description = "颜色", defaultValue = "rgba(255, 0, 0, 0.5)")
private String color = "rgba(255, 0, 0, 0.5)";
@Schema(description = "高度")
private double height;
@Schema(description = "高度模式0海拔高度1相对地表2依附模式", defaultValue = "2")
private int heightMode = 2;
@Schema(description = "面积单位", defaultValue = "平方米")
private String areaUnit = "平方米";
@Schema(description = "边框")
private Line line = new Line();
@Schema(description = "经纬度和高度的列表(必填)")
private List<Position> positions = new ArrayList<>();
@Schema(description = "标签对象")
private Label label = new Label();
@Schema(description = "属性内容")
private Attribute attribute = new Attribute();
@Schema(description = "富文本内容")
private String richTextContent;
@Schema(description = "默认视角")
private CustomView customView = new CustomView();
@Data
@Schema(description = "边框属性")
public static class Line {
@Schema(description = "边框宽", defaultValue = "2")
private double width = 2;
@Schema(description = "边框颜色", defaultValue = "rgba(155, 155, 124, 0.89)")
private String color = "rgba(155, 155, 124, 0.89)";
}
@Data
@Schema(description = "位置属性")
public static class Position {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
@Data
@Schema(description = "标签参数")
public static class Label {
@Schema(description = "标签文本")
private String text;
@Schema(description = "标签显隐")
private Boolean show;
@Schema(description = "标签位置")
private Position position = new Position();
@Schema(description = "字体大小", defaultValue = "20")
private int fontSize = 20;
@Schema(description = "字体项 0黑体1思源黑体2庞门正道标题体3数黑体", defaultValue = "0")
private int fontFamily = 0;
@Schema(description = "字体颜色", defaultValue = "#ffffff")
private String color = "#ffffff";
@Schema(description = "引线宽", defaultValue = "4")
private double lineWidth = 4;
@Schema(description = "引线颜色", defaultValue = "#00ffff80")
private String lineColor = "#00ffff80";
@Schema(description = "字体偏移(引线长度)", defaultValue = "20")
private double pixelOffset = 20;
@Schema(description = "背景颜色", defaultValue = "['#00ffff80', '#00ffff80']")
private String[] backgroundColor = {"#00ffff80", "#00ffff80"};
@Schema(description = "距离缩放", defaultValue = "false")
private boolean scaleByDistance = false;
@Schema(description = "视野缩放最近距离", defaultValue = "2000")
private int near = 2000;
@Schema(description = "视野缩放最远距离", defaultValue = "100000")
private int far = 100000;
}
@Data
@Schema(description = "属性内容")
public static class Attribute {
@Schema(description = "链接", defaultValue = "{}")
private Link link = new Link();
@Data
@Schema(description = "链接属性")
public static class Link {
@Schema(description = "链接内容列表", defaultValue = "[]")
private List<LinkContent> content = new ArrayList<>();
@Data
@Schema(description = "链接内容")
public static class LinkContent {
@Schema(description = "链接名称")
private String name;
@Schema(description = "链接地址")
private String url;
}
}
}
@Data
@Schema(description = "默认视角属性")
public static class CustomView {
@Schema(description = "默认视角方位")
private Orientation orientation = new Orientation();
@Schema(description = "视角相对位置")
private RelativePosition relativePosition = new RelativePosition();
@Data
@Schema(description = "视角方位属性")
public static class Orientation {
@Schema(description = "航向角")
private double heading;
@Schema(description = "俯仰角")
private double pitch;
@Schema(description = "翻滚角")
private double roll;
}
@Data
@Schema(description = "视角相对位置属性")
public static class RelativePosition {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
}
}

View File

@ -0,0 +1,178 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@Schema(description = "集结地对象")
@SourceType("rendezvous")
public class PolygonRendezvousObject {
@Schema(description = "唯一标识")
private String id;
@Schema(description = "显示/隐藏", defaultValue = "true")
private boolean show = true;
@Schema(description = "名称")
private String name;
@Schema(description = "颜色", defaultValue = "rgba(255, 0, 0, 0.5)")
private String color = "rgba(255, 0, 0, 0.5)";
@Schema(description = "高度")
private double height;
@Schema(description = "高度模式0海拔高度1相对地表2依附模式", defaultValue = "2")
private int heightMode = 2;
@Schema(description = "面积单位", defaultValue = "平方米")
private String areaUnit = "平方米";
@Schema(description = "边框")
private Line line = new Line();
@Schema(description = "经纬度和高度的列表(必填)")
private List<Position> positions = new ArrayList<>();
@Schema(description = "标签对象")
private Label label = new Label();
@Schema(description = "属性内容")
private Attribute attribute = new Attribute();
@Schema(description = "富文本内容")
private String richTextContent;
@Schema(description = "默认视角")
private CustomView customView = new CustomView();
@Data
@Schema(description = "边框属性")
public static class Line {
@Schema(description = "边框宽", defaultValue = "2")
private double width = 2;
@Schema(description = "边框颜色", defaultValue = "rgba(155, 155, 124, 0.89)")
private String color = "rgba(155, 155, 124, 0.89)";
}
@Data
@Schema(description = "位置属性")
public static class Position {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
@Data
@Schema(description = "标签参数")
public static class Label {
@Schema(description = "标签文本")
private String text;
@Schema(description = "标签显隐")
private Boolean show;
@Schema(description = "标签位置")
private Position position = new Position();
@Schema(description = "字体大小", defaultValue = "20")
private int fontSize = 20;
@Schema(description = "字体项 0黑体1思源黑体2庞门正道标题体3数黑体", defaultValue = "0")
private int fontFamily = 0;
@Schema(description = "字体颜色", defaultValue = "#ffffff")
private String color = "#ffffff";
@Schema(description = "引线宽", defaultValue = "4")
private double lineWidth = 4;
@Schema(description = "引线颜色", defaultValue = "#00ffff80")
private String lineColor = "#00ffff80";
@Schema(description = "字体偏移(引线长度)", defaultValue = "20")
private double pixelOffset = 20;
@Schema(description = "背景颜色", defaultValue = "['#00ffff80', '#00ffff80']")
private String[] backgroundColor = {"#00ffff80", "#00ffff80"};
@Schema(description = "距离缩放", defaultValue = "false")
private boolean scaleByDistance = false;
@Schema(description = "视野缩放最近距离", defaultValue = "2000")
private int near = 2000;
@Schema(description = "视野缩放最远距离", defaultValue = "100000")
private int far = 100000;
}
@Data
@Schema(description = "属性内容")
public static class Attribute {
@Schema(description = "链接", defaultValue = "{}")
private Link link = new Link();
@Data
@Schema(description = "链接属性")
public static class Link {
@Schema(description = "链接内容列表", defaultValue = "[]")
private List<LinkContent> content = new ArrayList<>();
@Data
@Schema(description = "链接内容")
public static class LinkContent {
@Schema(description = "链接名称")
private String name;
@Schema(description = "链接地址")
private String url;
}
}
}
@Data
@Schema(description = "默认视角属性")
public static class CustomView {
@Schema(description = "默认视角方位")
private Orientation orientation = new Orientation();
@Schema(description = "视角相对位置")
private RelativePosition relativePosition = new RelativePosition();
@Data
@Schema(description = "视角方位属性")
public static class Orientation {
@Schema(description = "航向角")
private double heading;
@Schema(description = "俯仰角")
private double pitch;
@Schema(description = "翻滚角")
private double roll;
}
@Data
@Schema(description = "视角相对位置属性")
public static class RelativePosition {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
}
}

View File

@ -0,0 +1,194 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
@Schema(description = "线对象")
@SourceType("line")
public class PolylineObject {
@Schema(description = "唯一标识")
private String id;
@Schema(description = "名称")
private String name;
@Schema(description = "首尾相反", defaultValue = "false")
private boolean rotate = false;
@Schema(description = "间距", defaultValue = "1")
private int space = 1;
@Schema(description = "速度", defaultValue = "10")
private String speed = "10";
@Schema(description = "空间单位名称", defaultValue = "0")
private String wordsName;
@Schema(description = "长度单位", defaultValue = "0")
private String lengthUnit;
@Schema(description = "线宽", defaultValue = "3")
private double width = 3;
@Schema(description = "颜色", defaultValue = "#ff0000")
private String color = "#ff0000";
@Schema(description = "材质类型 0-实线 1-虚线 2-泛光...", defaultValue = "0")
private int type = 0;
@Schema(description = "高度模式0海拔高度1相对高度2依附模式", defaultValue = "2")
private int heightMode = 2;
@Schema(description = "首尾相连", defaultValue = "false")
private boolean noseToTail = false;
@Schema(description = "线段圆滑", defaultValue = "false")
private boolean smooth = false;
@Schema(description = "线缓冲", defaultValue = "false")
private boolean extend = false;
@Schema(description = "线缓冲宽度", defaultValue = "10")
private double extendWidth = 10;
@Schema(description = "线缓冲颜色", defaultValue = "rgba(255,255,80,0.3)")
private String extendColor = "rgba(255,255,80,0.3)";
@Schema(description = "显隐", defaultValue = "true")
private boolean show = true;
@Schema(description = "经纬度和高度的列表(必填)")
private List<Position> positions = new ArrayList<>();
@Schema(description = "标签对象")
private Label label = new Label();
@Schema(description = "属性内容")
private Attribute attribute = new Attribute();
@Schema(description = "富文本内容")
private String richTextContent;
@Schema(description = "默认视角")
private CustomView customView = new CustomView();
@Data
@Schema(description = "位置属性")
public static class Position {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
@Data
@Schema(description = "标签参数")
public static class Label {
@Schema(description = "标签文本")
private String text;
@Schema(description = "标签显隐")
private Boolean show;
@Schema(description = "标签位置")
private Position position = new Position();
@Schema(description = "字体大小", defaultValue = "20")
private int fontSize = 20;
@Schema(description = "字体项 0黑体1思源黑体2庞门正道标题体3数黑体", defaultValue = "0")
private int fontFamily = 0;
@Schema(description = "字体颜色", defaultValue = "#ffffff")
private String color = "#ffffff";
@Schema(description = "引线宽", defaultValue = "4")
private double lineWidth = 4;
@Schema(description = "引线颜色", defaultValue = "#00ffff80")
private String lineColor = "#00ffff80";
@Schema(description = "字体偏移(引线长度)", defaultValue = "20")
private double pixelOffset = 20;
@Schema(description = "背景颜色", defaultValue = "['#00ffff80', '#00ffff80']")
private String[] backgroundColor = {"#00ffff80", "#00ffff80"};
@Schema(description = "距离缩放")
private Boolean scaleByDistance;
@Schema(description = "视野缩放最近距离", defaultValue = "2000")
private int near = 2000;
@Schema(description = "视野缩放最远距离", defaultValue = "100000")
private int far = 100000;
}
@Data
@Schema(description = "属性内容")
public static class Attribute {
@Schema(description = "链接")
private Link link = new Link();
@Data
@Schema(description = "链接属性")
public static class Link {
@Schema(description = "链接内容列表", defaultValue = "[]")
private List<LinkContent> content = new ArrayList<>();
@Data
@Schema(description = "链接内容")
public static class LinkContent {
@Schema(description = "链接名称")
private String name;
@Schema(description = "链接地址")
private String url;
}
}
}
@Data
@Schema(description = "默认视角属性")
public static class CustomView {
@Schema(description = "默认视角方位")
private Orientation orientation = new Orientation();
@Schema(description = "视角相对位置")
private RelativePosition relativePosition = new RelativePosition();
@Data
@Schema(description = "视角方位属性")
public static class Orientation {
@Schema(description = "航向角")
private double heading;
@Schema(description = "俯仰角")
private double pitch;
@Schema(description = "翻滚角")
private double roll;
}
@Data
@Schema(description = "视角相对位置属性")
public static class RelativePosition {
@Schema(description = "经度")
private double lng;
@Schema(description = "纬度")
private double lat;
@Schema(description = "高度")
private double alt;
}
}
}

View File

@ -0,0 +1,25 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import lombok.Data;
import java.util.List;
import java.util.Map;
@Data
@SourceType("standText")
public class StandText {
private String id;
private List<Position> positions;
private Map<String, Object> customView;
private boolean show;
private String text;
private String color;
private int speed;
@Data
public static class Position {
private double lng;
private double lat;
private double alt;
}
}

View File

@ -0,0 +1,33 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Map;
@Data
@SourceType("tileset")
public class Tileset {
private Orientation orientation;
private Position position;
private String id;
private Map<String, Object> customView;
private boolean show;
private String name;
private int accuracy;
@Data
public static class Orientation {
private int heading;
private int roll;
private int pitch;
}
@Data
public static class Position {
private double lng;
private double lat;
private double alt;
}
}

View File

@ -0,0 +1,7 @@
package com.yj.earth.params;
import com.yj.earth.annotation.SourceType;
@SourceType("wallStereoscopic")
public class WallStereoscopic {
}