@@ -333,20 +333,9 @@ export class ResultsMapComponent implements OnChanges {
...
@@ -333,20 +333,9 @@ export class ResultsMapComponent implements OnChanges {
privatehighlightFeature(e,feature){
privatehighlightFeature(e,feature){
constlayer=e.target;
constlayer=e.target;
lettext="";
lettext="";
if (feature["capacity"]){
if (feature["capacity"]=="9999.0"||feature["capacity"]=="9999"){
text+=`<span style='display: inline-block; margin-bottom: 7px; font-weight: bold;'>Oops! Looks like you clicked on an transparent bus line with capacity of 9999!</span><br>`;
@@ -368,6 +357,19 @@ export class ResultsMapComponent implements OnChanges {
...
@@ -368,6 +357,19 @@ export class ResultsMapComponent implements OnChanges {
}
}
Object.entries(feature).forEach((element)=>{
Object.entries(feature).forEach((element)=>{
if (element[0]=="capacity"){
// exception for capacity checking for value 9999
if (feature["capacity"]=="9999.0"||feature["capacity"]=="9999"){
text+=`<span style='display: inline-block; margin-bottom: 7px; font-weight: bold;'>Oops! Looks like you clicked on an transparent bus line with capacity of 9999!</span><br>`;