|
POST
|
Does anyone know if it's possible for the ArcGIS Enterprise Portal application to make server side network requests to data sources of Living Atlas layers (when Portal is configured with Living Atlas subscriber content)? I assume that a Living Atlas layer in Enterprise, which have internal URLs (i.e. https://portal.domain.com/arcgis/sharing/servers/bd0375ee649b4a06804bd21ccf6c280f/rest/services/LiveFeeds/NOAA_storm_repo… ), will only make client side requests once a user adds the layer to a map, but am curious if there are intermediary requests that Portal might make as well. For instance, 1. client requests Living Atlas layer from portal. 2. Portal gets layer information like renderer and other basic information from the source 3. Portal returns layer information to the client. 4. Client makes request directly to source for features. Or something like that. The reason I'm asking is that there seem to be some network requests from the server hosting Portal to some external resources, and I'm trying to rule out Portal making them.
... View more
11-02-2020
04:30 AM
|
0
|
1
|
1407
|
|
POST
|
Noah Sager Jim Barry - Curious if anyone on the API team is aware of this and/or knows of any workarounds or resolutions.
... View more
10-29-2020
04:12 AM
|
0
|
6
|
12008
|
|
POST
|
I forget at this point but I think the fix had something to do with re registering the web adaptor....
... View more
10-28-2020
12:16 PM
|
0
|
0
|
2661
|
|
POST
|
Esri's JS API worked beautifully with VueJS 2.x - however trying to incorporate into a VueJS 3.0 application is proving to be challenging, and I'm wondering if the incompatibilities are irreconcilable without significant changes to the API. Although I can't know for sure, I think the issue revolves around that Vue3.0 wraps all reactive objects in a JavaScript Proxy object, which allows it to intercept / trap getters and setters. From Vue's own documentation: The use of Proxy does introduce a new caveat to be aware with: the proxied object is not equal to the original object in terms of identity comparison ( === ). For example: The original and the wrapped version will behave the same in most cases, but be aware that they will fail operations that rely on strong identity comparisons. Creating a simple map with a feature layer, for example, if the feature layer is a reactive object in the VueJS 3.0 ecosystem, gives some strange errors and requires a workaround. The following code is using the new Composition API in Vue (that is why I reference everything with the value property but it is the correct programming pattern here), and throws an error at the last line - the layer is never added to the map. To those familiar with the Composition API, using a reactive object (instead of ref like in the code) generates the same issues. let featurelayer = ref(null)
featurelayer.value = new FeatureLayer(url);
map.add(featurelayer.value); Uncaught (in promise) TypeError: 'get' on proxy: property '__accessor__' is a read-only and non-configurable data property on the proxy target but the proxy did not return its actual value (expected '#<a>' but got '[object Object]') However, if I change the last line to map.add(featurelayer.value.load()); The layer is successfully added. An acceptable but annoying workaround as an application scales. There are other issues however for which I have been unable to find a workaround. For example: mapView.whenLayerView(featurelayer.value).then((layerView) => {
console.log(layerView);
}); throws the following error: Uncaught (in promise) e {name: "view:no-layerview-for-layer", details: {…}, message: "No layerview has been found for the layer". Using featurelayer.value.load() or featurelayer.value.createLayerView() does not work. So ultimately I'm curious if anyone knows what is happening with these seeming incompatibilities, and more specifically, if the Esri JS API team would ever consider making the changes necessary to play well with a (increasing in popularity) framework such as VueJS 3.x.
... View more
10-28-2020
06:52 AM
|
0
|
14
|
17078
|
|
POST
|
Thank you - I'm not using the Python API in this case, but just using requests directly. And yes, it was easy to add a referer header to my request directly and everything seemed to work nicely! headers = {'referer':'https://myurl/myscript'} data = requests.post(url, data, headers=headers)
... View more
10-23-2020
07:38 AM
|
0
|
0
|
2965
|
|
POST
|
I'm having some issues with using tokens I generate from a Python script by hitting a public ArcGIS Server's generateToken endpoint. Our IT routes traffic in some convoluted ways (which is to say dynamically) such that using a token generated from a generateToken request using 'client':'requestip' in the parameters sometimes will end up with a token denied error. Basically, if the generateToken request first comes from ip address B, but then the REST request comes from IP address B but uses the token generated from ip address A, I'll get an error. I'm curious if there is a way around this somehow without going through IT. I'm unclear how I would use 'client':'referer' in the generateToken request, since this is coming from a Python script being run on a server and not a webapp. Is this even possible?
... View more
10-23-2020
06:50 AM
|
0
|
2
|
3002
|
|
POST
|
Does anyone know of a way to clone an existing feature layer based on a REST URL, but convert it to a FeatureLayer that uses client-side graphics instead. For my purposes this is easier than setting definition expressions. But I want to use the same FeatureLayer settings (labels, popups, renderers, etc. etc.). . I'm using 4.11 version of the API.
... View more
10-02-2020
07:04 AM
|
0
|
0
|
797
|
|
POST
|
I'm having a difficult time intercepting a search widget selected result and dynamically changing the symbol that gets placed on the map based on application state, and am curious if this workflow is supported. At its most simplistic, I've tried with the below, which does not work. In my case, setting the resultSymbol on the search sources object or anything "hard-coded" would not work, since I have multiple application settings that might affect how I want a search result displayed - what's missing in the below code are the conditionals checking those application settings, but I wasn't even able to get the simple case to work. Can anyone help me out? this.searchWidget.on('select-result', ({result, source})=>{
result.feature.symbol = {
type: "point-3d", // autocasts as new PointSymbol3D()
symbolLayers: [{
type: "object", // autocasts as new ObjectSymbol3DLayer()
width: 20, // diameter of the object from east to west in meters
height: 50, // height of the object in meters
depth: 15, // diameter of the object from north to south in meters
resource: { primitive: "cylinder" },
material: { color: "red" }
}]
};
});
... View more
09-25-2020
05:04 AM
|
0
|
0
|
946
|
|
POST
|
In checking out the elevation options @ Elevation options | ArcGIS API for JavaScript 4.16 , it seems like no option would apply to elevation in MSL (mean sea level), unless it's absolute-height. Is the absolute height baseline that of sea level based on the datum?
... View more
09-24-2020
12:18 PM
|
0
|
3
|
1870
|
|
POST
|
Any known solution to this?? I'm now seeing this error...
... View more
09-16-2020
08:39 AM
|
1
|
0
|
1528
|
|
POST
|
At Esri supports' recommendation, I'm following the instructions @ How To: Rebuild the index for Portal for ArcGIS 10.6.1 for rebuilding the index for Portal. In C:\arcgisportal\index\nodes\0\indices, there are 4 long folder names, which the technical support article says to delete the contents of and replace with extracted items from the empty-index.zip file, based on a text string in each of the .st files in each of those folders. However, there are only three folders in the empty-index.zip file, corresponding to ago-items, ago-groups, and ago-users. However, there are FOUR long folder names in my indices directory. Each of three from the indices dir corresponds to the ago-items, ago-groups, ago-users folder, but the fourth is an outlier. Looking at the .st file, there is a text string that says dsconfig-es5 where the other three have either ago-items, ago-groups, ago-users. My question is what to do with that long folder name. Still delete the contents? Do I put anything in the folder after deleting, or just keep it deleted and rebuild the index from the portaladmin page once all the work is done? Thx
... View more
08-25-2020
05:13 AM
|
0
|
0
|
1351
|
|
POST
|
Nevermind - just realized there is a arcgis.gis.server module that solves my issue. Figured it out. gis = arcgis.gis.server.Server("https://myserver.domain.com/restricted/admin", username=username, password=password) fl = arcgis.features.FeatureLayer(featurelayerurl, gis=gis).query()
... View more
06-18-2020
10:47 AM
|
0
|
0
|
1628
|
|
POST
|
I'm aware of how to use the Python API to authenticate to a GIS and then create a FeatureLayer from a feature service to query or extract data from. However, I can't seem to figure out how to do the same when there is no underlying Portal. The feature service in question is restricted, but I am able to login and traverse the REST endpoints from my browser. Similarly, I can (using Python) generate a token from the Server's generateToken endpoint. However, since the server is not federated, I am not able to use the Python API to get access to the underlying feature services: For my example: say my REST endpoints are at: https://myserver.domain.com/restricted/rest/services Example code: gis = GIS("https://myserver.domain.com/restricted", username=username, password=password) - generates an error fl = arcgis.features.FeatureLayer("https://myserver.domain.com/restricted/rest/services/myservice/0").query() - also generates an error. I have tried generating a token and then passing it in to both the Feature layer or the GIS and nothing seems to work. Is there any workaround here I'm missing? Thanks!
... View more
06-18-2020
10:39 AM
|
0
|
1
|
1667
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 02-23-2026 11:00 AM | |
| 1 | 07-08-2025 11:33 AM | |
| 1 | 11-07-2023 08:32 AM | |
| 2 | 10-01-2025 06:52 AM | |
| 5 | 09-08-2025 07:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-04-2026
01:35 PM
|