code: function serialize (layersCollection, dataviewsCollection) {
    return {
      buffersize: { mvt: 0 },
      layers: LayerSerializer.serialize(layersCollection),
      dataviews: DataviewSerializer.serialize(dataviewsCollection),
      analyses: AnalisysSerializer.serialize(layersCollection, dataviewsCollection)
    };
  }
docs: Transform a map visualization into a json payload compatible with the windshaft API.