streetscape.gl icon indicating copy to clipboard operation
streetscape.gl copied to clipboard

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

Open AdelinaK opened this issue 4 years ago • 1 comments

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!

AdelinaK avatar Dec 07 '20 13:12 AdelinaK

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.

yujingz avatar Dec 10 '20 23:12 yujingz