Hello,
On Arcgis Portal, I would like to represent my buses line with Arcade and HTML. I would like get the number of the line and put colors in relation to the numbers.
My value are like that on my stop feature : Line 1, Line 2, ..., Test 56.
My first problem is to get the number only. I can split the field but then I don't know how the get the value.
Is someone think it's possible or too complicated? With IIf maybe?
I know this blog but my problem is little more different. https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/combining-arcade-and-html-for-a-real...
Thank you
Solved! Go to Solution.
Hi again!
Yeah, please post the code you use. The HTML and at least one of the Arcade expressions.
Hi Johannes,
Can you help me with an issue in my pop-up?
Thanks,
John
https://tacoma.maps.arcgis.com/apps/mapviewer/index.html?webmap=c80eda9c8e434844a8ddbe742fc11a9c
This is for my expression1 links. The text display is correct for the intersecting polygons; however I don't know to to show individual weblinks without it merging the links together in a webpage.
Hi Pedro, Did you ever find a solution for your weblinks merging together like car.bike?
I am having similar issues.
Thank you
John
Hey @John_Shell (and @PedroSoares1 , if you care),
this thread is messy enough, I'll post in the original question: Arcade Popups with multiple web links - Esri Community
Hi,
I am having issues with multiple links from a single field. A one to many and I need each hyperlink to be on its' own line. In the test of arcade it looks fine but in the popup after clicking on the link it merges two or more links together.
Thank you,
John Shell
Hi, I am bit busy this week. but could you share the code you have done? meanwhile this is a sample of what i have. cheers
1 - the custom attribute Display such as:
<tr style="display:{expression/expr0}"> <td style="width:200px; text-align:left; background-color:#302f2f; padding:2px"><a href="https://....">Car</a> </td> </tr>
2 - the two expressions: bike and car (remember need to be two expressions) such as:
//show_Car
var arrName = Split(replace($feature. Vehicle, " ", ""),",")
for (var i in arrName) {
if(arrName[i]=="car") {return "block"}
}
return "none"