|
POST
|
I'm sorry @RYANCARL I didn't see this message. I hope the saying "better later than never applies here", at least if this isn't helpful for you anymore maybe it would be for someone else in the future: I think setDefaultRequestOptions have to be used like this: setDefaultRequestOptions({
// only accepts iRequestOptions params
// authentication: ...,
// credentials: ...
// ...
params: {
// for additonal parameters use IParams
agent: new https.Agent({rejectUnauthorized: false}),
}
}); I also recommend to use the repo issues to contact the maintainers if you don't help a response soon enough in here. I hope this helps, Raul
... View more
01-06-2023
02:27 AM
|
0
|
0
|
1100
|
|
POST
|
Sorry @BellleInTX for the huge delay, I have no experience or access to Alteryx so I can not help you here. I can't find useful content using the search functionally either. I would try Koop if you are trying to access data hosted in Alteryx from ArcGIS products. If you are still interested on this maybe we can make a quick call so you can show me how Alteryx works and we can figure out a way to do it.
... View more
01-06-2023
02:13 AM
|
0
|
1
|
1302
|
|
IDEA
|
In my spare time I have started learning Dark and Flutter and I have been playing around with some existing open source packages trying to load ArcGIS basemaps: https://github.com/hhkaos/flutter_arcgis_basemaps I just wanted to share it in case anyone is interested on this, or is willing to collaborate to understand why this is not fully working. I will try to find some time to experiment with other packages too.
... View more
01-03-2023
11:04 AM
|
0
|
0
|
2837
|
|
POST
|
Sorry @DanielDormont for the delay! And leaflet does work with WebGL, via esri-leaflet-vector, doesn't it? In fact that's something I've been wondering. Since we already use esri-leaflet-vector to show vector basemaps, is there not a way to use that same technology with feature layers? I don't think there is an easy way. As you can see vector basemaps relies on maplibre-gl-js, and basemap tile services and feature layers services are very different. esri-leaflet-vector, but it would be better to ask in the repo. I guess by "generic" I just meant that Leaflet can pull data including basemaps from any source; we have some customers who have their own custom data sources they want to use. 🤔... did you know that the JS API can also be used with any custom data source? I mean, there are some standard layers (GeoJSON, CSV, KML, WFS, ...) , and if none of them fit, you can also do it by drawing directly in a GraphicsLayer (in memory) or populating a FeatureLayer using an array graphics (example). In fact, we even have a few applications where the coordinate data aren't geographic at all, and we use https://leafletjs.com/examples/crs-simple/crs-simple.html to display them. I agree that for use cases like this one I wouldn't use the ArcGIS Maps SDK for JavaScript either :). I hope you have a happy new year eve!! 🥳
... View more
12-30-2022
10:54 AM
|
1
|
0
|
3494
|
|
POST
|
Hi @DanielDormont , There are multiple optimizations been done behind the scenes. @JeremyBartley explained some of them on Behind the scenes, What the JS API and ArcGIS do for you. But in summary ArcGIS API for JS use WebGL (Leaflet doesn't) plus the ArcGIS API for JS make use of all the optimizations included in the Feature Service to reduce the data transferred and produce faster responses (tile caching, PBFs encoded responses, geometry quantization, etc.) <- and as far as I know, the Esri Leaflet FeatureLayer.js doesn't as can be seen here: There you can see how Esri Leaflet request a GeoJSON from the service, plus every time you zoom in & zoom out send a bunch of requests to retrieve only the geometries needed (but do not cache, compress or simplify them) <- it would be great if someone in the community would open a PR to help improve it (but I think there are pretty complex optimizations in the JSAPI that wouldn't be easy to replicate). In my application we use Leaflet just because it's a bit more generic Interesting, what do you mean by more generic? Is there anything we could ask the JSAPI team to do to make it more generic? we were already familiar with it before we began integrating with Esri, but we have been running into similar performance issues displaying complex Feature Layers That's a common situation. Let me know if there is anything else we can do to support you or make your life easier learning how to integrate with ArcGIS. Cheers, Raul
... View more
12-09-2022
05:25 AM
|
0
|
3
|
3543
|
|
POST
|
Hi @NickySonnemans , First things that comes to my mind: You can use a cluster point renderer If you own that layer you can: Publish the feature layer as a vector tile layer and load it using the vectorTileLayer plugin Publish the feature layer as a raster tile layer and load it using as a tiledMapLayer Note: if you publish the layer as a tile layer you will need to write a mechanism to retrieve the attributes from the features from the service (which will be a little bit tedious). I hope you don't mind, but I'm going to give you another advice... 😅. I would recommend you to take a look to the JavaScript API. For an application like this one the learning curve shouldn't be big, and here you can see who it can load the ~15.000 geometries that this service has easily here: https://jsbin.com/lonuhop/1/edit?html,output Because you said you are not very proficient in ArcGIS, I highly recommend you to take a look to the Map Viewer (learning path), it is an awesome tool (accesible for free) that combined with the ArcGIS API for JavaScript will help you to speed up your development process, helping you to configure nice symbols and popups really quick: you can start from here. After saving your map an ID is returned in the URL. You can grab it and use it to load the configuration you made with a few lines of code. After doing that, you can access the configuration object and adjust, modify, and customize the behaviour of the rest of the application programmatically (as I was showing here). I hope this helps, Raul
... View more
11-23-2022
10:20 AM
|
0
|
5
|
3576
|
|
POST
|
Hi @AnalystOK, Please provide more details, what type of map? A map can be built with many technologies ArcGIS API for JS, Leaflet, Runtime SDK for Java, Operations Dashboard, ... Depending on the details I would recommend one resource or another. Assuming you are interested on add data from JavaScript/NodeJS and not Python or anything else (because you are publishing in the ArcGIS REST JS forum, I would recommend you to try the Edit feature data tutorial. But you can also take a look to the Postman collection. Said that, ArcGIS Feature Services are not the only way to load data into a map, but they are the most versatile 😉. I hope this helps
... View more
11-04-2022
09:31 AM
|
0
|
0
|
1110
|
|
POST
|
Reading the doc for the authorize endpoint I see this: Note: Support for PKCE was introduced in 2020 for ArcGIS Online and at version 10.8.1 for ArcGIS Enterprise. Right know I'm working in this Postman collection to emulate the different flows (using ArcGIS Online / ArcGIS Platform products), but Enterprise should be pretty similar in terms of PKCE. Hope this helps!
... View more
10-25-2022
06:12 AM
|
0
|
0
|
2026
|
|
POST
|
Sorry @JoeHershman I'm a little bit late, but I'm taking the opportunity that I'm preparing a session about authentication in ArcGIS for the DevSummit Europe next month and I have solved this using PKCE and SHA256. This is the right way to generate the code_verifier and the code_challenge (Node.js code): let crypto;
try {
crypto = require("crypto");
} catch (err) {
console.log('Run $npm install first!');
}
function base64URLEncode(str) {
return str.toString('base64')
.replace(/\+/g, '-')
.replace(/\//g, '_')
.replace(/=/g, '');
}
const verifier = base64URLEncode(crypto.randomBytes(32));
console.log("Code verifier: ", verifier);
function sha256(buffer) {
return crypto.createHash('sha256').update(buffer).digest();
}
const challenge = base64URLEncode(sha256(verifier));
console.log("Code challenge: ", challenge); An example running this would return something like this: $ node index.js Code verifier: CMBya5LFXGJktdlm5OL8bIIpVa4LtUAl4ihYCFalQNc Code challenge: qaXuju2sX8lKLvErIKHfdrg0h7DLvSeLuErfsfMJFj4 This will work. I have created a GitHub repo plus a Postman collection with a flow example (+ sample responses to help anyone implement this workflow): I know this comes late to help you but hopefully it is not late for someone else or at least it is interesting to learn something new (it has been for me!😁) Best, Raul
... View more
10-25-2022
02:40 AM
|
0
|
0
|
10288
|
|
POST
|
Sorry @tdelorenzo for the late reply. I hope I explained myself a bit better. Yes, I get your point, imagine you are building a mobile or web UI that end-users are using directly and you want to provide an "omnibox" type of experience that allow them to search POIs near to addresses. I was checking with our team and I'm afraid that categories are only supported in English today, meaning that the query that would provide the best results would be "grocery via ampere Milano”. Said that, I think this is a great opportunity to open a new request in ArcGIS Ideas. Adding translated terms (and synonyms) to the existing categories sounds a reasonable and doable request to me. Thank you for your patience, Raul
... View more
10-24-2022
02:33 AM
|
0
|
0
|
1198
|
|
POST
|
@tdelorenzo I just wanted to make sure.... have you read the Place search guide? (it might be helpful) What I mean is that if for instance I type "grocery [street name]", the API returns me all POI of category "grocery" on that street. However, this does not work with "supermercato [street name]" which would be the equivalent in Italian. Could you use the "category" parameter? (here you have a list of supported category values) Moreover, even in english, the API returns the related POIs ON that street. Is there a way to find the POIs CLOSE to that street? As far as I know, if you wan't to find places close to a location you have to use the "location" field. It would be nice to better understand what you are trying to build to provide better advice 😊 Raul
... View more
10-19-2022
04:27 AM
|
0
|
2
|
1249
|
|
POST
|
I'm glad to hear it was what you were looking for 🙂 The timing of this question was pretty good with your presentation coming up 🙂 hahaha yes it was! It would be awesome if ESRI could share the Postman workspace elsewhere We will. Actually I'm planning to organize some online free workshops to test and improve the collections and better understand other use cases that might not be covered yet. During that process I will be working with my colleagues writing the documentation to link find the better way to link these resources. Stay tuned for future editions of this workshop filling out this form. Note: before the end of the year we are also planning to release a repository on GitHub with a backup of multiple Postman collections we are working on. Thanks a bunch! Always happy to help!! 😊
... View more
10-19-2022
01:55 AM
|
0
|
1
|
1997
|
|
POST
|
Hi @NathanielEvatt , I'm currently working on the "Authentication in ArcGIS: A Practical Approach" session I will do at the Esri European Developer Summit 2022 and I have built a Postman workspace with several collections where you can check the required steps to do this programmatically. I hope this helps. Raul
... View more
10-17-2022
08:46 PM
|
0
|
5
|
2020
|
|
BLOG
|
For developers new to mapping "bbox" stands for "bounding box", and it is also known as "extent", "bounds", "geographical bounds", "boundaries", etc. As the documentation describes: (Required) The extent (bounding box) of the exported image. Unless the bboxSR parameter has been specified, the bbox is assumed to be in the spatial reference of the map. The bbox coordinates should always use a period as the decimal separator, even in countries where traditionally a comma is used. Syntax <xmin>, <ymin>, <xmax>, <ymax> The following resources might be helpful to set the "bbox" parameter: To do it manually I recommend you to use this tool made by @GavinRehkemper: https://github.com/gavinr/arcgis-js-api-extent-helper To make it programmatically you can also use the values of the extent returned by the Esri Geocoder (guide & REST call) Recommendation: leave bboxSR=4326, it is the EPSG code that specifies we will use GPS coordinates (a.k.a. WGS 84) which is the most common spatial reference for storing and referencing data across the entire world (more info).
... View more
09-05-2022
09:42 AM
|
0
|
0
|
1811
|
|
BLOG
|
@MichaelJenkins a few years ago I did what you are asking using the Export Web Map Task: https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task And using the ExportWebMap specification Maybe this repo helps you: https://github.com/esri-es/Static-Map-Service-ArcGIS, especially this file: https://github.com/esri-es/Static-Maps-API-ArcGIS/blob/master/js/staticmap.js Cheers!
... View more
09-05-2022
09:17 AM
|
0
|
0
|
1815
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 07-11-2025 08:28 AM | |
| 1 | 06-09-2025 08:42 AM | |
| 1 | 02-18-2025 03:33 AM | |
| 2 | 02-18-2025 01:14 AM | |
| 1 | 11-21-2024 11:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|