|
POST
|
You can use the geometryEngine for this: var length = geometryEngine.geodesicLength(polyline, "meters"); sample https://codepen.io/noash/pen/BaaPqNv?editors=1000#0 Or, you could also use the measurement widget to make this measurement in the app itself: Measurement widget | ArcGIS API for JavaScript 4.13
... View more
11-11-2019
11:13 AM
|
0
|
0
|
2242
|
|
POST
|
Could you query the FeatureLayer and get all the values for the field of interest? Then put the results in an array, sort by value, and take the lowest value as the minValue, and the highest value as the maxValue? https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3/query?where=1%3D1&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=OWNER_OCC&returnGeometry=false&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=pjson
... View more
11-11-2019
10:51 AM
|
0
|
1
|
2021
|
|
POST
|
Can you post some code that shows what you are trying to accomplish? What version of the JS API are you using? I'm not sure how you're using esriRequest or what you mean by mapLayer.
... View more
11-11-2019
10:44 AM
|
0
|
3
|
2161
|
|
POST
|
You can, but I'm not sure this is what you want. The RotationVariable can be used on a renderer, and renderers support Symbol, of which TextSymbol is a valid type. So this means that you can rotate a desired TextSymbol based on the value of a field, but this does not mean that you can rotate individual labels of features. The text of the TextSymbol will be defined by the string input. Not sure if this is clear. Here's an example of rotating TextSymbol: https://codepen.io/noash/pen/QWWBVMZ
... View more
11-11-2019
10:39 AM
|
0
|
1
|
1895
|
|
POST
|
Sorry to hear about the trouble. I'm not sure what's occurring. A simplified repro case will really help figure out what the issue is.
... View more
11-11-2019
09:09 AM
|
0
|
0
|
1263
|
|
POST
|
I tried your latest codepen a bunch of times, and it worked fine for me every time. Sorry, not sure what else to suggest. If you have the ability, I would recommend contacting Esri Support and see if they are better able to reproduce the issue. Esri Support Contact Support
... View more
11-05-2019
03:37 PM
|
0
|
0
|
2277
|
|
POST
|
Interesting. It looks like there might be an issue with consuming a MapImageLayer (with dynamic layers enabled) as a portal item. Will bear more investigation. Edit: This might be wrong. We can consume a MapImageLayer (with dynamic layers enabled) as a portal item. Not sure what is going on here. Maybe data specific. Cannot reproduce yet with a different item. In the meantime, you can still consume the data via URL instead of portal item, as seen here: https://codepen.io/noash/pen/LYYdzKE
... View more
11-05-2019
02:28 PM
|
2
|
3
|
2118
|
|
POST
|
Looking at the codepen, I see that when the app hangs, there are some requests pending to the firestore.googleapis.com, which may or may not be related to codepen itself. One idea is to wait for the layer to be ready instead of waiting for the view to be ready, like in this example: ArcGIS API for JavaScript Sandbox featureLayer.when(function() { featureLayer.definitionExpression = createDefinitionExpression(""); zoomToLayer(featureLayer); });
... View more
11-04-2019
01:52 PM
|
0
|
0
|
2277
|
|
POST
|
Hi Caleb, sorry to hear about the trouble. I tried to make a similar app, but could not reproduce the issue. Is there any commonality, like it only happens at home or at work, or on a certain wifi network, that makes it easier to reproduce? And if you remove the spinner part, do the console.log statements still follow the same pattern? test app to repro https://codepen.io/noash/pen/BaaJpNq
... View more
11-01-2019
02:54 PM
|
0
|
0
|
2277
|
|
POST
|
We don't have a dedicated Query widget, but we do have a lot of examples of using Query with the ArcGIS API for JavaScript: Sample Code | ArcGIS API for JavaScript 4.13
... View more
11-01-2019
11:22 AM
|
0
|
0
|
944
|
|
POST
|
Yes, the DictionaryRenderer does support 3D SceneViews.
... View more
10-31-2019
10:07 AM
|
0
|
0
|
1144
|
|
POST
|
Ok, thanks for the info. Please share the simplified ASP.NET app when you have time and I'll take a look.
... View more
10-30-2019
02:59 PM
|
0
|
9
|
9095
|
|
POST
|
Thanks for reporting this, Chris. Does this issue occur with other widgets, or is it just with the Print widget? Could you share a simplified app that reproduces the issue you are seeing? Feel free to message or email me if you don't want to post it here. Here is another method that may or may not work for you, similar to the stackOverflow thread, and similar to how we add the TimeSlider widget to an app: https://codepen.io/noash/pen/mddwPEz -Noah
... View more
10-25-2019
01:23 PM
|
0
|
12
|
9095
|
|
POST
|
Ah, now I understand. I don't think this is supported yet, but I will update this thread if I hear something different. For reference, https://community.esri.com/thread/189586-how-to-disable-sun#comment-663373
... View more
10-23-2019
02:00 PM
|
0
|
1
|
1846
|
| 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 |
Thursday
|