|
POST
|
Good Day I have a field visible in the editor to change how a featured is rendered, but the field itself is a string value. Is it possible / how do It pass, codedValues in the editor config, so the input is a drop down? if (event.added.length > 0) {
this._editWidgetConfiguration = [];
this._view.map.layers.forEach((layer) => {
this._editWidgetConfiguration.push({
layer: layer,
formTemplate: {
elements: [{
type: "field",
fieldName: "layer",
label: "blah",
codedValues: [
{name: "1", code: "1"},
{name: "2", code: "2"},
]
}]
}
})
});
console.log('Edit Widget Configuration');
console.log(_.cloneDeep(this._editWidgetConfiguration));
this.editorWidget.layerInfos = this._editWidgetConfiguration;
} That code is ran when layers are added to the map. I have the list of available settings available at this point, because I've built the unqiue render settings, so how do I pass the coded values to the editor? The field is defined as: {
name: 'layer',
alias: 'layer',
type: 'string'
}, Thanks
... View more
10-07-2022
07:49 AM
|
0
|
1
|
1196
|
|
POST
|
I apologize if this is in the wrong area. Is it possible to create a Hosted Feature Layer / Feature Layer in C# and publish to ArcGIS Online? We have a case where users can upload GIS data into our system, and we want to see if we can turn that data into a Hosted Feature Layer / Feature Layer programmatically, without having to go through the manual steps to do so, is this possible? Our backend is in C# / Entity, our frontend is in Angular. Thanks
... View more
10-04-2022
09:47 AM
|
0
|
3
|
1039
|
|
POST
|
That accomplished exactly what I'm looking for 🙂 - Thanks!
... View more
12-01-2021
11:26 AM
|
0
|
0
|
1488
|
|
POST
|
Good Day Is there an event that will trigger once my updated / added features are visible on the map and ready for interaction? Once the promise resolves ex: layer.applyEdits({
updateFeatures: data
}).then(() => {
this.layerLoadedEvent.emit(true);
r(null);
}) I'm still waiting for the features to be visible on the map, is there any event to let me know when everything is ready? Thanks
... View more
12-01-2021
10:11 AM
|
0
|
2
|
1553
|
|
POST
|
If you give me a few days I'll adapt my test repo to replicate the issue. We're using Angular 12, and the test repo is also using Angular 12. Every class break has a label uniqueValueInfo.push({
value: renderKey,
label: renderKey,
symbol: {
type: renderType,
color: mapData.attributes.colour,
size: 12,
width: 3,
outline: {
width: 4,
color: mapData.attributes.colour,
}
}
}) Render Key can never be null. I'll see what I can get you mid next week. Thanks for your help 🙂
... View more
11-19-2021
02:12 PM
|
1
|
0
|
2175
|
|
POST
|
Good Day I ran the test again, this time setting arcgis/core to 'next' instead of 4.21.2 in package.json, I still have the same problem: 4.21.2 Next: I also confirmed that the title on each Feature Layer is set to ''. Cheers
... View more
11-19-2021
12:04 PM
|
0
|
2
|
2177
|
|
POST
|
Good Day @Noah-Sager - Thanks for the reply, the PictureMarker is resolved! The second issue is that Roads is showing up without a line in front of it. The screen cap has Roads, and then under that (green line) Roads, which is correctly. I don't know why 'Roads' with no green line shows up. I'm assuming that's due to a title being generated for the Feature Layer, because if I generate multiple Feature Layers I can cause the same behaviour, for the Points or Polygon Layer. In the above example I have title: '' in the FeatureLayer code, which I thought should set the title to nothing. Hopefully that makes sense. Cheers
... View more
11-19-2021
07:43 AM
|
0
|
5
|
2181
|
|
POST
|
Good Day I switched from using a simple render to a unique render, but now when I print the map using the PrintTask, it's now showing the picture markers the same as before. This view from the PrintTask: Should look something like: My render setting is: field: "layer"
type: "unique-value"
uniqueValueInfos: [
{
label: "Market 1"
symbol: {
height: "20px"
type: "picture-marker"
url: "blah.png"
width: "20px"
}
value: "someValue1"
},
{...},
{...}
] Did I do something wrong setting up the render? I also noticed that if I try to map multiple things a label shows up that appears random, without a legend marker: Would this be the Feature Layer title, or where else would that come from / can I turn it off? I set the title to an empty string, but it's not disabling it: return {
fields: this._fields,
source: data,
outFields: ['*'],
objectIdField: 'ObjectID',
geometryType: geometryType,
spatialReference: {
wkid: 4326
},
title: ''
}; If anyone knows about either issue, do you know how to fix it? Thanks in advance 🙂
... View more
11-18-2021
02:20 PM
|
0
|
7
|
2238
|
|
POST
|
After changing the timeout to 0, I'm no longer getting the cancelled request, but I'm getting lots of 500 / 504 errors. The 200 at the top had a 500 response inside it: I ran the same test several more times, and was able to get a response, and the only different I can see is that the successful one took 1.9 minutes, and all the failures took 1.0 minutes or 2.0+ minutes. This is the capture of the other responses, the top 200 was actually successful, the second was had a 500 response code it: Thanks
... View more
10-27-2021
08:04 AM
|
0
|
0
|
1523
|
|
POST
|
Good Day I'm trying to print a large view of ~4600 segment, after pressing the print button, which executes the following function: printMap() { try { const printTask = new PrintTask(); printTask.url = 'https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task'; const template = new PrintTemplate({ format: 'jpg', layout: 'a4-landscape', }); const params = new PrintParameters({ view: this._view, template: template }); this.printProgress = true; printTask.execute(params).then((result) => { this.printProgress = false; window.open(result.url); }, (err) => { this.printProgress = false; this.alert.errorDialog('Print Error', 'Please try again or contact support!'); }); } catch (error) { console.log(error); } } I get 'cancelled' in the network tab of the Dev Console: I'm assuming this is a timeout issue, due to the amount of data being sent, is there a way to add a timeout override to the execute call? Is there an upper limit to the amount of data you can push from a client side ArcGIS JS Map to the Print Service? Thanks
... View more
10-27-2021
07:17 AM
|
0
|
4
|
1534
|
|
POST
|
I know this an old post, but I got it! 1. Look at https://github.com/epaitz/jsapi-angular-ngrx-ds2021 2. I took that code and made: https://github.com/docmur/angular-core-esri (Look at master-a12) 3. When you allocate a map, store it's "settings" in a Store (map, view, feature layers, etc…) 4. When you recall the map, don't allocate a new feature layer, just remove and add the features to the existing layer(s) if you need to change the layer or features. 5. That code is using a single map and view, then changing the features in the layer, but the same idea works for multiple maps. 6. Don't try and destroy the map or view, or feature layer, you won't reclaim memory doing that. For some reason the featureLayer.destroy(), and map.removeAll() / map.layers.removeAll(), won't free the memory being held by the feature layer, which is why it continues to climb. I've already rolled this code into our production application, and it works wonderfully! We allocate 2 maps in total, and then just hold them in the Store, being recalled when we need them, then I use the feature layer to apply edits to do the main work. The multiple map variation has been able to run for 20+ hours with no issue and using ~35MB of memory from the Dev Console. This is the solution you're probably looking for 🙂 Cheers
... View more
10-22-2021
12:59 PM
|
1
|
1
|
3302
|
|
POST
|
Thanks for the suggestion, I actually solved it by using .filter instead of .effect featureLayerView.filter = new FeatureFilter({ where: featureQuery }) If anyone else runs into this problem, trying using a Feature Filter instead...
... View more
10-06-2021
10:56 AM
|
1
|
0
|
1421
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-25-2025 07:33 AM | |
| 1 | 03-18-2025 11:15 AM | |
| 1 | 10-07-2022 08:14 AM | |
| 1 | 08-25-2023 10:47 AM | |
| 1 | 02-23-2023 08:22 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2025
07:12 AM
|