|
POST
|
Do you have a CodePen showing the issue, or a URL to the image service? The link to the help topic provided above shows how to use the raster object id as input parameter to the raster function. If you're building some type of UI to pick the years then you'll need to know the available raster ids and how they corresponds to each year. Temporal information can be modeled in many different ways, but in your code above it seems to be part of a raster attribute so you can get those values via a query into the service. Additionally, you might need to chain together other Raster Functions to provide appropriate colors based on the the type of data or desired visualization, or maybe use an appropriate renderer. const changeDetectionLayer = new ImageryLayer({
url: imageServiceURL,
renderingRule: {
functionName": "Arithmetic",
functionArguments: {
"Raster" : "$5",
"Raster2" : "$6",
"Operation" : "2",
"ExtentType" : 0,
"CellsizeType" : 1
},
outputPixelType: "f32"
}
});
... View more
02-14-2022
05:36 PM
|
1
|
3
|
2694
|
|
POST
|
For the "Raster" and "Raster2" parameters, use the raster ids. For example, if "Reclass_IntYear2015" has an object id of 5 then the "Raster" parameter should be "$5". https://developers.arcgis.com/documentation/common-data-types/raster-function-objects.htm - Check out the section "Using rasters in rendering rules"
... View more
02-14-2022
08:23 AM
|
1
|
5
|
2718
|
|
POST
|
Maybe try the Size VisualVariable to accomplish this: ScaleDependentIcons
... View more
02-08-2022
08:12 AM
|
3
|
1
|
1533
|
|
POST
|
If using BaseTileLayer you can use the getTileBound() method.
... View more
01-31-2022
07:57 AM
|
0
|
0
|
1324
|
|
POST
|
Here's an example of calling the ImageryLayer.identify(): https://codepen.io/john-grayson/pen/JjOdPGY
... View more
01-27-2022
08:10 AM
|
1
|
0
|
1819
|
|
POST
|
When calling the 'identify()' method on the ImageService you don't need the URL parameter as the API will know that from the ImageSerivce itself.
... View more
01-27-2022
07:59 AM
|
0
|
1
|
1825
|
|
POST
|
I recently did something similar using the JS API CIMSymbol. Here's a simple CodePen showing the concept: https://codepen.io/john-grayson/pen/dyVjomE
... View more
01-06-2022
10:37 AM
|
0
|
0
|
1182
|
|
POST
|
Since this is a different issue from the original question which has already been answered, creating a new entry is probably the best approach. Also, having a CodePen or similar showing us what you have tried is always the best way to get appropriate assistance. In the code snippet above, you are not telling the 'size' VisualVariable where to get values from; try using a field or valueExpression. Check out the various examples in the SizeVariable doc.
... View more
01-04-2022
09:03 AM
|
0
|
0
|
1657
|
|
POST
|
When autocasting the SimpleRenderer you must pass in the appropriate 'type' parameter, which the doc tells us for a SimpleRenderer the value is 'simple'. Maybe this will work: const buffer20m = {
type: "simple",
symbol: {
type: "simple-fill",
color: [151, 151, 204, 0.5],
style: "solid",
outline: {
color: "white",
width: 1
}
}
};
... View more
12-31-2021
08:07 AM
|
2
|
2
|
1703
|
|
POST
|
I don't see in the doc where it says the BaseDynamicLayer is not supported in a SceneView. I modified one of the samples to load it in a SceneView and it worked: https://codepen.io/john-grayson/pen/LYzQWPg
... View more
12-29-2021
08:10 AM
|
3
|
1
|
1682
|
|
POST
|
I provided a link to the documentation, a link to an API sample, and a link to a custom codepen example. If the links to the information and examples provided don't show what you need, then maybe a more detailed explanation of what you need would be appropriate, along with providing a codepen or similar showing the code of what you have tried so far so we can all experience your issues?
... View more
12-21-2021
10:58 AM
|
0
|
0
|
874
|
|
POST
|
You can learn about the Search Widget configuration in the doc: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html Check out this sample: https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/ ...and here's a modified version of the sample that shows it configured to just one custom source: https://codepen.io/john-grayson/pen/GRMWVqw
... View more
12-16-2021
08:04 AM
|
2
|
2
|
902
|
|
POST
|
Check out the UniqueValueRenderer; you should be able to configure the 25 values as needed by creating unique symbols that use different shape for the category and then colors for the type: https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html
... View more
12-02-2021
08:24 AM
|
0
|
0
|
750
|
|
POST
|
The way I would handle this is to first un-share the source hosted feature layer which has editing enabled so appropriate credentials are needed to perform an edit. Then I would create a hosted layer view and disable editing and share it publicly for others to consume as a read-only layer.
... View more
11-10-2021
10:43 AM
|
2
|
0
|
1444
|
|
POST
|
Is using goTo() as Jeffery mentions, and working with point geometries and you need a specific zoom scale, you might want to try using some of the other 'goTo()' parameters, maybe something like this: servicePoint_QT.execute(meterNumber_Q).then(zoomToServicePoint);
function zoomToServicePoint(results) {
var geometry = results.features[0].geometry;
view.goTo({target:geometry, scale: 12500});
} https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GoToOptions2D
... View more
10-29-2021
08:23 AM
|
3
|
0
|
1941
|
| 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
|