diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index c137173f..e171daf8 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -14,6 +14,9 @@ U.FeatureMixin = { }, onCommit: function () { + // When the layer is a remote layer, we don't want to sync the creation of the + // points via the websocket, as the other peers will get them themselves. + if (this.datalayer.isRemoteLayer()) return const { subject, metadata, engine } = this.getSyncMetadata() engine.upsert(subject, metadata, this.toGeoJSON()) }, diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index e53f1381..b154bc15 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -619,7 +619,6 @@ U.DataLayer = L.Evented.extend({ render: function (fields, builder) { let impacts = U.Utils.getImpactsFromSchema(fields) - console.log('impacts', impacts) for (let impact of impacts) { switch (impact) {