Skip to content

Commit

Permalink
Fix region maps color schema selection (#26354)
Browse files Browse the repository at this point in the history
* Revert color map selection back to prev logic to work with older colormap format
  • Loading branch information
kindsun authored Nov 29, 2018
1 parent 0cd209c commit e3adc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core_plugins/region_map/public/region_map_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ VisTypesRegistryProvider.register(function RegionMapProvider(Private, regionmaps
value: 'topright',
text: 'top right',
}],
colorSchemas: Object.values(truncatedColorMaps).map(value => ({ id: value.id, label: value.label })),
colorSchemas: Object.keys(truncatedColorMaps),
vectorLayers: vectorLayers,
tmsLayers: []
},
Expand Down

0 comments on commit e3adc8d

Please sign in to comment.