aurora-opensource / streetscape.gl

Visualization framework for autonomy and robotics data encoded in XVIZ
http://www.streetscape.gl
MIT License
912 stars 220 forks source link

Is it possible to move cars with drag and drop on a custom map layer displayed using LogViewer and XVIZLiveLoader? #474

Open AdelinaK opened 3 years ago

AdelinaK commented 3 years ago

Hi.

I'm working on an application and what I want to do is to display a custom map layer using LogViewer (the custom layer will be a GeoJsonLayer to be more specific) display a car (with an initial position) and then I want to move the car where I want on the map (something like drag and drop). Then I want to start a simulation based on the position I have chosen and feed data in real time until the simulation ends. I know the XVIZLiveLoader wasn't necesarry implemented for customaization, it controls the vehicle position directly but I wonder if I can override the properties of the LogViewer and add this functionality.

Thank you!

yujingz commented 3 years ago

Think Drag and Drop might be tricky to do. My suggestion would be just to use mouse click to add a destination on your customized layer and then starts the simulation based on the current vehicle position and the clicked destination.