feat(map): add synthetic moving target layer
This commit is contained in:
@@ -57,6 +57,52 @@ export type MapCamera = {
|
||||
roll: number;
|
||||
};
|
||||
|
||||
export type MapGeoPoint = {
|
||||
longitude: number;
|
||||
latitude: number;
|
||||
};
|
||||
|
||||
export type MapGhostPin = MapGeoPoint & {
|
||||
id: string;
|
||||
label: string;
|
||||
heading_degrees: number;
|
||||
speed_meters_per_second: number;
|
||||
};
|
||||
|
||||
export type MapGhostPinLabelMode = "subject_id" | "attributes" | "none";
|
||||
|
||||
export type MapGhostPinPresentation = {
|
||||
color: string;
|
||||
opacity: number;
|
||||
stem_height_meters: number;
|
||||
head_size_px: number;
|
||||
stem_width_px: number;
|
||||
outline_color: string;
|
||||
outline_opacity: number;
|
||||
outline_width_px: number;
|
||||
label_mode: MapGhostPinLabelMode;
|
||||
label_font_weight: number;
|
||||
label_size_px: number;
|
||||
label_color: string;
|
||||
label_background_color: string;
|
||||
label_background_opacity: number;
|
||||
label_padding_x: number;
|
||||
label_padding_y: number;
|
||||
label_offset_x: number;
|
||||
label_offset_y: number;
|
||||
label_max_length: number;
|
||||
label_hide_camera_height_meters: number;
|
||||
target_hide_camera_height_meters: number;
|
||||
};
|
||||
|
||||
export type MapGhostPinLayer = {
|
||||
anchor: MapGeoPoint | null;
|
||||
radius_meters: number;
|
||||
simulation_enabled: boolean;
|
||||
pins: readonly MapGhostPin[];
|
||||
presentation: MapGhostPinPresentation;
|
||||
};
|
||||
|
||||
export type MapLayerVisibility = {
|
||||
imagery: boolean;
|
||||
terrain: boolean;
|
||||
@@ -119,8 +165,14 @@ export type CesiumMapRendererProps = {
|
||||
layers: MapLayerVisibility;
|
||||
settings: MapVisualSettings;
|
||||
cacheIntent: MapCacheIntent;
|
||||
ghostPins?: MapGhostPinLayer;
|
||||
rendererGeneration?: number;
|
||||
className?: string;
|
||||
onRuntimeStateChange?: (state: MapRuntimeState) => void;
|
||||
onCameraChange?: (camera: MapCamera) => void;
|
||||
};
|
||||
|
||||
export type CesiumMapRendererHandle = {
|
||||
getViewAnchor: () => MapGeoPoint | null;
|
||||
snapshotGhostPins: () => MapGhostPin[] | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user