|
POST
|
This can actually be simplified even further: var s = "Section_21_7_a_21";
Left(s, Count(s)-3); The doc doesn't indicate that Count() takes a string input though, so we'll need to update that.
... View more
10-17-2017
11:41 AM
|
1
|
0
|
3447
|
|
POST
|
First of all, the IIF() function is used improperly. You shouldn't be assigning variable values in the second param. IIF() returns a value based on a conditional expression. I think this is what you would want: typeArray[i] = IIf(i < Count(splitArray) - 1, splitArray[i], null); > do you know if there is a straightforward way to remove the last 2 characters from a string with Arcade? This is the simplest way I could think of to improve the above expression: var s = "Section_21_7_a_21";
var stringLength = Count(Split(s, ""));
Left(s, stringLength-2); But this returns "Section_21_7_a_". Do you actually want the final underscore removed? In that case, you could modify it to: var s = "Section_21_7_a_21";
var stringLength = Count(Split(s, ""));
Left(s, stringLength-3); Is that what you're looking for? I tested this in the playground and it seems to work.
... View more
10-17-2017
08:53 AM
|
1
|
1
|
3447
|
|
POST
|
I took this screenshot from the link you provided. I think the steps are straightforward after clicking the button circled below. If it's still confusing, then call the number next to the button and the support analyst will be able to help you. I don't work in support, so I don't know all of the required steps, but others on this forum have and may be of more help in this process.
... View more
10-06-2017
08:30 AM
|
1
|
4
|
3516
|
|
POST
|
This is in the queue for 4.6. FYI, it's generally better to report bugs like this via support. That way it gets into our system faster and you can track it with a bug ID. Since this wasn't reported through support, I created the issue and therefore you won't be able to view progress on the issue through support's issue management system.
... View more
10-05-2017
09:00 AM
|
1
|
0
|
1561
|
|
POST
|
Paul, Try setting the `snapToZoom` property in MapView.constraints to false: MapView | API Reference | ArcGIS API for JavaScript 4.5 var view = new MapView({
container: "mapDiv",
map: map,
zoom: 5, // this can be a decimal number
center: [ -122.3321, 47.6062 ],
constraints: {
snapToZoom: false
}
}); Let me know if this resolves your issue.
... View more
10-02-2017
10:16 AM
|
1
|
0
|
2654
|
|
POST
|
You can also use the mapPoint instance directly returned from the click event: var buffer = geometryEngine.geodesicBuffer(evt.mapPoint, 1000, "meters");
... View more
10-02-2017
10:11 AM
|
1
|
0
|
1023
|
|
POST
|
> Not nearly as important to me, but I thought I'd also report that this widget does not work with the vector basemaps. When you choose any of them in this example, the application seems to do nothing because it is throwing an error. I thought that the vector basemaps were now supported with all of the widgets? Wouldn't it be better to have the widgets fall back to return the scheme for the "streets" basemap along with a warning, rather than just throwing an error and returning nothing? This is an issue we're aware of. Vector tile basemaps are supported in the 4.x slider widgets, but updating the 3.x sliders seemed to slip between the cracks. So the 3.x smart mapping module will be updated to support all vector tile basemaps in our fall release.
... View more
08-11-2017
08:50 AM
|
1
|
0
|
1578
|
|
POST
|
You can now achieve this as of 4.3 - SceneLayer | API Reference | ArcGIS API for JavaScript 4.4 And also see this sample: SceneLayer filter and query | ArcGIS API for JavaScript 4.4
... View more
07-28-2017
09:33 AM
|
1
|
0
|
876
|
|
POST
|
You would need to watch the visible property of the ListItem, then grab the ID of the sublayer when the value is true: if (item.layer.declaredClass === "esri.layers.support.Sublayer") {
watchUtils.whenTrue(item, "visible", function(newVal) {
console.log("sub layer id of visible layer: ", item.layer.id);
});
} Here's a live app based on the SDK sample: https://codepen.io/kekenes/pen/zdxJpX?editors=1001
... View more
07-25-2017
04:50 PM
|
2
|
0
|
1614
|
|
POST
|
Hi Isaac, I think I know what you're looking for, but it takes a little extra work than what I described above. In the workflow of my previous comment, I was referring to getting the layer ID when an action is invoked. When toggling layer visibility, the trigger-action event doesn't fire since actions aren't being used. Instead, you'll have to set up a watcher on each list item to watch for the visibility of the item in the layerlist. You can then grab the layerID within the callback of the watcher. I'll take a look at this some more and see if I can post more details on the other thread you mentioned. Hope that helps.
... View more
07-24-2017
10:34 AM
|
0
|
1
|
3120
|
|
POST
|
Yes this is possible. The tiff must be saved within a dynamic workspace of a map service. Here's the 3.x documentation: RasterDataSource | API Reference | ArcGIS API for JavaScript 3.20
... View more
05-30-2017
04:17 PM
|
1
|
0
|
1265
|
|
POST
|
I should have clarified. I didn't require esri/Graphic. I passed graphics from the main thread to the worker and was able to keep everything, do some proximity analysis with geometryEngine, add/modify attributes, and send them back.
... View more
05-18-2017
10:28 AM
|
0
|
2
|
3006
|
|
POST
|
You may also find the new Dev Labs helpful: Get Started with ArcGIS DevLabs | ArcGIS for Developers
... View more
05-17-2017
11:28 AM
|
0
|
0
|
1910
|
|
POST
|
It also looks like you're calling `new Renderer()` when it should be `new UniqueValueRenderer()`
... View more
05-16-2017
09:52 AM
|
0
|
0
|
1016
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-06-2025 03:09 PM | |
| 1 | 04-29-2025 08:36 AM | |
| 1 | 08-20-2024 08:06 AM | |
| 1 | 08-13-2024 11:53 AM | |
| 1 | 07-22-2024 11:04 AM |