We have a road closure map for the city (link below). The planning department updates this with any planned road closures. We have a farmer's market that shuts down a street once a week every week for the year. Is there anyway to create an entry in that GIS layer with a repetitive time frame without making 52 entries, one for each week of the year? This layer is created in AGOL.
http://sarasota.maps.arcgis.com/apps/TimeAware/index.html?appid=72b1531477c2493eaabe85a29f372d0d
Hi Payne,
Is the end goal to symbolize the closure as it's shown in the app?
Assuming the day of the week is the same each time, you might be able to use an Arcade function. Something like this may do the trick:
<SPAN class="comment token">//Values range from 0-6 where Sunday is 0 and Saturday is 6</SPAN> <SPAN class="keyword token">var</SPAN> Farmers <SPAN class="operator token">=</SPAN> $feature<SPAN class="punctuation token">.</SPAN>DayClosed <SPAN class="keyword token">var</SPAN> dayOfWeek <SPAN class="operator token">=</SPAN> <SPAN class="token function">Weekday</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="token function">Now</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN> iif <SPAN class="punctuation token">(</SPAN>Farmers <SPAN class="operator token">==</SPAN> dayOfWeek<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Closed"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Open"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Hope this helps,
-Peter
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.