|
POST
|
Thanks Dave! Yes, I was on v. 2.4.1.1. For some reason, even though I was signed in, Pro Package Manager was showing an update to v. 2.4.1.3 but did not have the usual Update button available. So, by that method I couldn't update. However, I was able to update through the python command prompt as an administrator. No more error.
... View more
10-22-2025
02:14 PM
|
1
|
0
|
516
|
|
POST
|
Not sure what's causing this error. I did notice that the 2020 wildfires layer referenced in the 10-01 tutorial has been depreciated: c3c10388e3b24cec8a954ba10458039d It's throwing the error on the structures variable. I've been working through the jupyter cells and can't go any further because of the error. I've put the code so far here. The authors are Dave Crawford and Daniel Yaw. import arcgis
import time
gis = arcgis.GIS('home')
# get the layer for USA structures
item_id_structures = '0ec8512ad21e4bb987d7e848d14e7e24'
item_structures = gis.content.get(item_id_structures)
lyr_structures = item_structures.layers[0]
# get the layer for 2020 wildfires
item_id_wildfires = 'c3c10388e3b24cec8a954ba10458039d'
item_wildfires = gis.content.get(item_id_wildfires)
lyr_wildfires = item_wildfires.layers[1]
fset_single_wildfire = lyr_wildfires.query("FIRE_NAME = 'AVILA'")
fset_single_wildfire
# get the feature from the FeatureSet
wildfire_feature = fset_single_wildfire.features[0]
# get the geometry from the single feature
wildfire_geom = wildfire_feature.geometry
# get the wildfire name
wildfire_name = wildfire_feature.get_value("FIRE_NAME")
print(wildfire_name)
# Create a spatial filter to find structures that intersect the wildfire
wildfire_filter = arcgis.geometry.filters.intersects(
wildfire_geom, sr = wildfire_geom['spatialReference']
)
# Query the structures layer for structures that intersect the wildfire
structures = lyr_structures.query(
geometry_filter = wildfire_filter,
return_count_only=True
)
print(structures)
... View more
10-15-2025
12:06 PM
|
0
|
3
|
663
|
|
POST
|
@JeffreyThompson2 Thanks for the idea. I guess I could have avoided all that and simply created one big image of all the text and images!
... View more
07-28-2025
12:15 PM
|
0
|
0
|
416
|
|
POST
|
The above is the preview. Why do page elements not stay where I have them in the page (below)? All I'm doing is adding Text and Images to a Sidebar. I'm not sure what Kept within the parent container does, but it doesn't seem to have any effect.
... View more
07-28-2025
11:01 AM
|
0
|
2
|
462
|
|
POST
|
Could be anything. Here's two things that pop into my head since I can't see your project. Could be there is a Definition Query set to show only certain fields and then forgot about. Right click layer properties > Definition Query. Or look in the symbology. Maybe you don't have all the values added.
... View more
07-25-2025
06:35 AM
|
0
|
1
|
1334
|
|
POST
|
I found a few lines referring to the file sizes allowed in the data-file-upload.tsx file. 10MB is the limit for a .csv file. That can't be what's stopping me. const MaxFileSize: { [key in SupportedFileTypes]: number /** bytes */ } = {
[SupportedFileTypes.CSV]: 10485760,
[SupportedFileTypes.GeoJson]: 10485760,
[SupportedFileTypes.Shapefile]: 2097152,
// KML size limitaion: https://doc.arcgis.com/en/arcgis-online/reference/kml.htm
[SupportedFileTypes.KML]: 10485760,
[SupportedFileTypes.GPX]: 10485760
} So, I looked to the Exceeded Max Records error in the same file, which is apparently 1000. But, I haven't seen where to change it yet.
... View more
07-24-2025
02:59 PM
|
0
|
1
|
871
|
|
POST
|
@VenkataKondepati Yes, my question is referring to the dev edition. (1) I'm not sure how to get the source file of an out-of-the-box widget such as the Add Data widget. (2) I then was wondering where to tweak it.
... View more
07-24-2025
01:41 PM
|
0
|
1
|
915
|
|
POST
|
The limit on the Add Data Widget is surprisingly small. It doesn't tell you the limit either. It won't even take a 46KB .csv file. That almost makes it kind of useless. I'm here wondering if I can manipulate the widget to increase the limit? Or can you even customize out-of-the-box widgets? EDIT: The actual error/warning reads: The number of records in <file> exceeds the maximum threshold.
... View more
07-24-2025
01:27 PM
|
0
|
5
|
922
|
|
POST
|
This tutorial from 2017 has a Move Effect in the Format Polygon Symbol pane. I've added a gradient stroke, but I don't see the Move Effect option. Where is it now? I'm on v. 3.5.2
... View more
07-23-2025
12:31 PM
|
0
|
2
|
346
|
|
POST
|
Thanks @KenBuja, that works great. Alternatively, could you use When() and DateDiff functions? This is one way I've tried it, but it's not showing all of them. // Variables containing the opening and closing days of the attraction
var openingDay = $feature.Dateof
var closingDay = $feature.closingDate
// Variable containing today's date in date only format
var todaysDate = DateOnly()
// Calculate the number of days between today and opening day
var difDays = DateDiff(openingDay, todaysDate, 'days') //openingDay is a Date only field with opening dates
// Categorize feature based on date comparisons
When(
difDays >= 14 || todaysDate > closingDay, 'Closed',
difDays > 0 && difDays < 15,'Opening soon',
todaysDate > closingDay, 'Over',
'Open'
);
... View more
07-22-2025
02:20 PM
|
0
|
1
|
461
|
|
POST
|
I have a Date only field called closingDate. How would I use that field in a Styles expression as a means to hide the symbol on the map when that date is over? Something like this: // Variable containing closing day of event
var closingDay = $feature.closingDate
// Variable containing today's date in date only format
var todaysDate = DateOnly()
if (closingDay < todaysDate) {
return null;
}
... View more
07-22-2025
12:52 PM
|
0
|
3
|
492
|
|
POST
|
Ok. Did you go into the Map Layers widget and select any layers? When none are selected you'll also get that message. No items selected: Items selected (blue check marks next to layers):
... View more
07-15-2025
01:06 PM
|
0
|
0
|
624
|
|
POST
|
Back in the Map widget are you sure it is selected? That happens when no map is selected, for ex:
... View more
07-15-2025
11:58 AM
|
0
|
0
|
643
|
|
POST
|
example How would I recreate this expandable "infoDiv" using map components? I don't understand how to get it in the view when there is no longer a view. I'd rather not create a html/css button outside the view. This is the html of the app I'm currently creating. <arcgis-map zoom="14" center="-88.1, 41.5">
<arcgis-search position="top-left"></arcgis-search>
<arcgis-zoom position="top-left"></arcgis-zoom>
<arcgis-home></arcgis-home>
<arcgis-locate scale="5000"></arcgis-locate>
<arcgis-swipe swipe-position="32"></arcgis-swipe>
<arcgis-expand position="top-right">
<arcgis-layer-list></arcgis-layer-list>
</arcgis-expand>
</arcgis-map>
... View more
07-07-2025
09:49 AM
|
0
|
1
|
371
|
|
POST
|
I have a two fields that deal with the operating hours of cooling centers. The HOURS field has text that displays in a pop-up in AGOL. The HoursDays field converts the hours to the 24hr clock and those values are used in the Arcade expression to style the features in the webmap. The feature styles show either "Open now" or "Closed" based on the 24hr values. // convert to 24 hour time
function ConvertTime(input) {
var theTime = input;
if (Find(":", theTime) > -1) {
var times = split(theTime, ":");
theTime = Number(times[0]) + Number(times[1]) / 60;
}
return Number(theTime);
}
var current = ConvertTime(Time(Now()));
var fTime = $feature.HoursDays;
var times = Split(fTime, ',')
var todaysTime = times[Weekday(Today()) - 1];
if (todaysTime == 'closed') return 'Closed'
var todaysTimes = Split(todaysTime, '-')
var start = ConvertTime(todaysTimes[0]);
var end = ConvertTime(todaysTimes[1]);
iif(current >= start && current <= end, 'Open now', 'Closed') What I'm missing is a way to use Arcade to create a "Closed" style for government holidays, namely: January 1st, 2025 January 20th, 2025 February 17th, 2025 May 26th, 2025 June 19th, 2025 July 4th, 2025 September 1st, 2025 October 13th, 2025 November 11th, 2025 November 27th, 2025 December 25th, 2025 Any ideas?
... View more
06-27-2025
09:43 AM
|
0
|
1
|
1373
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-13-2025 08:22 AM | |
| 1 | 11-12-2025 08:37 AM | |
| 1 | 10-22-2025 02:14 PM | |
| 1 | 01-17-2019 08:21 AM | |
| 1 | 07-06-2023 07:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|