Hello, I'm trying to create a popup that includes a URL to report a problem based on a field. If the user chooses a State Road my pop up indicates that the road is maintained by the State but I want to include a URL to report a problem to the State. If the road is maintained by the City I want a different URL for those problems. Then I have some roads that are private that I do not wish to include a URL at all. I have a working maintenance expression to show the maintenance but I'm not sure how to show only certain jurisdictions having a URL. Thanks in advance for any help!
if ( $feature.MAINTENANCE == "CITY" ) {
return "The City of Annapolis "
}
else if ( $feature.MAINTENANCE == "PRIVATE") {
return "A Private Entity"
}
else if ( $feature.MAINTENANCE == "STATE" ) {$feature
return "State Highway Adminstration"
}
else if ( $feature.MAINTENANCE == "NAVAL ACADEMY" ) {$feature
return "United States Naval Academy"
}
else if ( $feature.MAINTENANCE == "COUNTY" ) {$feature
return "Anne Arundel County"
}
else if ( $feature.MAINTENANCE == "FUTURE (CITY)" ) {$feature
return "Private but future City"
}
else {
return "UNKNOWN"
}