[Bug][Jupyter Widget] kepler do not set config
- Dominant language
- TypeScript
- Stars
- 12k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 66
Description
**Describe the bug**
I am using Kepler. I used the below code but after a while, Kepler config will reset. In fact, I just wanted to set the trail length. but it will reset after some seconds(even during running Kepler) to the default setting. here is my code :
**To Reproduce**
```
a=[[48.54170227050781, 34.7884521484375, 1000.0, 1669983988.0],
[48.54170227050781, 34.7884521484375, 1000.0, 1669984004.0],
[48.54170227050781, 34.7884521484375, 1000.0, 1669984011.0],
[48.54170227050781, 34.7884521484375, 1000.0, 1669984011.0],
[48.54170227050781, 34.7884521484375, 1000.0, 1669984011.0],
[48.54170227050781, 34.7884521484375, 1000.0, 1669984039.0],
[48.54499053955078, 34.78822326660156, 1000.0, 1669984041.0],
[48.544921875, 34.7874641418457, 1000.0, 1669984054.0],
[48.54499053955078, 34.78822326660156, 1000.0, 1669984071.0],
[48.54499053955078, 34.78822326660156, 1000.0, 1669984071.0],
[48.54499053955078, 34.78822326660156, 1000.0, 1669984071.0],
[48.54170227050781, 34.7884521484375, 1000.0, 1669984099.0],
[48.54508972167969, 34.78705596923828, 1000.0, 1669984101.0],
[48.54613494873047, 34.78629684448242, 1000.0, 1669984103.0],
[48.546844482421875, 34.7857780456543, 1000.0, 1669984133.0],
[48.525184631347656, 34.80438995361328, 1000.0, 1669984677.0],
[48.524654388427734, 34.80484390258789, 1000.0, 1669984680.0],
[48.524654388427734, 34.80484390258789, 1000.0, 1669984680.0],
[48.524654388427734, 34.80484390258789, 1000.0, 1669984680.0],
[48.524654388427734, 34.80484390258789, 1000.0, 1669984681.0],
[48.524654388427734, 34.80484390258789, 1000.0, 1669984681.0],
[48.524471282958984, 34.80537414550781, 1000.0, 1669984703.0],
[48.52345275878906, 34.80714797973633, 1000.0, 1669984707.0],
[48.52345275878906, 34.80714797973633, 1000.0, 1669984715.0],
[48.522850036621094, 34.80784606933594, 1000.0, 1669984720.0],
[48.522850036621094, 34.80784606933594, 1000.0, 1669984720.0],
[48.522850036621094, 34.80784606933594, 1000.0, 1669984733.0],
[48.52227020263672, 34.808631896972656, 1000.0, 1669984736.0],
[48.52223587036133, 34.80869674682617, 1000.0, 1669984737.0],
[48.52177429199219, 34.809356689453125, 1000.0, 1669984754.0],
[48.52177429199219, 34.809356689453125, 1000.0, 1669984763.0],
[48.521995544433594, 34.809688568115234, 1000.0, 1669984793.0],
[48.52177429199219, 34.809356689453125, 1000.0, 1669984814.0],
[48.521995544433594, 34.809688568115234, 1000.0, 1669984823.0],
[48.521995544433594, 34.809688568115234, 1000.0, 1669984853.0],
[48.52177429199219, 34.809356689453125, 1000.0, 1669984874.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984877.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984877.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984877.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984877.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984877.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984878.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984878.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984878.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984878.0],
[48.51443862915039, 34.807926177978516, 1000.0, 1669984881.0],
[48.51443862915039, 34.807926177978516, 1000.0, 1669984881.0],
[48.514686584472656, 34.80780792236328, 1000.0, 1669984883.0],
[48.51385498046875, 34.807498931884766, 1000.0, 1669984893.0],
[48.51385498046875, 34.807498931884766, 1000.0, 1669984893.0],
[48.51385498046875, 34.807498931884766, 1000.0, 1669984893.0],
[48.51381301879883, 34.80747985839844, 1000.0, 1669984894.0],
[48.51381301879883, 34.80747985839844, 1000.0, 1669984897.0],
[48.51443862915039, 34.807926177978516, 1000.0, 1669984913.0],
[48.512794494628906, 34.80648422241211, 1000.0, 1669984924.0],
[48.512794494628906, 34.80648422241211, 1000.0, 1669984924.0],
[48.512794494628906, 34.80648422241211, 1000.0, 1669984943.0],
[48.51284408569336, 34.80655288696289, 1000.0, 1669984973.0],
[48.51266098022461, 34.80699920654297, 1000.0, 1669984984.0],
[48.51266098022461, 34.80699920654297, 1000.0, 1669984992.0],
[48.51266098022461, 34.80699920654297, 1000.0, 1669984993.0],
[48.512386322021484, 34.80772399902344, 1000.0, 1669984997.0],
[48.512386322021484, 34.80772399902344, 1000.0, 1669984997.0],
[48.51266098022461, 34.80699920654297, 1000.0, 1669985003.0],
[48.51218032836914, 34.8083381652832, 1000.0, 1669985008.0],
[48.51218032836914, 34.8083381652832, 1000.0, 1669985008.0],
[48.511959075927734, 34.808589935302734, 1000.0, 1669985014.0],
[48.511959075927734, 34.808589935302734, 1000.0, 1669985014.0],
[48.511959075927734, 34.808589935302734, 1000.0, 1669985014.0],
[48.511600494384766, 34.80873489379883, 1000.0, 1669985027.0],
[48.51154327392578, 34.80870819091797, 1000.0, 1669985028.0],
[48.511959075927734, 34.808589935302734, 1000.0, 1669985033.0],
[48.51097106933594, 34.80922317504883, 1000.0, 1669985052.0],
[48.51081085205078, 34.8092041015625, 1000.0, 1669985058.0],
[48.51081085205078, 34.8092041015625, 1000.0, 1669985058.0],
[48.51081085205078, 34.8092041015625, 1000.0, 1669985063.0],
[48.51115417480469, 34.808597564697266, 1000.0, 1669985088.0],
[48.51115417480469, 34.808597564697266, 1000.0, 1669985093.0],
[48.51106262207031, 34.80827713012695, 1000.0, 1669985118.0],
[48.51106262207031, 34.80827713012695, 1000.0, 1669985123.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985148.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985153.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985178.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985183.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985208.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985213.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985238.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985243.0],
[48.511348724365234, 34.80828857421875, 1000.0, 1669985273.0],
[48.511138916015625, 34.80841064453125, 1000.0, 1669985298.0],
[48.51128005981445, 34.808311462402344, 1000.0, 1669985303.0],
[48.51103210449219, 34.80865478515625, 1000.0, 1669985325.0],
[48.51103973388672, 34.808658599853516, 1000.0, 1669985326.0],
[48.51105880737305, 34.80859375, 1000.0, 1669985327.0],
[48.511104583740234, 34.808570861816406, 1000.0, 1669985328.0],
[48.51112747192383, 34.80852127075195, 1000.0, 1669985329.0],
[48.511146545410156, 34.808475494384766, 1000.0, 1669985330.0],
[48.51103210449219, 34.80865478515625, 1000.0, 1669985333.0],
[48.511009216308594, 34.808895111083984, 1000.0, 1669985345.0],
[48.511009216308594, 34.808895111083984, 1000.0, 1669985345.0]]
featureCollection={
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"vendor": "A"
},
"geometry": {
"type": "LineString",
"coordinates": a
}
}
]
}
from keplergl import KeplerGl
config = {'version': 'v1',
'config': {'visState': {'filters': [],
'layers': [{'id': 't1o0p24',
'type': 'trip',
'config': {'dataId': 'data_1',
'label': 'data_1',
'isVisible': True,
'visConfig': {'opacity': 0.8,
'thickness': 0.5,
'trailLength': 90000000000000000000000000000000000000000000000000000000000000000000000000000000,
'sizeRange': [10, 20]},
'hidden': False,
'textLabel': [{'field': None,
'color': [255, 255, 255],
'size': 18,
'offset': [0, 0],
'anchor': 'start',
'alignment': 'center'}]},
'visualChannels': {'colorField': None,
'colorScale': 'quantile',
'sizeField': None,
'sizeScale': 'linear'}}],
'layerBlending': 'normal',
'splitMaps': [],
'animationConfig': {'currentTime': 1669983988.0, 'speed': 0.51}},
'mapState': {'bearing': 0,
'dragRotate': False,
'latitude': 34.804923362731934,
'longitude': 48.51932476043701,
'pitch': 0,
'zoom': 12,
'isSplit': False},
'mapStyle': {'styleType': 'dark',
'topLayerGroups': {},
'visibleLayerGroups': {'label': True,
'road': True,
'border': False,
'building': True,
'water': True,
'land': True,
'3d building': False},
'mapStyles': {}}}}
map_1=KeplerGl()
map_1.config = config
map_1.add_data(data=featureCollection, name="data_1")
map_1
```
**Expected behavior**
I have set the Kepler config but it won't affect the map. I want the lines will not to fade.So I have set the `trailLength` to a big number but it seems Kepler has ignored my customized config. what is the problem with my code?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.