We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d70f6 commit aaea7e7Copy full SHA for aaea7e7
src/service/3DPlot/PlotLayer3D.js
@@ -213,10 +213,16 @@ class PlotLayer3D extends Observable {
213
const primitives = scene.primitives;
214
const length = primitives.length;
215
for (let i = 0; i < length; i++) {
216
- const p = primitives.get(i);
217
- if (p.toGeoJSON) {
218
- base.features.push(p.toGeoJSON());
+ const p = primitives.get(i);
+ if (this._id === p._id) {
+ const {_primitives} = p;
219
+ for (let j = 0; j < _primitives.length; j++) {
220
+ if (_primitives[j].toGeoJSON) {
221
+ json.features.push(_primitives[j].toGeoJSON());
222
+ }
223
}
224
+ break;
225
226
227
return json;
228
0 commit comments