P0: Allow to import the exported map config #88
Labels
backlog
Feature request that's currently outside of our roadmap
external
Request comes from external
feature
A new feature
frequent ask
That would also open up the ability to reuse styles across projects or even on multiple datasets in the same project. You could possibly even allow for multiple datasets to be in a single layer with a single style (assuming their data structure is consistent)
Save map config via save map choose config only, and downlaod the config json, and store somewhere that can be accessed via url
Load kepler.gl/#/demo?mapConfig=http://xxxxx.xxxx.json. Load kepler.gl with a preset config (layers, filters, mapStyles etc).
3.1 The config might contain 1 dataset, in which case kepler.gl try to map layer, filter to it
3.2 The config contain 2 dataset...........
Rules to match config to data: dataset must contain field that layer column and layer color / size by are depends on. must contain fields that filters are depends on....
Currently
if you call
receiveMapconfig
without data preloaded, kepler will try to match layers / filters based ondataId
, it is not finding those fieds, then it will saved the layer/filter tolayersToBeMerged
filtersToBeMerged
. When you then calladdDataToMap
without config. kepler will use the to be merged the ones.For Example:
layersToBeMerged
in visState reducerThe text was updated successfully, but these errors were encountered: