|
POST
|
To reiterate a response from nearly two years ago, this issue can be vetted and resolved more quickly when reported through Esri's technical support group. If not reported there it may never be looked at in a timely manner. Call support and provide details regarding the problem with your apps, and they will take more time than the JS team can allot to reproduce the issue and log it as a bug.
... View more
05-04-2018
12:07 PM
|
1
|
0
|
1200
|
|
POST
|
It looks like listMode isn't part of the MapImageLayer sublayer API: Sublayer | API Reference | ArcGIS API for JavaScript 4.7 I'll see what we can do to add support for this?
... View more
04-25-2018
02:08 PM
|
0
|
1
|
3609
|
|
POST
|
It sounds like you need to hide the specific sublayer. In that case, you need to get the sublayer instance and set its listMode to hide. Here's a sample app that does this. If you comment out the following code, you will see the sublayer appear in the LayerList. Leave it, and it is removed, but remains in the map. LayerList widget - 4.7 var walkCurrentLayer = view.map.layers.flatten(function(item){
return item.layers || item.sublayers;
}).find(function(layer){
return layer.title === "walkability current";
});
walkCurrentLayer.listMode = "hide";
... View more
04-25-2018
08:46 AM
|
2
|
3
|
3609
|
|
POST
|
If one of these expressions is working, you should consider adding it as a template to the arcade-expressions repo so others can benefit from it: GitHub - Esri/arcade-expressions: ArcGIS Arcade expression templates for all supported profiles in the ArcGIS platform. Here's a blog post describing the repo: Share your Arcade expressions as templates | ArcGIS Blog
... View more
03-20-2018
11:03 AM
|
1
|
1
|
2140
|
|
POST
|
The Sketch view model was introduced at 4.5: Sketch temporary geometries | ArcGIS API for JavaScript 4.6
... View more
01-10-2018
10:30 AM
|
0
|
0
|
3302
|
|
POST
|
That's good feedback. I'll make a request for that.
... View more
01-03-2018
01:11 PM
|
1
|
0
|
2592
|
|
POST
|
Hi Phil, When using Buffer, a popup will not display a value in a Web AppBuilder App. However, it is shown in an AGOL map. Centroid(), which was released with Arcade 1.3, works properly. Versions: WAB Developer Edition 2.6 (JSAPI 3.22) Arcade: 1.3 (JSAPI ??) Arcade 1.3 is only integrated in JS API version 3.23. So if WAB Dev edition 2.6 uses JS API 3.22, there will be no official support for the functions new in Arcade 1.3. To clarify, this doesn't mean that all new functions released in 1.3 weren't present in the Arcade codebase in prior versions. Some were, but weren't documented or officially "released". For example, Centroid was likely included in the Arcade codebase prior to Arcade 1.3, but we hadn't documented it because it wasn't thoroughly tested. Other reasons may include wanting to release all geometry functions in the same release. In fact, there are some other geometry functions technically present in version 1.3 that we didn't "release" or document because we don't have valid use cases for them yet. They will likely come later as we expand Arcade's ability to access other features within the context of a single feature. I hope this explanation helps.
... View more
01-03-2018
12:29 PM
|
1
|
2
|
2592
|
|
POST
|
> I should note, I'm not sure if a sublayer in a MapImageLayer can be a FeatureLayer. You can use any feature service or map service endpoint as a data source for feature layer.
... View more
12-12-2017
11:36 AM
|
1
|
0
|
4724
|
|
POST
|
I took the liberty of renaming variables in my snippet. Maybe that's the issue? You're setting labelingInfo on RoadBlack1, but the renderer on RoadBlack. RoadBlack.setRenderer(RoadRenderer);
// should be
RoadBlack1.setRenderer(RoadRenderer);
... View more
12-07-2017
12:16 PM
|
0
|
0
|
2773
|
|
POST
|
I just updated the snippet to reflect the issue Robert pointed out.
... View more
12-07-2017
11:51 AM
|
2
|
0
|
2773
|
|
POST
|
Good catch, Robert. Yes, the SimpleFillSymbol won't work for a sizeInfo visual variable. Jay, Scrap that symbol and stick to a line and you should be good to go with the snippet I added below.
... View more
12-07-2017
11:50 AM
|
2
|
1
|
2773
|
|
POST
|
Layers can only have one renderer at a time. What you're attempting to do is possible, you're just confusing the visual variable object with the renderer. visualVariables is a property of the renderer. Just reorganize your code a bit and it should work. Here's what you need to do: var RoadColor = new Color("#eae5e5");
var RoadSymbol = new SimpleLineSymbol("solid", RoadColor, 1.5);
var RoadRenderer = new SimpleRenderer(RoadSymbol);
//Assign parameters for road width by SPEED
var sizeInfo = {
type: "sizeInfo", // type must be specified otherwise the renderer
//doesn't know which visual variable type it is
field:"SPEED",
minSize: 0.2,
maxSize: 10,
minDataValue: 0,
maxDataValue: 70
};
RoadRenderer .setVisualVariables([sizeInfo]);
RoadBlack.setRenderer(RoadRenderer);
... View more
12-07-2017
11:48 AM
|
2
|
5
|
2773
|
|
POST
|
SceneView supports rotation if a symbol contains an ObjectSymbol3DLayer is used, so PictureMarkerSymbols aren't supported. The documentation states the following limitations: In a SceneView rotation visual variables are not supported with marker symbols, text symbols, 3D icon symbol layers and 3D text symbol layers. Renderer | API Reference | ArcGIS API for JavaScript 4.5
... View more
11-28-2017
12:38 PM
|
1
|
0
|
2601
|
|
POST
|
I think it's an issue with the playground. It should throw an error in that situation, but doesn't. Several others have run into the same issue with IIF().
... View more
11-07-2017
12:06 PM
|
0
|
0
|
1656
|
|
POST
|
A couple of things: First, IIF() is used incorrectly in your expression. The second and third parameters should be values, not statements. The correct syntax would be the following: var label = '';
label += IIF($feature.OPZ == 'Yes', ' OPZ ', ' 1');
label += IIF($feature.Zoning == 'Yes', ' Z', ' 2');
label += IIF($feature.PlanSubCondo == 'Yes', ' PSD/C', ' 3');
label += IIF($feature.PLC == 'Yes', ' PLC', ' 4');
label += IIF($feature.ResDemo == 'Yes', ' RD', ' 5');
label += IIF($feature.SitePlan == 'Yes', ' SP', ' 6');
return label Here's the documentation: Logical Functions | ArcGIS for Developers Second, the labels not appearing is heard to diagnose without a link to a webmap or a simple JS application. Could you provide one?
... View more
11-02-2017
08:44 AM
|
2
|
2
|
1656
|
| 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 |