Select to view content in your preferred language

Road Closures - How is it doing that?

1599
3
Jump to solution
07-12-2019 11:48 AM
JoshSaad1
Frequent Contributor

I'm working with the June updated Road Closures solution, and it's doing things that I'd like to replicate.  It seems that it's creating a custom symbology for features based on the date.  So, Road Blocks where the End Date is on or before the current date are 50% transparent.  This is great because editors can clearly identify old data.  The built-in filter doesn't support date variables or fields based on Arcade expressions, so you can't do this with conventional tools.

I can't figure out how to replicate that though.  It doesn't appear in the symbology settings.  I've reviewed the Arcade expressions in the popup configuration, which does return values based on the date, but I don't see anything specific to symbols, just the popup.

Also, the public views of the Road Closures layer somehow filters features based on the End Date, but it doesn't use the filter.  I think it uses a View Definition, but I can't view the View Definition because the web map can't parse the query.

The point is, our Public Works department would like another layer added to the map for Road Work Areas, and I'd like it to behave the same as the other layers, but I just can't figure out how they work.

I created the Road Work layer using the same data structure as the other layers, and copied the arcade expressions for the popup.  The rest is a complete mystery to me.

Anyone have any ideas?

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor

Hi Josh Saad ,

The layer has a transparency setting in the symbology:

IIf($feature.endtime == null || $feature.endtime >= Now(), 1, 0)

... as exposed by the RETS end point:

https://services6.arcgis.com/Pu6Fai10JE2L2xUd/arcgis/rest/services/RoadClosures_7a27d301cdc94ab8914e...

(see drawing info)

View solution in original post

3 Replies
XanderBakker
Esri Esteemed Contributor

Hi Josh Saad ,

The layer has a transparency setting in the symbology:

IIf($feature.endtime == null || $feature.endtime >= Now(), 1, 0)

... as exposed by the RETS end point:

https://services6.arcgis.com/Pu6Fai10JE2L2xUd/arcgis/rest/services/RoadClosures_7a27d301cdc94ab8914e...

(see drawing info)

JoshSaad1
Frequent Contributor

That's interesting.  Thanks for explaining that.

EvanRubin
Emerging Contributor

Is there a way to remove these inactive features? We would like to create a separate public facing dashboard but we would like to remove the inactive features.  

Would it be easier to create a separate Web Map for this Dashboard? 

0 Kudos