POST
|
Hi David, Thanks for the reply! Yes, you are correct. One list should filter both the map and second list, and that works. What isn't working is that the extent query then overrides the filter triggers on list one, so list two will show areas outside the list one selection, but the map filter from list one is retained. I disabled the map triggers for our users temporarily, but I will re-enable and share so that you can see how the two don't work together. Thanks, Emma
... View more
10-02-2020
12:10 PM
|
0
|
0
|
2427
|
POST
|
The map extent trigger to filter the framework is overriding framework filters set by the list widget. The list widget triggers successfully filter the map, but the map zoom trigger set on the list widget initiates the map extent trigger to ignore the data filter setting. I would expect the user to only then see the data visible in the map reflected in the rest of the framework, and have the extent changes work with only that visible data. Instead, it appears I can't have both-- each works very well separately, but they don't play well together. I posted more about this here: https://community.esri.com/message/956578-possible-bug-experience-builder-map-extent-triggers-override-list-filter-triggers
... View more
09-30-2020
04:27 PM
|
0
|
0
|
1151
|
POST
|
I am working with Experience Builder to allow our users to either query the framework using filter triggers set by a list widget, or simply use the map extent to query the framework. The expected behavior is that both methods of filtering would work together, so if someone both selected an area from the list, then zoomed in further, they would first see a filtered map and framework, and their zooming action would further refine the results on the page. Right now, the first list triggers will only work if I do not set the map triggers to filter the framework by extent. It appears I can't have both. The extent trigger is essentially overriding the list widget filter triggers. Here is a snapshot of what's happening. In the picture, you should only see locations in Ketchikan. But instead, the second list view includes sites from the full extent and including locations from Prince of Wales, even though they are filtered out and not visible in the map: Here is snapshot of the list and map widget triggers: Anyone have thoughts on this? Am I missing a way to ensure that the list triggers are still honored if set?
... View more
09-30-2020
12:25 PM
|
0
|
6
|
2497
|
POST
|
As I was testing out Experience Builder, I created some draft page layouts, and was exploring how duplicating works with multiple section widgets on pages. I deleted the former maps and draft pages as I decided on a format, and now in the List Widget, trigger action target list show that a memory of the past maps were retained from deleted maps (no idea how so many ever existed, but so it is) and are listed as trigger target options. I verified in the right pane/table of contents that I do, in fact, only have 5 give web maps across my three pages. But I have many, many more maps listed as targets in the pictured list. Any ideas on how to delete these if they are nowhere in my framework beyond this widget's trigger target list?
... View more
09-22-2020
12:49 PM
|
0
|
0
|
394
|
POST
|
Hi Marisa, I'm trying to export a survey to a file geodatabase and am running into problems with the export_format strings. The documentation doesn't have much in terms of what the strings actually need to be. I tried using "File Geodatabase" as my export format, and I get the error below: Here is the code that generated that error: import arcgis
from arcgis.gis import GIS
from arcgis.apps.survey123 import Survey, SurveyManager
import os
gis = GIS("https://adfg.maps.arcgis.com", 'username', 'password')
tbl_path = r"C:\Data\SurveyDownload_" + str(today).replace("-","_")
if not os.path.exists(tbl_path):
os.mkdir(tbl_path)
sm = SurveyManager(gis)
survey = Survey(survey123_form, sm)
survey123_form = gis.content.get("2ea1bdb67eda442eac567b15edd1181a6")
survey123_form.download(export_format = "File Geodatabase",
save_folder = os.path.join(tbl_path))
... View more
08-06-2020
05:18 PM
|
0
|
0
|
1134
|
POST
|
I also have this question! I'd like to create a nicely-formatted table for a one-to-many relationship, and only add table rows for the number of values. The rows per feature vary from 1 to 15. Right now, I have to do this using a list in Arcade: var main = FeatureSetByRelationshipName($feature,"Remote_Releases",["FACILITY","AGENCY","SPECIES","MIN_BROOD_YEAR","Max_Year","TOTAL_RELEASED"])
var fltr = OrderBy(Filter(main,"TOTAL_RELEASED > 0"), 'Max_Year DSC')
var rList = '';
for (var r in fltr){
rList += TextFormatting.NewLine + '-(' + r.AGENCY + ' ' + r.MIN_BROOD_YEAR + '-' + Text(r.Max_Year) + ") " + r.SPECIES + ": " + Text(Round(r.TOTAL_RELEASED), '#,###') + ' released'
}
return rList This produces a list of values as shown below: What I'd really like to do instead of iteratively creating a list based on the number of releases at a site, is iteratively create rows in a table so that this pop-up is more consistently formatted like the rest of my custom pop-ups in the map: I tried out the conditional formatting display option with no luck, since once you're beyond the maximum releases for a given site, the attempt to index the value returns an out of bounds error. Is this capability on the horizon for Arcade?
... View more
05-06-2020
09:38 AM
|
1
|
0
|
6048
|
POST
|
Hi Scott! Thanks for the response! I'll try the GeoSeriesAccessor version of snap_to_line instead of Geometry & Features. I described above the hang-up with the finding nearest line to each point step: the input layers for the both the analysis and use_proximity packages find_nearest tool require that the analysis_layer and near_ layer inputs both have to be in one of the following formats (not a geometry): Feature Input All GeoAnalytics Tools have input parameters that take features as their input. Features can be input as: Big data file share layer. These can be obtained by using the layers property of big data file share items. Item (of type Feature Layer Collection or Feature Collection) - only the first feature layer is used. Instance of FeatureLayer, FeatureLayerCollection, FeatureCollection. Feature Service URL as a string. Python dict in the feature collection format ... it's so close, but those acceptable inputs for the find_nearest functions make it so far!
... View more
03-04-2020
04:38 PM
|
0
|
0
|
1420
|
POST
|
I'm trying to snap multiple point features to a line using the arcgis API for Python. The arcpy method isn't viable for the end-users of this tool as they don't have consistent access to an Advanced Use license. What I'd like to be able to do is find the nearest line to each point, then snap that point to that nearest line. I've tried two methods here, iterating through the features in the feature service as below... import arcgis
from arcgis.features import FeatureLayer, use_proximity
from arcgis.geometry import Geometry, Point, Polyline
point_svc = "service url"
line_svc = "service url"
point_ft = FeatureLayer(point_svc).query().features
line_ft = FeatureLayer(line_svc)
# Go through each point in the point feature layer, and find its nearest line feature. Then,
#snap that given point to the nearest line feature.
for p in point_ft:
## The FeatureInput documentation states that both the analysis and near
##features need to be items, a FeatureLayer or FeatureCollection instance, or a Feature
##Service URL string.
nearest = use_proximity.find_nearest(p, line_ft)
new_pt = p.snap_to_line(nearest)
This option, predictably according to the FeatureInput documentation, doesn't like the input layer formats. What does work for at least creating a nearest line layer is using the point_svc and line_svc as inputs, but I'm very lost as to how I can use the resulting feature layer collections to snap the points to the lines... nearest = use_proximity.find_nearest(point_svc, line_svc)
nearest
{'nearest_layer': <FeatureCollection>, 'connecting_lines_layer': <FeatureCollection>} The 'nearest_layer' Feature Collection that's output has a "SNAP_" and "SNAP_ID" field that I would assume relate to the Object ID of the points in the analysis layer, but unfortunately, they don't relate, and I can find no other field in that output Feature Collection that relates to the point on which the find_nearest was based (unless find_nearest doesn't compare features to features, but rather entire services to services...). Point service OIDs (three points in total): find_nearest output Feature Collection item attributes: Does anyone know any cleaner methods of accomplishing this task using the API, or how to then work with the nearest feature collection to then reference the points in the points feature service to those nearest lines and then snap them?
... View more
03-03-2020
11:02 AM
|
0
|
2
|
1570
|
POST
|
I'm working to create a 3D map in ArcGIS Pro, and running into issues with the way the raster boundary is displaying. In ArcScene 10.6.1, the layer shows up with a cleaner boundary: In ArcGIS Pro (2.5), the layer shows up with a more pixelated edge: Is there a method to have the raster fill a polygon boundary in a ArcGIS Pro Scene, or any other method create a smoother boundary appearance for 3D layers using Pro? Thank you!
... View more
02-28-2020
12:42 PM
|
0
|
0
|
945
|
POST
|
Our organization uses MapJournal StoryMaps as a primary information product for the general public (see an example here). Unfortunately, we have been informed that a few users with neurological disabilities that require they not interact with flashing screens have been concerned about this risk with the method of scolling, loading, and zooming in StoryMaps. While we provide a large print icon in our StoryMaps to provide a PDF version, and this workaround works well when individuals know to click it, this is a major concern for the safety of our users. Are there other organizations who have had similar problems and come up with good solutions?
... View more
09-17-2019
10:29 AM
|
0
|
0
|
408
|
POST
|
My organization is finding that we are unable to publish layers with relationship classes to our Portal hosted data store. We are able to publish the same data to our Portal and to our ArcGIS Online. We have tried using both ArcGIS Pro 2.4.1 and ArcMap 10.7.1. The log evidence of the problem begin with SwizzleService failing, and then a host of errors, ending in Error Code 001369: Failure to create the service. I'm curious why Portal's hosted data store is unable to handle the service, and yet ArcGIS Portal and ArcGIS Online can handle it just fine... Is this due to the nature of Portal's hosted data store compared to Portal and Online? Thanks, Emma
... View more
08-29-2019
10:20 AM
|
0
|
0
|
4149
|
POST
|
Is there a way that as an ArcGIS Online organization user/Admin, I can add external organizations' ArcGIS Online users to our organization's groups? We are working to collaborate on some story maps and apps between state agencies and we have run into all sorts of hints that this should be possible. When I try to add these user's accounts to our project group, the box to only allow me to search for users within my own organization is locked on, and I'm unable to check it. Since I couldn't search for them, we tried sharing the link to the group page so they can request membership, but I am unable to see any of their requests to join the group. Their accounts have been configured to allow them to join external organizational groups, but it seems as an Admin with my organization's settings, I'm unable to even search for them.
... View more
04-05-2019
12:07 PM
|
0
|
2
|
707
|
POST
|
Hi Kathy, Building on Seth's comment, here's a way you could scan the story map webpages in case you're using them as the primary section content. But if you're just embedding the URLs in the story map text, you could use the same idea to scan a list of URLs (see comments in the code), and schedule this script a couple times a week, receiving an email summary. I left what I have so far with the email component commented out-- I think I'm missing a credentials step to actually make it work, and I'm evidently not providing the correct server name. I currently get an error associated with server = smtplib.SMTP(srvr), which says gaierror: [Errno 11001] getaddrinfo failed But if you don't need an email, this will print the URL messages to the python command space. import arcgis
from arcgis.gis import GIS
from arcgis.apps import storymap
import urllib, smtplib
from getpass import getpass
username='DCRAOpenData'
## Create a connection to your portal for publishing (enter your ArcGIS Online
## password in the textbox that appears, then hit 'Enter' on your keyboard)
gis = GIS("https://www.arcgis.com", username, getpass())
## Find the storymaps to verify URLS (you could also just provide a list of URLs
find_storymaps = gis.content.search("title: story map name/naming convention", item_type="Web Mapping Application", max_items=1, outside_org=False)
#srvr = 'server.domain.com'
#from_email = 'Name <email@domain.com>'
#to_email = 'Name <email@domain.com>'
#subject = 'URLs in story maps, script results'
msgs = []
for f in find_storymaps: ## Replace with code at bottom if just scanning list of URLS
print(f.title, f.id)
csmap = storymap.JournalStoryMap(gis.content.get(str(f.id)))
sections = csmap.properties["values"]["story"]["sections"]
for s in sections:
if s["media"]["type"] == "webpage":
url = s["media"]["webpage"]["url"]
try:
response_code = urllib.request.urlopen(url).getcode()
print(str(url) + ' in the ' + str(s["title"]) + ' section is current and accessible!')
except IOError:
print('---- URL not funtional: ' + str(url) + '----')
msgs.append('---- URL not funtional: ' + str(url) + '----')
## If no errors were found, configure messages to say so
if msgs == []:
msgs.append('All URLs are functional!')
##Set up the email of the final messages and send it
#final_msg = " ".join(msgs)
#email = """\
#From: %s
#To: %s
#Subject: %s
#%s
#""" % (from_email, to_email, subject, final_msg)
#server = smtplib.SMTP(srvr)
#server.sendmail(from_email, to_email, final_msg)
#server.quit()
### IF SCANNING A LIST OF URLS ###
#for f in find_storymaps:
# try:
# response_code = urllib.request.urlopen(url).getcode()
# except IOError:
# print('---- URL not funtional: ' + str(url) + '----')
# msgs.append('---- URL not funtional: ' + str(url) + '----')
... View more
03-14-2019
02:06 PM
|
0
|
0
|
1519
|
POST
|
This would be hugely helpful for our apps. We have a major need to sub-categorize our data to organize it for users in this widget.
... View more
06-19-2018
10:30 AM
|
0
|
0
|
399
|
Title | Kudos | Posted |
---|---|---|
1 | 07-02-2024 11:01 AM | |
3 | 05-07-2024 03:22 PM | |
1 | 01-07-2021 09:44 AM | |
1 | 08-27-2021 09:29 AM | |
1 | 06-09-2021 09:49 AM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|