Added guard statement for spatial controls (#4124)

This commit is contained in:
Hugh A. Miles II 2017-12-26 12:27:27 -08:00 committed by Maxime Beauchemin
parent 45686a1af6
commit b227612f6e

View File

@ -1848,6 +1848,7 @@ class BaseDeckGLViz(BaseViz):
def get_data(self, df):
fd = self.form_data
spatial = fd.get('spatial')
if spatial:
if spatial.get('type') == 'latlong':
df = df.rename(columns={
spatial.get('lonCol'): 'lon',