getBasicStyle method
Get the basic style for a table.
This should not be used, since there is sld support. Use getSld(tableName).
Implementation
BasicStyle getBasicStyle(TableName tableName) {
checkStyleTable();
String name = tableName.name.toLowerCase();
String sql = "select simplified from " +
HM_STYLES_TABLE +
" where lower(tablename)='" +
name +
"'";
var res = _sqliteDb.select(sql);
BasicStyle style = BasicStyle();
if (res.length == 1) {
var row = res.first;
String jsonStyle = row.get('simplified');
style.setFromJson(jsonStyle);
}
return style;
}