ternaris / marv

THIS REPOSITORY HAS BEEN MERGE INTO
https://github.com/ternaris/marv-robotics
GNU Affero General Public License v3.0
3 stars 4 forks source link

Add support for multiple trajectory layers #7

Closed beetleskin closed 6 years ago

beetleskin commented 7 years ago

Right now, the osm-widget only suports one trajectory, resp. one leaflet-layer. We want to visualize more data by writing our own _geo_jsontrajectory-nodes and forward them to the widget. The code responsible for setting the trajectory seems to be baked with bower, so I can't really offer you a pull-request. But I propose to use a name property within each feature property dict to display and toggle the individual trajectories:

{
  'type': 'FeatureCollection', 
  'features': {
    'type': 'Feature',
    'properties': {
      'name' : "trajectory_1"
    },
    'geometry': {...}
  },  {
    'type': 'Feature',
    'properties': {
      'name' : "trajectory_2"
    },
    'geometry': {...}
  }
}
chaoflow commented 6 years ago

@beetleskin the new trajectory widget gives you full control of this, see: https://github.com/ternaris/marv-robotics/blob/34c18d90ce150a96a3d82219f47c7f0630634039/marv_robotics/detail.py#L175.