all files / mapbox-gl-draw/src/modes/ static.js

100% Statements 4/4
100% Branches 0/0
75% Functions 3/4
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                        
module.exports = function(ctx) {
  return {
    stop: function() {},
    start: function() {
      ctx.events.actionable({
        combineFeatures: false,
        uncombineFeatures: false,
        trash: false
      });
    },
    render: function(geojson, push) {
      push(geojson);
    }
  };
};