-
REST API, mapImage, export
Ahoj všichni, Používám ArcGIS JS SDK a používám clipping customParameter na mapImageLayer, který jako vstup přijímá excludedLayers a includedLayers. Funguje to dobře. Proč tyto vstupy nefungují u spatialQuery customParameter? Bylo by fajn mít nějaké jednotné odpovědi s featureLayers 3 S pozdravem, Christophe
-
How to get an API key?
Hi! I am new to ArcGIS, and I am extremely confused by this website and all its online features. I found this website because I am building a small Geo app where I track my bike an hike tours. (I know, the million-th one, but it is just for myself.) When searching for compatible maps for OpenLayers, Google spits out ArcGIS…
-
REST JS Reference CDN Library Link Typo
Dear Esri REST JS Team: The CDN library path script src="https://unpkg.com/@esri/arcgis-rest-feature-service@4.4.1/dist/bundled/feature-server.umd.js" integrity=... as shown on the reference page https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-feature-service/ returns a 404 error. I think it should…
-
What is the best way to combine 2 layers in a query?
Hello! I'm looking for recommendations. I have this set up where I query a layer and then create a chart. However, I have a second layer I would like to query at the same time and ideally wait to have both responses before creating my custom chart. Does anyone know how I could achieve that? Thank you…
-
OAuth app authentication
Does anyone know how to use the token from this endpoint? https://developers.arcgis.com/rest/users-groups-and-items/token/ I was trying trying to implement app authentication but even with a token, trying to access secured items on ArcGIS Online wasn't possible. I kept getting an "invalid token" error. I have a server…
-
ESRI JS API 3.20 : Secured Feature Edit, apply Edits
We have an old app, which edits a Secured Feature Service. On ApplyEdits, we recently started getting an error in response body : {"addResults":[{"success":false,"error":{"code":635,"description":""}}],"updateResults":[],"deleteResults":[]} I want to know what code 635 means? Server is 10.6 Also, when I edit from the REST…
-
How to pair Api Key and Feature Service
I've returned to a project where I'm managing Feature Services/Layers through the ArcGis REST JS and consuming the data via a web frontend using the ArcGis Maps Javascript SDK authenticated with a Api Key. After I create a Feature Service (using createFeatureService) and a Feature Layer (using addToServiceDefinition) I…
-
RequestCredentials not found when using @esri/arcgis-rest-request
Hi there, I am building an node js application using typescript 5.4.5 and i am using @esri/arcgis-rest-request to try to get the access token from acrgis. But i am hit with node_modules/@esri/arcgis-rest-request/dist/esm/utils/IAuthenticationManager.d.ts:36:41 - error TS2304: Cannot find name 'RequestCredentials'. and also…
-
@esri/arcgis-rest-request v 4 installation breaks
Hello , Am trying to install @esri/arcgis-rest-request V4 into my react React JS project the. I received set of warning vulnerabilities as "121 vulnerabilities (1 low, 97 moderate, 19 high, 4 critical)" . I tired to fix them by npm audit fix --force, it did not wok , more vulnerabilities I got and the whole project is…
-
Converting an IPoint to an ILocation
I am trying to get weather data for places I am looking up with the 'geocode' and 'reverseGeocode' operations. I notice that they return IPoint objects, rather than latitude/longitude. Is there a way to convert an IPoint to an ILocation? The weather APIs I'm using need lat/long rather than x/y. Apologies if this is a dumb…
-
How to share OAuth2 authentication between clients and servers
I have an angular application and a nodejs server. I am able to authenticate a session on angular end with OAuth2 and access a secured feature service. Is there a way to share the authentication with nodejs server and access the same feature service?
-
Join Hacktoberfest 2023: Celebrate Open Source with Us!
This October, Esri will be joining Hacktoberfest to celebrate our love for open source 💙! There are several open source repositories participating, including ArcGIS REST JS. To learn more about how you can join and be entered into our contest 🏆 to win registration to the Esri Developer Summit, check out our ArcGIS Blog…
-
What's the correct way to figure out if a user has access to a certain layer
Hi there, We're trying to programatically figure out if a user (john_smith) has access to a certain map layer and can load it without any issues. For that, using the node.js SDK, after we get the web map definition, using getItemData(mapId), for each basemap layer and operational layer, we try to get the owner/access level…
-
How to query ArcGIS feature layer's date type column using epoch time format
Hey all, I was wondering if it was possible to perform a query on a DATE type column for an ArcGIS feature layer using an epoch time format. For example this query works fine: DATE = '7/28/2023 12:00:00 AM' But when using epoch time that matches the date above, it does not return any results: DATE = 1690520400000 What's…
-
Unable To Get Popup Information From Portal Via Any Method of JavaScript Code
I'm encountering some very strange behavior that I have never encountered developing applications that use ArcGIS JSAPI. For reference, my setup is using the following versions of ArcGIS products: * ArcGIS Pro 2.9.6 * ArcGIS Enterprise 10.9.1 with Federated Portal * ArcGIS JavaScript SDK 4.25 I am trying to implement the…
-
Adjusting Existing Applications to Accomodate a First Time Portal Environment with Federation
My organization is in the process of setting up a new ArcGIS Server Enterprise environment where we are using ArcGIS Portal for the first time as well. We are coming from a 10.6.1 setup where all of the secured mapping applications are using the ArcGIS Server Managers built-in security model where we create roles, users…
-
Find address coordinates using Node.js
Do you want to learn how to build a simple Node.js application to find the location of an address? If so, follow the simple steps outlined in this blog article. https://www.esri.com/arcgis-blog/products/developers/developers/find-address-coordinates-using-node-js/ Want more ArcGIS REST JS tips and tricks? We'd love to hear…
-
Display of KML file in esri javascript from file object
I need to read the KML file from the File Object and show it on the map
-
Generate token to query AGOL History API without using ArcGIS Python API
I would like to query my AGOL organization's History API (https://myorg.maps.arcgis.com/sharing/rest/portals/self/history) without using the ArcGIS Python API, just using Python requests library. My understanding is I would need to generate an admin token, and use that token to query the API. However, I cannot figure out…
-
How to feed SQL data into map
Hi there, I'm looking for resources to help me understand what my options would be for feeding SQL data to a map a colleague of mine is building. I am not familiar with Arc, but I will be providing the data. Currently the data is created using Excel and an analysis service. Rather than building reports this way and…
-
Can I query a Scene Layer with Arcgis REST JS?
Hi, I'm trying to query this layer: https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/3D_Bomen_WGS/SceneServer/layers/0 It is a Scene Layer. But somehow I don't get any results when I use the JS API. const apiKey = "AAPK15f3dab70322487db19968e34d3****************************"; // altered for safety const…
-
Access Feature Server Layer through Alteryx
I'm trying to use Alteryx to connect to a feature layer I have in ArcGIS Online to automate a task I perform. Has anyone used Alteryx to connect to ArcGIS Online? Is this function available? Any documentation on how to do so?
-
@esri/arcgis-rest-request: How to adjust Fetch options?
Hi all, I am looking to adjust the Fetch request option when making a request with @esri/arcgis-rest-request, but unfortunately I cannot find any documentation related to this. import fetch from "node-fetch"; import FormData from "isomorphic-form-data"; import arcgisRestRequest from "@esri/arcgis-rest-request";…
-
Error: requires a fetch implementation
Hello Sirs, I'm new in ArcGIS REST JS and I'm trying the first scripts following the tutorials. To do this try, I'm using the NodeJS environment. Unfortunately, in all my tests, I always get the error Error: `arcgis-rest-request` requires a `fetch` implementation and global variables for `Promise` and `FormData` to be…
-
Use the BeginOAuth2 without a popup
I am trying to include user authentication into a webpage. I want to use `BeginOAuth2` method from the rest-js library. I have found some examples with the property `popup` set to `true`, for example, https://github.com/Esri/arcgis-rest-js/tree/master/demos/oauth2-browser I do not want to redirect the user to any other…