|
POST
|
I ran the code on /next and it looks like the problem is "solved", I'm seeing a lot of errors but nothing is doing an inf loop:
... View more
09-23-2020
12:29 PM
|
0
|
8
|
3573
|
|
POST
|
Yes: It seems to have something to do with stacking the data. I've disabled the indexDB functionality so we have to load from a HTTP endpoint but I can still run into it.
... View more
09-23-2020
12:16 PM
|
0
|
0
|
3573
|
|
POST
|
We've seen this problem across Firefox / Chromium browsers and on Windows / Linux. I'm currently on Ubuntu 20.04 Brave.
... View more
09-23-2020
11:48 AM
|
0
|
11
|
3573
|
|
POST
|
Okay, I'll send the HAR file and I'll test on /next to see if I can cause the same problem. In the case I run into the error it's just from loading the Feature Layer, I'll see one of the port closed errors and then run into this: [esri.views.layers.2d.features.support.AttributeStore] e {name: "mapview-attribute-store", message: "Encountered an error during client initialization", details: e} details: e details: undefined dojoType: "cancel" message: "Abort job: worker closing" name: "AbortError" message: "Encountered an error during client initialization" name: "mapview-attribute-store" Which happens to then cause and info loop, which requires me to jump away from the map quickly, to prevent a total lock up.
... View more
09-23-2020
11:46 AM
|
0
|
0
|
3573
|
|
POST
|
Yes, that's very likely for our use case, as we store the data in the the browser and fetch it from IndexDB when we need it. Is there a way I can listen for the connect to be ready / set before I go to create the feature layer?
... View more
09-23-2020
10:16 AM
|
0
|
1
|
3149
|
|
POST
|
How can I upload a file or is there any email I can send the HAR file to?
... View more
09-23-2020
10:14 AM
|
0
|
14
|
3573
|
|
POST
|
I'm going to try getting a HAR capture, if I do I'll attach it.
... View more
09-23-2020
10:05 AM
|
0
|
0
|
3573
|
|
POST
|
Good Day This issue disappeared for months but now it's popping up, but I can't seem to figure out any pattern. Would it be possible to edit the error message to show what's happening to help debugging, or catch the error in dojo-lite and discard it? I haven't been able to make a source repo that demonstrates the problem. Thanks
... View more
09-23-2020
09:59 AM
|
0
|
3
|
3149
|
|
POST
|
Okay, I have a potential workaround on my end but it's less then ideal. If there's no simple / non-hackish ways to pull this off then I see about editing my code. Thanks!
... View more
09-17-2020
03:29 PM
|
1
|
0
|
1287
|
|
POST
|
Good Day Is there a way to build in a custom legend with the Print Task output? Assuming I have the following output Can I have only one set of data per geometry shown in the legend, without restructuring how our data is broken down by feature layer? Ideally I'd want to change the legend based on the condition at the time the printMap function is executed. My Print Code: printMap() {
const printTask = this.PrintTask({
url: 'https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task'
});
const template = new this.PrintTemplate({
format: 'jpg',
layout: 'a4-landscape',
layoutOptions: {
titleText: '',
authorText: 'Infrasol'
}
});
const params = new this.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;
console.log('ESRI Print Task Error: ', err);
});
} Thanks
... View more
09-15-2020
12:37 PM
|
0
|
2
|
1334
|
|
POST
|
Good Day Thanks for the suggestions, that was the problem! When I changed it to simple-line the problem went away. I removed the style: null, it wasn't relevant for our actual code base and the same problem persisted on 4.16. Thanks for your help.
... View more
09-12-2020
09:50 AM
|
1
|
1
|
3683
|
|
POST
|
GitHub - docmur/esri-printtask-issue If you run that project and press the print button you'll get:
... View more
08-27-2020
08:28 AM
|
0
|
0
|
3683
|
|
POST
|
Thanks for the reply: API Version: 4.14 Example Print Task: Example using the Print Widget Example using the screenshot (Works but doesn't have the template) I generate the polyline geoJSON with this: if (coordinateText) {
const _temp = WKT.parse(coordinateText);
if (_temp) {
let geometry;
switch (_temp.type) {
case 'LineString':
geometry = {
type: 'polyline',
paths: 'coordinates' in _temp ? _temp.coordinates : null,
}
break;
case 'Polygon':
geometry = {
type: 'polygon',
rings: 'coordinates' in _temp ? _temp.coordinates : null,
}
break;
default:
break;
}
return {
geometry: _.cloneDeep(geometry),
attributes: {
ObjectID: randomObjectID,
colour: _.cloneDeep(entry.colour),
}
};
}
} Then I build the Feature Layers with: buildFeatureSettings(geometryType, data, colour) {
return {
source: data,
renderer: this.buildRenderSettings(data, colour, geometryType.toString().includes('point')),
fields: this._fields,
objectIdField: 'ObjectID',
geometryType: geometryType,
spatialReference: {
wkid: 4326
},
title: 'Random Title'
};
}
buildRenderSettings(data, colour: string, marker = false) {
return {
type: 'simple',
symbol: {
style: marker ? 'circle' : null,
type: marker ? 'simple-marker' : 'simple-fill',
size: marker ? 12 : 30,
color: _.cloneDeep(colour),
outline: {
width: 4,
color: _.cloneDeep(colour),
}
},
}
} Thanks for you assistance, I can try throwing together a code sample a bit later. Thanks
... View more
08-26-2020
03:03 PM
|
0
|
2
|
3683
|
|
POST
|
I got this working, must have forgotten to update this thread. We actually ran into a new issue where the polylines don't have colour but the points do: https://community.esri.com/thread/257431-printtemplate-polylines-show-with-no-colour-points-are-fine Not really sure what's going on, I can't see anywhere to set a colour on the Feature Layer. As for this thread it's completed as I can the Print Task generating a printable document. Thanks
... View more
08-26-2020
02:10 PM
|
2
|
0
|
7532
|
| 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 |
03-13-2026
07:55 AM
|