|
POST
|
Can you please share a simple CodePen showing us what you've tried so far?
... View more
03-01-2021
11:16 AM
|
0
|
0
|
2674
|
|
POST
|
Below is a CodePen showing a quick try at an 'overlay' layer. Just a quick attempt, so it may or may not work for your use case. https://codepen.io/john-grayson/pen/gOLoEGj
... View more
02-25-2021
10:00 AM
|
0
|
0
|
2237
|
|
POST
|
I don't see 'curvePaths' as a valid property, only 'paths': https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html
... View more
02-24-2021
04:42 PM
|
0
|
0
|
797
|
|
POST
|
Correct, ideally you'd use Pro to generate the 3D services. I don't know about creating I3S, but since this was posted to the JS API community here's an alternative: you could try using the JS API to turn your existing 2D data into a 3D visualization. For this use-case you'd have to adjust the layer/features/symbol properties based on available attributes, and Arcade can help you do just that. Since you already have the data as GeoJSON you could try first adding the data via GeoJSONLayer to a SceneView. Then you could try to adjust the 3D offset and extrusion for each feature using the JS API. Check out the elevationInfo.featureExpressionInfo that will help you set the elevation offset per feature, and then use a size VisualVariable to set the extrusion on a per feature basis. Not sure if this will work for your data, but it might be worth a try. For smaller datasets this might be ok, but probably not recommend for very large datasets; managed services are best for that use case. Here's an old test app that shows some of these concepts; it was recently updated to 4.18 to test out the new OIT functionality: https://apl.esri.com/jg/AirspaceUS/index.html https://github.com/jgrayson-apl/AirspaceUS/blob/master/app/Main.js#L440
... View more
02-23-2021
05:12 PM
|
0
|
1
|
1826
|
|
POST
|
What is the goal of the above task? The code tries to change the symbol of the graphic, which at that time is a reference to the internal symbol used by the Sketch widget, so all subsequent graphics created via the Sketch widget will use the updated symbol. Is that what you want to do? If so, check out the 'polygonSymbol' property of the SketchViewModel as it might be an alternate approach. If the goal is to change the symbol for just the current graphic after it has been added to the layer, you'll can instead clone and update the symbol (so you don't change the Sketch internal symbol). https://codepen.io/john-grayson/pen/zYoEJbQ
... View more
02-22-2021
08:42 AM
|
0
|
1
|
1875
|
|
POST
|
Check out the FAA OpenData site ( https://udds-faa.opendata.arcgis.com/ ) as it might already contain the data you're looking for as services that could be brought into a SceneView.
... View more
02-22-2021
08:19 AM
|
0
|
3
|
1829
|
|
POST
|
The help doc says that webMercatorUtils is an Object not a Class, so I don't think we would create a new instance using the 'new' keyword. I wonder if this would work in your code: let coordinates: any = EsriwebMercatorUtils.xyToLngLat(x,y);
... View more
02-17-2021
08:30 AM
|
0
|
1
|
1841
|
|
POST
|
Have you tried using a RequestInterceptor (query or before) to see if you can add in the appropriate parameters?
... View more
02-11-2021
08:04 AM
|
0
|
1
|
1455
|
|
POST
|
Are you trying to get back data from the GeoJson layer? https://github.com/tkamiya0625/Arc-MVT/blob/main/20210210/arcgis.html#L88 Q: Maybe try this? const opts = {
include: geoJSONLayer
};
... View more
02-10-2021
08:26 AM
|
0
|
1
|
1521
|
|
POST
|
It helps to have a very simple CodePen showing just the code related to the issue so we can experience the problem and make suggestions.
... View more
02-04-2021
07:21 AM
|
0
|
1
|
4900
|
|
POST
|
...and here's a slight modification to above codepen that shows how to only get features that intersect the extent boundary: https://codepen.io/john-grayson/pen/GRNKPjw
... View more
01-28-2021
08:12 AM
|
1
|
0
|
2628
|
|
POST
|
Do you have a simple CodePen showing what you've tried so far? The simplest approach is to use the queryFeatures() method on the Sublayer. You might also consider converting the Extent to a Polyline to simplify the intersect operation.
... View more
01-26-2021
08:09 AM
|
1
|
0
|
2646
|
|
POST
|
Do you have a very simple codpen showing what you've tried so far? What type of layer are we dealing with? If the points are in a FeatureLayer (or MapImageLayer Sublayer) you can use the definitionExpression property to define which features to retrieve and display. If the filtering extent is defined dynamically you can use queryObjectIds to help you find the relevant features to show/hide.
... View more
01-20-2021
08:08 AM
|
0
|
2
|
5464
|
|
POST
|
Correct, as mentioned previously, "...applying a proper mosaicRule and renderingRule is vital to make sure your stats reflect the necessary data ranges and values." There is no single approach that works for all use-cases. I like to remap the pixels into human understandable categories; for the temp data I might use 5 or 10 degree intervals as integers so that I can then more easily associate a specific category with a specific range of values. Other approaches might be to use a linear stretch and then do a simple interpolation. Most times I just want to show a histogram chart so I'm not necessarily worried about the specific range of values in each bin. A couple of RasterFunctions that have helped in the past are Stretch and Remap,
... View more
01-12-2021
08:40 AM
|
0
|
1
|
3821
|
|
POST
|
Blake's response gets you almost there: // LAYER QUERY //
const query = HIMLayer.createQuery();
query.set({
where: "1=1",
returnGeometry: false
});
// RETRIEVE ALL FEATURES FROM LAYER //
HINLayer.queryFeatures(query).then((featureSet) => {
// FEATURES THAT SATISFY THE ABOVE QUERY //
const features = featureSet.features;
// CREATE LIST OF ATTRIBUTES FROM THE FEATURES //
const attributeData = features.map(feature => {
return feature.attributes;
});
// DO SOMETHING WITH LIST OF ATTRIBUTES //
document.getElementById("List").textContent = attributeData;
}); If you're only interested in the OBJECTIDS, then check out the queryObjectIds() method.
... View more
01-08-2021
04:54 PM
|
2
|
0
|
4489
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-07-2024 04:14 PM | |
| 1 | 02-23-2024 12:40 PM | |
| 1 | 03-01-2024 10:48 AM | |
| 2 | 08-03-2023 02:34 PM | |
| 2 | 07-19-2023 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2024
06:01 PM
|