|
POST
|
Actually, cancel that previous message; looks like you can still download it here.
... View more
11-06-2024
02:13 PM
|
1
|
0
|
508
|
|
POST
|
It doesn't look like you can download it from ESRI anymore. I have a local copy, but since it's about 333 MB, it exceeds the 9 MB limit for attachments here. Do you have a location where it could be uploaded?
... View more
11-06-2024
12:18 PM
|
0
|
1
|
509
|
|
POST
|
It appears the only way you get this error is if the graphic you're passing to update has its layer property set to something other than the GraphicsLayer used by the Sketch widget. This would suggest somewhere in your application, you're getting those graphics from some other layer before adding them into the GraphicsLayer. Perhaps instead of your present line 37, you could have these two lines instead: graphicToEdit = graphic.clone();
graphicToEdit.layer = iconLayer;
... View more
11-04-2024
02:39 PM
|
0
|
0
|
410
|
|
POST
|
The Query object doesn't have resultRecordCount and resultOffset properties, so those would be ignored. Instead, you should use num and start, respectively.
... View more
11-01-2024
04:03 PM
|
0
|
0
|
554
|
|
POST
|
Actually, esri/core/units is not involved when using the createCylinder method. It is also not possible to specify a system of units (e.g. "imperial" or "metric") with this method. Instead, your actual units must be known beforehand, and the value must be one of the constants defined for LengthUnit. An example is below: var cylinder = Mesh.createCylinder(point, {
width: 5,
depth: 4,
height: 3,
unit: "feet"
});
... View more
10-29-2024
09:13 AM
|
1
|
0
|
454
|
|
POST
|
You'll probably have better luck looking at the documentation for UniqueValueRenderer under the Web Map Specification. This is not the first time this has come up (example)...it would be good if the SDK documentation could link to it or something.
... View more
10-22-2024
04:11 PM
|
1
|
1
|
1499
|
|
POST
|
If I'm understanding this correctly, and you're using a UniqueValueRenderer, then using uniqueValueGroups rather than uniqueValueInfos might solve this problem. This was a fairly recent addition that didn't make it into 3.x at the time. As it says in the documentation, "Unique value groups also allow you to combine or merge multiple unique values to a single class so they are represented by one symbol and one label."
... View more
10-21-2024
10:15 AM
|
2
|
0
|
1555
|
|
POST
|
If all you're trying to do is replace TILEMATRIXSET=CZE with TILEMATRIXSET=UTM33N in the request URLs, you can do that fairly easily with a RequesInterceptor: esriConfig.request.interceptors.push({
urls: ["https://services.sentinel-hub.com/ogc/wmts/9c4df810-8939-4ef5-9962-fd51bf66ece8"],
before: function(params) {
var index1 = params.url.indexOf("TILEMATRIXSET=");
if (index1 > 0) {
var url = params.url.substring(0, index1) + "TILEMATRIXSET=UTM33N";
var index2 = params.url.indexOf("&", index1);
if (index2 > index1)
url += params.url.substr(index2);
params.url = url;
}
return null;
}
});
... View more
10-16-2024
04:48 PM
|
0
|
1
|
1095
|
|
POST
|
Are you accounting for the fact that those tiles are (likely) 512x512, as opposed to the "standard" 256x256?
... View more
10-15-2024
04:10 PM
|
0
|
1
|
848
|
|
POST
|
Below is a modified version of the MapImageLayer sample. In particular, the function "getImageHref" on lines 22-37 was added to get the URL of an exported image. The input "imageParameters" parameter is an object containing the same properties you described (similar the 3.x ImageParameters object). You can see this function is called on line 73. <html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<title>Intro to MapImageLayer | Sample | ArcGIS Maps SDK for JavaScript 4.30</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.30/esri/themes/light/main.css" />
<script src="https://js.arcgis.com/4.30/"></script>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
function getImageHref(mapImageLayer, imageParameters) {
var imageParams = mapImageLayer.createExportImageParameters(imageParameters.bbox, imageParameters.width, imageParameters.height);
imageParams.format = imageParameters.format;
var url = mapImageLayer.url + "/export?f=json";
Object.keys(imageParams).forEach(function(key) {
url += "&" + key + "=" + imageParams[key];
});
fetch(url).then(function(response) {
response.json().then(function(json) {
console.info(json.href);
});
});
}
require(["esri/Map", "esri/views/SceneView", "esri/layers/MapImageLayer"], (
Map,
SceneView,
MapImageLayer
) => {
/*****************************************************************
* Create a MapImageLayer instance pointing to a Map Service
* containing data about pool permits in Southern California
*****************************************************************/
const permitsLayer = new MapImageLayer({
portalItem: {
// autocasts as new PortalItem()
id: "d7892b3c13b44391992ecd42bfa92d01"
}
});
/*****************************************************************
* Add the layer to a map
*****************************************************************/
const map = new Map({
basemap: "dark-gray-vector",
layers: [permitsLayer]
});
const view = new SceneView({
container: "viewDiv",
map: map
});
/*****************************************************************
* Animate to the layer's full extent when the view loads
*****************************************************************/
view.when(() => {
permitsLayer.when(function() {
getImageHref(permitsLayer, {
bbox: permitsLayer.fullExtent,
format: "png",
height: 600,
width: 800
});
});
/*
view.goTo(permitsLayer.fullExtent)
.catch((error) => {
if (error.name != "AbortError"){
console.error(error);
}
});
*/
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
10-10-2024
10:34 AM
|
1
|
1
|
1626
|
|
POST
|
Unfortunately, there is not. As seen in the "Known Limitations" section near the top of the LabelClass documentation, "Polygon geometries only support always-horizontal labelPlacement." Further below, the documentation for the labelPlacement property only gives the single option for polygons as well.
... View more
10-09-2024
03:38 PM
|
0
|
0
|
569
|
|
POST
|
This is because in both cases, the editor is setting these options up based upon FeatureTemplate information defined within the service. Here you can see the information from your service: https://services.arcgis.com/HRPe58bUyBqyyiCt/arcgis/rest/services/Cryptids2/FeatureServer/0?f=pjson If you search for (Ctrl-F) "templates", you'll see the information that corresponds with the "New Feature" option for your layer. Here's the service information for the hazards layer: https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Hazards_Uptown_Charlotte/FeatureServer/0?f=pjson In this case, if you search for "types" you'll find the information that drives what's found in the Editor widget. Therefore, if you setup the templates in your map before publishing, you should get the expected results. If you're using ArcGIS Pro, this page might be a good place to start.
... View more
10-08-2024
10:05 AM
|
1
|
0
|
1109
|
|
POST
|
There isn't any out-of-the-box functionality I know of, but adding it in wouldn't be terribly difficult. The process would look something like this: 1) Get a reference to the feature you want to flash. 2) Create a new Graphic object with the same geometry as the object in step 1. 3) Assign the new graphic a custom symbol depending on geometry type. 4) Add it to the view's graphics collection. 5) After a second or so of a delay, it can then be removed from the view's graphics collection.
... View more
10-04-2024
10:34 AM
|
1
|
1
|
899
|
|
POST
|
Have you looked into the takeScreenshot method of the MapView module? Perhaps that's the missing piece you're looking for.
... View more
09-30-2024
10:19 AM
|
0
|
0
|
1781
|
|
POST
|
I haven't yet transitioned to ESM modules, so don't have an answer for you. However, you might check out this post, which discusses updating Popup style via JavaScript.
... View more
09-26-2024
10:25 AM
|
0
|
1
|
1447
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-09-2025 09:35 AM | |
| 2 | 12-09-2025 09:06 AM | |
| 1 | 11-26-2025 12:29 PM | |
| 3 | 11-26-2025 09:11 AM | |
| 1 | 10-02-2025 01:14 PM |