POST
|
Please allow for a default unit to be selected when using measurement within the Draw widget
... View more
05-03-202308:17 AM
|
2
|
0
|
54
|
IDEA
|
Please have the all the operational layers within a web map returned when using "layers" of a Web Map item. It seems that any layers within a Group Layer are skipped, meaning the user has to check whether the layer is a group layer and then further iterate over the layers within the group to truly retrieve all layers within the web map. Below is an example. The grouped layers are expanded to show all the layers within the web map: In the code below, the layers within the "PLSS", "Annotation", and "Political Township" group layers are not returned. import arcgis # portal connection variables portal_url = r'...portal url...' portal_user_name = '...user name...' portal_user_password = '...user password...' # target web map web_map_id = '...web map id...' # connect to portal p = arcgis.GIS(portal_url, portal_user_name, portal_user_password) # set web map item item = p.content.get(web_map_id) # set web map item web_map = arcgis.mapping.WebMap(item) # get operational layers layers = web_map.layers for l in layers: layer_name = l.get('title') layer_type = l.get('layerType') print(f'{layer_name} ({layer_type})') None of the layers within the group layers (green line) are returned. It would be nice if they were returned without having to iterate through each group layer object.
... View more
04-24-202309:52 AM
|
2
|
0
|
134
|
POST
|
After some testing, this does seem doable using the Python API. Below is some sample code that others may find useful. import arcgis # connect to portal portal = arcgis.GIS(...your authentication method...) # set item item = portal.content.get('...item id...') # get layers and tables (in my case I was targeting a table) layers = item.layers tables = item.tables # target layer or table fl = tables['x'] # x is the index of the layer or table # create attribute index json/dictionary idx = {'name': '...name of index...', 'fields': 'Field1, Field2, Field3, etc...', 'isAscending': True, 'isUnique': False, # only set to True if layer or table has unique values 'description': '...description of index...'} # add index to layer/table definition --- seems that whether there is 1 or multiple indexes you are adding, the object must be a list r = fl.manager.add_to_definition({"indexes": [idx]}) # check result print(r)
... View more
04-11-202307:46 AM
|
0
|
0
|
132
|
POST
|
如果我withi视图层的性质或表n a hosted feature layer, I'm able to view the existing indexes as a dictionary object. Is it possible to create an attribute index on a hosted feature layer using the Python API? If so, are there any examples available? I can't find any in the Python API docs.
... View more
04-10-202301:33 PM
|
0
|
1
|
164
|
IDEA
|
100% agree, this seems like a complete oversight.
... View more
04-07-202311:01 AM
|
0
|
0
|
323
|
POST
|
Is it possible to use the Python API to update the basemap layers of an existing web map to those of another web map? For example, I have a template web map that has the base map configured as desired, and I'd like to use the Python API to iterate over several existing web maps and update the base map using the template web map. Below is the code I've tried, but doesn't seem to do anything to the target web map: import arcgis # set web map ids wmIDTarget = '...id1...' wmIDTemplate = '...id2...' # connect to portal p = arcgis.GIS('https://www.arcgis.com/', 'user_name', 'user_password') # create web map items wmItemTarget = arcgis.mapping.WebMap(p.content.get(wmIDTarget)) wmItemTemplate = arcgis.mapping.WebMap(p.content.get(wmIDTemplate)) # get template base map layer information templateBase = wmItemTemplate.basemap.get('baseMapLayers') # update target web map base map layers wmItemTarget.basemap.update({'baseMapLayers':templateBase}) wmItemTarget.basemap.update({'title':'Basemap Updated'})
... View more
03-21-202307:38 AM
|
1
|
1
|
169
|
POST
|
Thank you! These areas are showing expected values.
... View more
12-14-202202:12 PM
|
0
|
0
|
229
|
POST
|
So...when will Arcade have a Geometry function that supports projecting a feature to a different SRID...?
... View more
12-14-202212:56 PM
|
0
|
0
|
241
|
POST
|
Can someone explain to me how to get consistent area results from a hosted feature layer? Below is an example from one of our polygon hosted feature layers. If I bring a hosted feature layer into Pro and use the Arcade area function or manually calculate the area (which should be sq meters because the hosted feature layer is using Web Mercator) to acres, I get an incorrect value when the map is in Web Mercator. If I change the coordinate system of the map to State Plane, which is the coordinate system of the source geometry, the Arcade function returns the expected area value, but the manual conversion is still way off, see screenshots below. Label expression being used in all screenshots Arcade function and manual calculation are incorrect when map is in Web Mercator. If I change the map to State Plane, the Arcade area function is now showing the expected results, while the manual sq meter to acres calculation is still way off. The problem persists to the Map Viewer in AGO. If I use the Arcade area function, I'm getting an incorrect value because the map viewer is in Web Mercator. Is there a reason the Arcade area function is not returning the expected area value when the map is in Web Mercator? Is there some sort of conversion that needs to be done prior to performing the area function? Is there a reason the manual sq meter to acres calculation is not correct...?
... View more
12-14-202211:01 AM
|
0
|
4
|
291
|
IDEA
|
作为一个workaroun @Bud——我可以看到这个d, but it would only work for point geometry.
... View more
12-08-202206:57 AM
|
0
|
0
|
384
|
IDEA
|
There should be an option to create a one-to-many join within Pro, as joins are currently limited to a one-to-one relationship. Example: A single geometry with many rows in a table. I'd like to have the ability to join the geometry and keep ALL rows from the joined table, not just one.
... View more
12-07-202202:06 PM
|
5
|
7
|
452
|
POST
|
How would one customize the loading screen used by Experience Builder developer edition? It doesn't seem like modifying the root index.html page does anything as the "loading" div is set to not display almost immediately. If I comment out the "app" div, my "loading" div customization works as expected, but once the "app" div is enabled, you never see it. Just curious if the "app" div has CSS that can be modified to replace the default loading?
... View more
12-07-202210:17 AM
|
0
|
0
|
80
|
IDEA
|
@SCVOSAGIS_Program I can see this as a workaround, but it's not nearly as seamless as the district lookup workflow in WAB.
... View more
12-01-202212:40 PM
|
0
|
0
|
223
|
IDEA
|
I think it would be nice to have the ability to offset (positively or negatively) a polygon outline within a web map. Having the ability to negatively offset a polygon boundary often helps visualize boundaries when they are symbolized differently, as shown in the screenshot below.
... View more
12-01-202209:18 AM
|
1
|
1
|
175
|
POST
|
目前我们创建我们的许多应用程序使用开发eloper edition of WAB or ExB and then place the downloaded app on our own web server. We are looking to potentially start putting our apps in a cloud store in order to get them off our local infrastructure. I'm wondering if this is as simple as creating something like an Amazon S3 bucket and copying over the WAB/ExB app folder? I haven't put in too much effort to research the various cloud stores, so any suggestions/tips/pointers are welcome as well as any best practices others have found to be useful. Thanks!
... View more
11-30-202201:30 PM
|
0
|
0
|
124
|
Title | Kudos | Posted |
---|---|---|
1 | a week ago | |
1 | 2 weeks ago | |
1 | 2 weeks ago | |
2 | 3 weeks ago | |
1 | 06-01-202306:00 AM |
Online Status |
Offline
|
Date Last Visited |
Wednesday
|