Is there a way to group a set of objects together so they can be dragged simultaneously? I want to make multiple objects draggable on a map and have them behave as a single marker when moved. Currently, I have a geojson file containing several objects that I want to make draggable but act as one cohesive unit on the map.
My current progress is as follows:
var mymap = L.map('mapid').setView...
...
var drag = L.geoJson(null,{
draggable: true,
});
omnivore.geojson('data.geojson', null, drag).addTo(mymap)
I've added Leaflet.Path.Drag to enable dragging of the geojson objects. However, each feature in the collection is draggable independently. How can I link them together?