Skip to content

Instantly share code, notes, and snippets.

@chelm
Created April 8, 2011 14:52
Show Gist options
  • Save chelm/909994 to your computer and use it in GitHub Desktop.
Save chelm/909994 to your computer and use it in GitHub Desktop.
Works:
F1.Maker.current_map.setLayerStyle("GUID", {fill: {categories:5, classificationType:'quantile', selectedAttribute: 'user_follo'}, type: 'CHOROPLETH'})
F1.Maker.current_map.setLayerStyle("GUID", {fill: {categories:5, classificationType:'max_breaks', selectedAttribute: 'user_follo'}, type: 'CHOROPLETH'})
Fails:
F1.Maker.current_map.setLayerStyle("GUID",{fill: {categories:5, classificationType:'equal_interval', selectedAttribute: 'user_follo'}, type: 'CHOROPLETH'})
F1.Maker.current_map.setLayerStyle("GUID",{fill: {categories:5, classificationType:'standard_deviation', selectedAttribute: 'user_follo'}, type: 'CHOROPLETH'})
@CyanBlue
Copy link

CyanBlue commented Apr 8, 2011

F1.Maker.current_map.setLayerStyle(0, { type: "CHOROPLETH", icon: { symbol: "square"}, fill: { selectedAttribute: "std_dev_val", classificationType: "equal_interval", categories: 5, range: [1002, 1096], colors: [0x4292C6, 0xC6DBEF, 0xF7F7F7, 0xFCC5BB, 0xFF776D], opacity: 1 } });

F1.Maker.current_map.setLayerStyle(0, { type: "CHOROPLETH", icon: { symbol: "square"}, fill: { selectedAttribute: "std_dev_val", classificationType: "quantile", categories: 5, range: [1002, 1096], colors: [0x4292C6, 0xC6DBEF, 0xF7F7F7, 0xFCC5BB, 0xFF776D], opacity: 1 } });

F1.Maker.current_map.setLayerStyle(0, { type: "CHOROPLETH", icon: { symbol: "square"}, fill: { selectedAttribute: "std_dev_val", classificationType: "standard_deviation", categories: 5, range: [1002, 1096], colors: [0x4292C6, 0xC6DBEF, 0xF7F7F7, 0xFCC5BB, 0xFF776D], opacity: 1 } });

F1.Maker.current_map.setLayerStyle(0, { type: "CHOROPLETH", icon: { symbol: "square"}, fill: { selectedAttribute: "std_dev_val", classificationType: "max_breaks", categories: 5, range: [1002, 1096], colors: [0x4292C6, 0xC6DBEF, 0xF7F7F7, 0xFCC5BB, 0xFF776D], opacity: 1 } });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment