diff --git a/src/vis/MeasurementMap.tsx b/src/vis/MeasurementMap.tsx index e4853f7..ad4b71e 100644 --- a/src/vis/MeasurementMap.tsx +++ b/src/vis/MeasurementMap.tsx @@ -55,11 +55,12 @@ function searchEventHandler(result: any): void { // organize popup content. called from searchEvenHandler function organizePopup(apiText: any): string{ let dict = JSON.parse(apiText); + //console.log(dict); let returnString = "" + "" + "" + "" - + "" - + "" + + "" + + "" + "" + ""; if ("message" in dict) { @@ -72,9 +73,13 @@ function organizePopup(apiText: any): string{ for (let key in dict2) { /*returnString = returnString + "" + key + "" + ": Available speeds up to " + dict2[key]["Available speeds"] + ", Starting at " + dict2[key]["Starting at"] + "
" + "
";*/ - + let keyName = key; + if (keyName.endsWith(" Internet")) { + keyName = keyName.substring(0, keyName.length - 9); + console.log(keyName); + } returnString += "" - + "" + + "" + "" + "" + "";
" + "Provider" + "" + "Available Speeds up to" + "" + "Starting Rate" + "" + "Speeds" + "" + "Rate" + "
" + key + "" + keyName + "" + dict2[key]["Available speeds"] + "" + dict2[key]["Starting at"] + "