POST
|
Andrea, if you rotated the map then the extent might not be what you think it is. As mentioned by Steve, you should not use the extent as it will not provide the correct intersection results since the geometry and the extent are different. Maybe something like the code below might help. Also, its hard to tell exactly what might be going on, so something that will help is if you have a CodePen or similar so we can experience the issue and help you out. const searchGeometry = event.graphic.geometry;
const intersections = graphicsLayer.graphics.filter((graphic) =>
geometryEngine.intersects(searchGeometry,graphic.geometry)
);
... View more
2 weeks ago
|
0
|
0
|
73
|
POST
|
I just tried with previous versions of the api (back to 4.7) and it seems like it's always been zero based. It always helps to track down these types of use cases if you share a CodePen (or similar) showing the issue. https://codepen.io/john-grayson/pen/eYozyrY
... View more
03-12-2024
04:24 PM
|
0
|
0
|
250
|
POST
|
As Matt suggested, I too would recommend the use of CIMSymbols and the symbol builder app which is a great way to help us get started. I used the symbol builder to mock up the symbol json for the line layer and then I updated one of the samples to create this CodePen, which I then further tweaked to connect the label text to a feature attribute via the primitive overrides and Arcade. Hopefully these links will help in your task.
... View more
03-07-2024
04:14 PM
|
1
|
0
|
73
|
POST
|
You might want to check out CIMSymbol and its ability to override primitives via Arcade expressions as it might provide the necessary functionality. https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride
... View more
03-01-2024
11:07 AM
|
0
|
0
|
98
|
POST
|
If the stretch raster function is not going to be used conjunction with other raster functions to provide additional context to the processing of the pixels, then you might instead just use a stretch renderer if all you need is visualization. I've updated the CodePen to show this simpler alternative.
... View more
03-01-2024
10:48 AM
|
1
|
2
|
140
|
POST
|
Try the geometryService.labelPoints(...) method to see if it gives you what you need: https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#labelPoints
... View more
02-23-2024
01:30 PM
|
0
|
0
|
48
|
POST
|
Not sure if this will still work in Pro as it was authored back in 2011, but I believe this might be what you're looking for: https://www.arcgis.com/home/item.html?id=cede8ab5c0514f41a2cc69bedff67f48
... View more
02-23-2024
01:10 PM
|
0
|
0
|
115
|
POST
|
Try setting an appropriate stretch before applying a colomap: https://codepen.io/john-grayson/pen/WNmqZbq
... View more
02-23-2024
12:40 PM
|
1
|
4
|
171
|
POST
|
Not sure if it helps in your specific use case, but if you are using an online hosted Feature Layer I would suggest you check out the capability to create hosted Feature Layer View and it's ability to configure filters.
... View more
08-03-2023
02:41 PM
|
0
|
1
|
243
|
POST
|
You can also use the cimSymbolUtils to help with some of these tasks, in your use case the 'scaleCIMSymbolTo()' method.
... View more
08-03-2023
02:34 PM
|
2
|
0
|
408
|
POST
|
There are many options available via the Draw tools and the Sketch and Editor widgets, but if you want 'no additional tools' then coming up with a 'very simple for the user' workflow becomes a little more complicated. Here's a quick take at one possible approach; it's not perfect but it might give you some ideas: https://codepen.io/john-grayson/pen/bGQaZom
... View more
07-12-2023
01:54 PM
|
0
|
0
|
138
|
POST
|
The 'content' property of the 'openPopup()' method doesn't list CustomContent as valid parameter type. For your use case you can just use a function that returns the HTMLElement directly: https://codepen.io/john-grayson/pen/BaGJMvw
... View more
07-12-2023
11:23 AM
|
1
|
0
|
329
|
POST
|
Another option would be to let the service perform the intersection test by passing in the dynamic feature geometry into the query; something similar to this but with all the appropriate Query parameters: const staticQuery = staticFeatureLayer.createQuery();
staticQuery.geometry = dfFeature.geometry;
staticFeatureLayer.queryFeatures(staticQuery).then((staticFeatureSet) => {
... View more
04-25-2023
11:28 AM
|
2
|
0
|
264
|
POST
|
You might also want to check out the cimSymbolUtils if you're looking to change the size of the symbol. Maybe the scaleCIMSymbolTo() method will do what you need?
... View more
04-14-2023
09:17 AM
|
0
|
0
|
246
|
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 |
Tuesday
|