POST
|
I created a new post regarding the issue. https://community.esri.com/t5/arcgis-pro-questions/symbols-dissapearing-after-applying-arcade-script/m-p/1512353#M86184
... View more
yesterday
|
0
|
0
|
11
|
POST
|
I'm observing strange behavior in Pro v. 3.2.0. I have a simple point layer with less than 20 fields. I'm symbolizing using Unique Values. Everything is normal until I apply a nifty Arcade script that symbolizes based on time and date from a text field in my table. Nowhere do I have any scale set, but when I apply the expression only two of the 15 features appears at all scales. The others only draw when zoomed in farther. There is nothing apparent that differs the two features from the others. It's the same behavior in a Layout.
... View more
yesterday
|
1
|
0
|
53
|
POST
|
I see what I did wrong. You have a space after the comma in the string here. In my table I didn't have spaces. I removed it in the script and it worked! Thanks a lot. var times = Split(fTime, ',') But I'm still getting weird behavior with what appears to be scale. Most features aren't visible until I zoom in. And I do not have the layer set with zoom in/out values. I'll have to investigate.
... View more
Monday
|
0
|
1
|
30
|
POST
|
Thanks for the code. Unless I'm doing something wrong, I'm only seeing two Closed symbols created (highlighted in table below). And what's odd is that when when you zoom in Closed symbols for all features appear. There are no Open Now symbols created. On what's your line 10 I used this variable: var fTime = $feature.LocationHoursByDay I created a text field called LocationHoursByDay.
... View more
Monday
|
0
|
1
|
56
|
POST
|
Here's the bigger picture. The locations rarely have simple hours. It changes on certain days and on weekends. My logic along the way was to put the starting and end times for each day into the Time field. Edit: I'm more or less experimenting on a working dataset. The LocationHours field is being used in the pop-up currently.
... View more
Friday
|
0
|
3
|
104
|
POST
|
Ah, yes. Thank you. Earlier I changed the values to 24hr times. The earliest is 8:00 and the latest is 21:00. There's also one oddball open 24hr location, which I'll have to work in somehow.
... View more
Friday
|
0
|
0
|
102
|
POST
|
Thanks for that. I replaced the dummy variables and it verified OK. However, there was only the Closed symbol class showing. It's not returning Open Now. So, it's hard telling where it's going wrong. var DaysOpen = "Su,M,Tu,W,Th,F,Sa";
var fTime = "8,8:30,9,9:30,10,10:30,11,11:30,12,12:30,1,1:30,2:30,3,3:30,4,4:30,5,5:30,6,6:30,7,7:30,8,8:30,9"; Unfortunately, there are more that a few Time field values that are after 6pm.
... View more
Friday
|
0
|
2
|
110
|
POST
|
The values would be opening and closing times. For example: 8, 4:30 9,5 1,3
... View more
Friday
|
0
|
4
|
141
|
POST
|
@KenBuja Thanks for pointing that out. It's a text field. Same goes for the DaysOpen field.
... View more
Friday
|
0
|
6
|
145
|
POST
|
This is a nice snippet I got from an ESRI dev that returns what day a location has open in the Pro Symbology Expression Builder. It uses the DaysOpen field in my layer. My field values are like so: Su,M,Tu,W,Th,F,Sa. Here is the expression: var days_abbr = ["Su", "M", "Tu", "W", "Th", "F", "Sa"];
var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var weekday = Weekday(Today());
If(Find(days_abbr[weekday],$feature.DaysOpen,0)!=-1) {
return "Open (" + days[weekday] + ")";
}
else {
return "Closed";
} My question here is how to expand on that to include time using the Find() function. I created similar variables to get the time. Here is one attempt which returns an error (see pseudo text below) on the If() line. var days_abbr = ["Su", "M", "Tu", "W", "Th", "F", "Sa"];
var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var weekday = Weekday(Today());
var hours = ["8","8.5","9","9.5"]; //I also tried ["8","8:30","9","9:30"] which resulted in error
var timeofday = Time(Now()); //this displays the time the way I anticipated it
If(Find(days_abbr[weekday],$feature.DaysOpen,0)!=-1 && Find(hours[timeofday],$feature.Time,0)!=-1) {
return "Open Now";
}
else {
return "Closed";
}
// Error: Invalid expression. Integer index expected.
... View more
Friday
|
0
|
17
|
276
|
POST
|
Hi @Brian_McLeer , I don't recall, sorry. You say you installed it in the Program Files (x86) directory? In the command prompt when you do step #9, are you sure you're running the npm ci command in that directory? My install is here: C:\arcgis-experience-builder-1.14, for what it's worth.
... View more
06-27-2024
06:52 AM
|
0
|
0
|
64
|
POST
|
I found a way that works. I set the position to "fill" and then adjusted the size manually until I was happy. Not sure if this is the best way, but it worked.
... View more
06-12-2024
07:46 AM
|
0
|
0
|
154
|
POST
|
The Experience Builder style elements, unless I'm just not completely use to it, are pretty clunky. The builder shows me one thing and the published page shows another. For example, when using a couple images in the header I place them completely to one side, and when published only one stays that way. Both my browser and the builder are zoomed to 100%. In the builder: Published:
... View more
06-12-2024
07:22 AM
|
0
|
1
|
166
|
POST
|
I wasn't following instructions to embed images (i.e. GIFs) properly. I was linking the GIF which I hosted on our server and then provided the link in the Embed window. I learned that if you link it as opposed to just pasting the HTML code in the box there is a good chance you will experience problems. Check this article out: https://www.esri.com/arcgis-blog/products/arcgis-storymaps/constituent-engagement/enrich-your-story-maps-with-embedded-web-content#tips So, after reading the article I pasted the code in the Embed window instead using remove-click-to-interact='true', like so, and the message did not appear. <iframe src="https://webapp.willcountyillinois.com/unionoil.gif" remove-click-to-interact="true" alt="union oil explosion" style="width:70%;height:70%;"></iframe>
... View more
05-10-2024
08:27 AM
|
0
|
0
|
200
|
POST
|
Hi @PeterKnoop , That's actually what I originally did. Even though the file was under the limit the page would freeze up. I removed a whole bunch of frames from the GIF; as much as I could until there were the minimum amount needed to make sense. It would just "save" for hours.
... View more
05-07-2024
10:55 AM
|
0
|
0
|
228
|
Title | Kudos | Posted |
---|---|---|
1 | yesterday | |
4 | 12-13-2023 02:28 PM | |
1 | 07-23-2021 09:13 AM | |
2 | 12-12-2023 11:21 AM | |
1 | 03-08-2022 12:08 PM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|