|
POST
|
I would recommend going through Technical Support and getting an enhancement logged. This way they can do all the proper testing and vetting. Esri Support ArcGIS API for JavaScript
... View more
10-17-2019
09:23 AM
|
2
|
0
|
1466
|
|
POST
|
Have you tried using a proxy? Using the proxy | Guide | ArcGIS API for JavaScript 3.30
... View more
10-17-2019
09:21 AM
|
0
|
3
|
4654
|
|
POST
|
Have you seen some of the samples posted in this thread? https://community.esri.com/thread/176528 They might provide some guidance or inspiration.
... View more
10-16-2019
03:49 PM
|
0
|
5
|
4654
|
|
POST
|
I think you're talking about the suggestions returned from the Search widget? I don't think we have a way to delay the suggestions being returned. Search | ArcGIS API for JavaScript 4.13
... View more
10-16-2019
03:04 PM
|
0
|
2
|
1466
|
|
POST
|
I believe that you can still get all the relevant information from REST. If it's a feature that is hosted somewhere, all the pertinent information is there, it's really just a questions of formatting. For example, the hasM or hasZ is false for both in the image above. This means that there is no M-value or Z-value, so those values will not be returned from the REST endpoint (they would be returned if they existed). The x and y values are just converted lat/longs (or vice versa). The type is available from REST, just in a different format, e.g.: "geometryType": "esriGeometryPolygon", Lastly, the spatial reference is available on the service itself.
... View more
10-15-2019
03:23 PM
|
1
|
1
|
3685
|
|
POST
|
If possible, I would recommend working with Support and getting this properly vetted as an Enhancement request. https://support.esri.com/en/Products/Developers/web-apis/arcgis-api-for-javascript/
... View more
10-15-2019
11:10 AM
|
0
|
0
|
1936
|
|
POST
|
I'm pretty sure you can get all the information you want via the Query operation against the REST endpoint. Here I just supplied the OBJECTID and set the outfields to * and returnGeometry to true. For example: https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/2/query?where=&text=&objectIds=1&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=&having=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&historicMoment=&returnDistinctValues=false&resultOffset=&resultRecordCount=&queryByDistance=&returnExtentOnly=false&datumTransformation=¶meterValues=&rangeValues=&quantizationParameters=&featureEncoding=esriDefault&f=html We also have a similar sample that uses the FindTask: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=tasks-find
... View more
10-14-2019
03:53 PM
|
1
|
5
|
3685
|
|
POST
|
Currently, we do not have support for ground layers in either the LayerList widget or the BasemapLayerList widget test-app: https://codepen.io/noash/pen/LYYNWVo
... View more
10-14-2019
11:34 AM
|
0
|
2
|
1936
|
|
POST
|
Gotcha. Ok, if I understand now, you are basically just wanting to do some geocoding. If you don't want to use a map, then you won't want to use the Search widget. As I see it, you could use the Locator Task for this. https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html# However, I do want to point out that Geocoding is a sometimes free and sometimes pay service. If you use the ArcGIS World Geocoding Service in a pay manner, then please review the instructions here: https://developers.arcgis.com/rest/geocode/api-reference/geocoding-free-vs-paid.htm If you have your own service to consume, or will be using the free operations explained in the link above, then here is a working sample as a proof of concept to get you started. https://codepen.io/noash/pen/XWWdpge The 3x sample that you posted a link to above does querying on a feature layer, which would be a different workflow, but one that you could implement yourself with the Query and QueryTask at 4.x and the logic of the CodePen sample. Query | ArcGIS API for JavaScript 4.13 QueryTask | ArcGIS API for JavaScript 4.13
... View more
10-14-2019
11:02 AM
|
3
|
2
|
4898
|
|
POST
|
I tested the sample provided and yes, when the app initially loads, that updateLocationEnabled: true pans the map and that means the view is animated. After initial load, the view.animation behavior remains the same whether the updateLocationEnabled is true or false, which makes sense. Does this address your question?
... View more
10-14-2019
10:01 AM
|
1
|
1
|
3589
|
|
POST
|
Sorry, I'm not sure how to help here. Is the goal to use the Search widget without a map? This widget requires a View, and the point of having a View is to view and interact with a map. I don't think that's possible to do. Search | ArcGIS API for JavaScript 4.13 Or is the goal to query features from a layer similar to the 3x sample? You can implement the same logic with the Query and QueryTask at 4.x. Query | ArcGIS API for JavaScript 4.13 QueryTask | ArcGIS API for JavaScript 4.13 Or is the goal to do some geocoding and get the results from search locations without a map? Then you could use the SearchViewModel's search() method. SearchViewModel | ArcGIS API for JavaScript 4.13
... View more
10-11-2019
11:43 AM
|
0
|
4
|
4898
|
|
POST
|
Hi Eemeli, Did you have a chance to review the authentication options we describe in our guide pages? Working with the ArcGIS Platform Working with the ArcGIS Platform | ArcGIS API for JavaScript 4.13 Access secure resources Access secure resources | ArcGIS API for JavaScript 4.13
... View more
10-11-2019
09:47 AM
|
0
|
0
|
918
|
|
POST
|
Hi Michalis, do you have a sample or reproducible test app that demonstrates this?
... View more
10-11-2019
09:43 AM
|
0
|
0
|
3589
|
|
POST
|
Hi Brad, sorry to hear about all the troubles. Could you share some code from the app(s) using the feature layers that are crashing the print service and are printing incorrectly? As well as the one crashing the legend widget? We haven't seen this behavior and would like to help figure out what is occurring. As far as best practices goes, everything should be documented in the FeatureLayer documentation, but we do have tips and tricks when it comes to performance, etc. Here's a video and slides from recent presentations. Working with Your Data Using the ArcGIS API for JavaScript Feature Layer Working with Your Data Using the ArcGIS API for JavaScript Feature Layer - YouTube Working with Feature Layers in the ArcGIS API for JavaScript
... View more
10-11-2019
09:01 AM
|
0
|
0
|
1587
|
|
POST
|
You could try just using the SearchViewModel SearchViewModel | ArcGIS API for JavaScript 4.13 And there's a similar 4x sample to that 3x sample that uses the Find Task FindTask | ArcGIS API for JavaScript 4.13
... View more
10-11-2019
08:51 AM
|
0
|
6
|
4898
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 1 | 04-14-2026 11:59 AM | |
| 1 | 05-13-2026 10:29 AM | |
| 1 | 04-10-2026 09:11 AM | |
| 1 | 03-24-2026 11:39 AM |
| Online Status |
Online
|
| Date Last Visited |
57m ago
|