|
POST
|
I'm not able to independently verify this in a simple test app. I would need to see a sample with more of your code in context. Are you able to share this in jsbin or some other way?
... View more
01-12-2017
11:39 AM
|
0
|
0
|
2867
|
|
POST
|
Follow the steps listed here to create hosted scene layers Publish hosted scene layers—ArcGIS Online Help | ArcGIS Then you can add them directly to a new scene in ArcGIS Online and save the web scene there to load into your app. russell_roberts-esristaff Can you comment if anything else needs to be done?
... View more
01-11-2017
04:54 PM
|
1
|
1
|
2687
|
|
POST
|
This is a bug that will be fixed in 4.3. In the meantime you can use the patch in your 4.2 apps referenced here: https://community.esri.com/thread/188434-definitionexpression-with-mapimagelayer-sublayer#comment-658350 That should help temporarily fix the issue. The patch code will need to be removed once the app is upgraded o 4.3.
... View more
01-11-2017
12:03 PM
|
0
|
1
|
1372
|
|
POST
|
Correct. Web scenes created with CityEngine are not supported. ArcGIS Pro provides the simplest workflow for this. If you are using CityEngine, however, what you can do is to republish the scene as a .slpk from CityEngine, and extract it to a scene layer on portal/AGO.
... View more
01-11-2017
10:12 AM
|
1
|
3
|
2687
|
|
POST
|
Hi Randy, This is a bug we weren't aware of. So thanks for asking about it. This is actually already fixed for our next release. In the meantime you can use the following code to patch your app. // TODO remove when upgrading to 4.3
function patchMapImageLayer(layer) {
var original = layer.createExportImageParameters;
layer.createExportImageParameters = function(options) {
var params = original.call(layer, options);
var layerDefs = params.layerDefs.split(";").reduce(function(result, layerDef) {
var firstColon = layerDef.indexOf(":");
var layerId = parseInt(layerDef.slice(0, firstColon));
result[layerId] = layerDef.slice(firstColon + 1);
return result
}, {});
params.layerDefs = JSON.stringify(layerDefs);
return params;
};
}
patchMapImageLayer(layer); Here's a small sample app using your layer, which shows it working as expected: JS Bin - Collaborative JavaScript Debugging Be sure to remove this code once you upgrade to 4.3 since this will break the app. Hopefully that helps!
... View more
01-10-2017
02:43 PM
|
1
|
1
|
1955
|
|
POST
|
One thing you can do is publish it as a tile layer on ArcGIS Online. This will improve the performance and give you all the same FeatureLayer capabilities. On a side note, why is it required to display all points without any form of aggregation?
... View more
01-04-2017
05:26 PM
|
1
|
1
|
4029
|
|
POST
|
Thanks! There were some significant changes to MapView under the hood in 4.2 that may have impacted performance here. We'll work on performance improvements for 4.3, which is planned for release in March.
... View more
01-04-2017
12:27 PM
|
2
|
2
|
2037
|
|
POST
|
Hi Alan, We'll take a look at this issue. Can you provide some more information like which browser and version are you using, your machine specs, etc? > Get clarity if mapView is going away under jsapi 4 and expect it to become more diminished. MapView won't be going away or diminished. It is a critical component of our 2D API. > How long can I keep using 4.1 in production? You can use 4.1 in production for as long as you like. Each version is typically supported for 4 years after the release date - Esri Support 4.0 Thanks for bringing this up!
... View more
01-04-2017
09:41 AM
|
1
|
4
|
2037
|
|
POST
|
Hi Paul, This sounds similar to what this app (Greater Seattle Demographics) does. The main difference is that you can configure styles with this app after selecting a field to work with. I wrote an accompanying blog post describing how the app was written Using Smart Mapping in custom web apps | ArcGIS Blog. If the symbology and classifications are predefined, then you would just need to reference the renderer objects that store those predefined values and set them on the layer with each selection change. Hope that helps!
... View more
10-11-2016
02:42 PM
|
1
|
0
|
4080
|
|
POST
|
Tyler Waring Robert is correct. ClassBreaksDefinition is used for generating renderers with the GenerateRendererTask. Since you're looking at a manual classification, you don't need to generate them at all. Instead you manually add them directly to the ClassBreaksRenderer. There's no need to use ClassBreaksDefinition in this case. When you do need to generate a renderer with another classification method, I would actually recommend using the smartMapping.createClassedColorRenderer() (or sizeRenderer()) methods instead of the GenerateRendererTask. It's pretty straightforward and accomplishes the same task with fewer modules (again, no need for ClassBreaksDefinition in this scenario either). esri/renderers/smartMapping | API Reference | ArcGIS API for JavaScript 3.18 I hope that helps!
... View more
09-29-2016
04:39 PM
|
2
|
0
|
1381
|
|
POST
|
If this still doesn't work, could you post a link to a sample app reproducing the issue?
... View more
08-22-2016
12:02 PM
|
0
|
0
|
501
|
|
POST
|
The sample thejus kambi provided the link to demonstrates how to do this. In a nutshell, you are passing a function with the following signature into the "field" parameter of the renderer: // The function must have a graphic param to access field values
// this is just an example for demo purposes.
function weightedRenderer (graphic) {
var field1Val = graphic.attributes.field1;
var field2Val = graphic.attributes.field2;
var userInput1 = document.getElementById("foo").value;
return (field1Val / field2Val) * userInput1;
} var renderer = new ClassBreaksRenderer(null, weightedRenderer);
layer.setRenderer(renderer); You would also need to set breaks on your ClassBreaksRenderer, but that is independent of the function. This should be enough to get you started.
... View more
08-22-2016
11:44 AM
|
0
|
0
|
1817
|
|
POST
|
Michael Stranovsky David Coley We'll look into this. Can one of you submit a bug report or enhancement request to Esri support so we can log this issue into our system and so you can also track its progress?
... View more
07-25-2016
11:07 AM
|
1
|
3
|
1871
|
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|