update display text
This commit is contained in:
@ -7,13 +7,13 @@ class TextUtils{
|
|||||||
static String getDisplayTextFeture(GeoJsonFeature f){
|
static String getDisplayTextFeture(GeoJsonFeature f){
|
||||||
RegExp regex = RegExp(r'([.]*0)(?!.*\d)');
|
RegExp regex = RegExp(r'([.]*0)(?!.*\d)');
|
||||||
String txt = "";
|
String txt = "";
|
||||||
if(f.properties!["cp"] > 0){
|
// if(f.properties!["cp"] > 0){
|
||||||
//print("-- sub-- ${f.properties!["cp"]} ----");
|
// //print("-- sub-- ${f.properties!["cp"]} ----");
|
||||||
txt = "${f.properties!["cp"].toString().replaceAll(regex, '')}";
|
// txt = "${f.properties!["cp"].toString().replaceAll(regex, '')}";
|
||||||
}
|
// }
|
||||||
if(f.properties!["buy_point"] != null && f.properties!["buy_point"] > 0){
|
//if(f.properties!["buy_point"] != null && f.properties!["buy_point"] > 0){
|
||||||
txt = txt + "[${f.properties!["sub_loc_id"]}]";
|
txt = txt + "[${f.properties!["sub_loc_id"]}]";
|
||||||
}
|
//}
|
||||||
return txt;
|
return txt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user