Leaflet 将一个多边形的粘贴数据复制到另一个多边形,单张

Leaflet 将一个多边形的粘贴数据复制到另一个多边形,单张,leaflet,qgis,Leaflet,Qgis,我在传单中有一个多边形层。每个多边形都有一个唯一的ID。 是否有可能将数据从一个多边形复制到另一个多边形*ID除外 var poly1 = L.polygon(latlngs, options); var copyPoly = L.polgygon(poly1.getLatLngs(),poly1.options); // copyPoly.options.uiqueId = newId; // when the Id is stored in the options 如果这不起作用,请与我们

我在传单中有一个多边形层。每个多边形都有一个唯一的ID。 是否有可能将数据从一个多边形复制到另一个多边形*ID除外

var poly1 = L.polygon(latlngs, options);
var copyPoly = L.polgygon(poly1.getLatLngs(),poly1.options);
// copyPoly.options.uiqueId = newId; // when the Id is stored in the options
如果这不起作用,请与我们共享您的代码