|
POST
|
I'm not sure. I've only played around with this in 4.x.
... View more
05-16-2017
09:51 AM
|
0
|
0
|
3978
|
|
POST
|
I suggest trying the SmartMapping API to achieve this. Here's a sample showing how to generate class breaks: Smart Mapping - Render class breaks with color | ArcGIS API for JavaScript 3.20 Since it looks like you're using dynamic layers, you can construct a FeatureLayer from one of the sublayers to generate the renderer and apply it to the drawingInfo of the layer. That is the pattern used in this blog: Smart Mapping with dynamic workspaces | ArcGIS Blog On a side note, the 4.x API will eventually remove the need for creating a FeatureLayer and allow you to directly reference the sublayer, making this process a lot simpler. Hope that helps!
... View more
05-16-2017
09:49 AM
|
0
|
0
|
1114
|
|
POST
|
Here are my responses to these three questions: 1. Yes you can reference API modules in the worker. I have definitely used geometryEngine, jsonUtils, and promiseUtils in a worker loaded from the JSAPI. But I would use define() instead of require(). 2. I don't know. cc\ odoe ubatsukh-esristaff 3. Yes. I serialized Graphics in a worker (including the geometries) and got everything back.
... View more
05-16-2017
09:42 AM
|
0
|
7
|
3978
|
|
POST
|
The load event never actually existed on the Search widget. This was a documentation error that will be removed at 4.4.
... View more
05-11-2017
10:14 AM
|
2
|
0
|
1101
|
|
POST
|
The roadmap is never set in stone as requirements or any number of issues can arise, postponing the planned release of a feature. But the plan is to have this in by the end of the year. Again, it's not set in stone, just a projection. It's an issue that's definitely been on our radar for a while and we've finally made plans to include it.
... View more
05-09-2017
01:45 PM
|
0
|
0
|
3239
|
|
POST
|
This response is also assuming that you're working with point geometries. If you're referring to extruding polygons based on real world height, this is doable. See this sample: Extrude building footprints based on real world heights | ArcGIS API for JavaScript 4.3
... View more
05-09-2017
10:29 AM
|
0
|
0
|
3239
|
|
POST
|
This option still isn't supported. You could write a function that uses the FeatureLayer.applyEdits() method to add Z values to the geometry object based on the attribute field value.
... View more
05-09-2017
10:26 AM
|
0
|
9
|
3239
|
|
POST
|
I'm having a little trouble picturing what you're trying to accomplish. can you post a screenshot or gif to demonstrate the expected behavior and what you're seeing?
... View more
05-08-2017
09:30 AM
|
0
|
0
|
1243
|
|
POST
|
You are correct. The docs need updating. We'll take care of that for our next release. Thanks for pointing this out. As far as supporting this functionality for client-side FL, we have it on our radar and plan on adding support for it. No timetable yet though.
... View more
05-08-2017
09:26 AM
|
2
|
2
|
2191
|
|
POST
|
After setting the map extent call: map.setZoom(10);
... View more
05-03-2017
03:24 PM
|
1
|
1
|
2578
|
|
POST
|
Since layer.fullExtent isn't totally reliable, I suggest doing the following: featureLayer.on("load", function(){
var query = new Query();
query.where = "1=1";
query.outSpatialReference = new SpatialReference(3857);
featureLayer.queryExtent(query, zoomToExtent);
});
function zoomToExtent(response){
var extent = response.extent;
map.setExtent(extent, true);
} That way you don't have to bring in GeometryService and reproject geometries. Set the outSpatialReference to match the map and the resulting extent should be good. Here's a live demo of this as well: JS Bin - Collaborative JavaScript Debugging
... View more
05-03-2017
10:01 AM
|
1
|
5
|
8717
|
|
POST
|
The fullExtent of the layer is determined by the service. So someone can publish a layer containing a fullExtent or one without one. If you want to ensure you are zooming to the fullExtent of your data, you can get this on the client by doing the following: layer.queryExtent()
.then(function(response){
view.goTo(response.extent);
}); That will ensure your view zooms to the extent of all features in the layer whether or not a fullExtent is present on the service.
... View more
03-31-2017
03:00 PM
|
1
|
0
|
2123
|
|
POST
|
I don't believe you can configure label placement using Arcade syntax (yet). I just use label classes to handle placement as this sample demonstrates: Label features using Arcade expressions | ArcGIS API for JavaScript 3.20 Note that ArcGIS Online only supports adding one label class per layer. I'm not sure if support for adding more will be added in the future, but in the mean time I would configure this in the custom app or template. Otherwise you can also use the approach you described. Hope that helps!
... View more
03-16-2017
04:29 PM
|
1
|
1
|
2670
|
|
POST
|
Which version of the JS API are you using, 4.x or 3.x? Labeling isn't supported in 4.x yet. I was able to verify this in a 4.x app, but noticed the expected behavior in 3.x... 4.x test case: JS Bin - Collaborative JavaScript Debugging 3.x test case: JS Bin - Collaborative JavaScript Debugging
... View more
03-15-2017
03:23 PM
|
0
|
0
|
1688
|
| 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 |