CPのラベルが切れている

This commit is contained in:
2024-04-15 01:57:18 +09:00
parent 4ef42216f8
commit 41264c4d76
2 changed files with 47 additions and 32 deletions

View File

@ -5,13 +5,17 @@ class TextUtils {
static String getDisplayTextFeture(GeoJSONFeature f) {
RegExp regex = RegExp(r'([.]*0)(?!.*\d)');
String txt = "";
if (f.properties!["sub_loc_id"] != null) {
txt = "${f.properties!["sub_loc_id"]}";
}
// if(f.properties!["cp"] > 0){
// //print("-- sub-- ${f.properties!["cp"]} ----");
// txt = "${f.properties!["cp"].toString().replaceAll(regex, '')}";
// }
//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"]}";
//}
//print("Text = ${txt}");
return txt;
}