|
POST
|
Sorry about this, when I updated the sample, I forgot to add `outFields: ["*"]` to the popupTemplate. We fixed it so our next doc update should reflect this. In the meantime, please update the snippet you have above to this let popupTemplate = { // autocasts as new PopupTemplate() title: "Population in {NAME}", content: populationChange, outFields: ["*"], fieldInfos: [{ ... That should take care of it.
... View more
07-26-2019
09:41 AM
|
2
|
0
|
1711
|
|
POST
|
Another thing, the code you pasted above const _dynamic_image_layer = new MapImageLayer({
// url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer",
url: ___url_string,
/*by default, sublayers not define, will show all layers.
* if sublayers defined as [....], only show what you put in [].
*/
sublayers: [{
id: 13,
title: "xxxxxxx",
outFields: ["*"],
popupTemplate : {
// autocasts as new PopupTemplate()
title: "jjjjjj",
content: getInfo,
},
outFields: ["*"]
},
{
id: 8,
title: "yyyyyyyy"
}]
}); You have the outFields set outside of the PopupTemplate. It is not supported on the subLayer. Also, remove the comma after getInfo. What happens when you update with these changes? As for my other response with the provided workaround, this still applies to instances where you are using a MapImageLayer with multiple sublayers and want to populate all fields.
... View more
07-18-2019
01:36 PM
|
2
|
1
|
1842
|
|
POST
|
We made some updates to how popups work when fetching all field data in the latest release (4.12). The original response of setting the `popupTemplate.outFields` to include everything still holds true but setting the popupTemplate's content to {"*"} is no longer supported. Instead, we suggest setting view.popup.defaultPopupTemplateEnabled = true . Unfortunately, this is not implemented on the MapImagelayer. As a workaround for now, you can add this bit of code to get this to work, sublayer.createFeatureLayer()
.then((featureLayer) => featureLayer.load())
.then((featureLayer) => {
sublayer.popupTemplate = featureLayer.createPopupTemplate();
})
... View more
07-18-2019
12:14 PM
|
2
|
3
|
1842
|
|
POST
|
Whoops, one of those days and one too many open tabs in my browser. Thanks, I've updated it to point to the Developers site.
... View more
04-03-2019
01:47 PM
|
0
|
0
|
1048
|
|
POST
|
Hi Nicolas, Thanks for catching that. We updated `name` to `label` in this latest release but failed to update the code snippet. You just need to update it to read, function myFilterFunction(filter) { let containsName = filter.label.includes("animal"); return containsName; } If you are interested in how this would work, check out the Editor widget with configurations sample. This uses a custom grouping function. We'll fix this for our next SDK documentation update.
... View more
04-03-2019
01:27 PM
|
0
|
2
|
1048
|
|
POST
|
Hi, thanks for letting us know. We'll get this addressed for our next update. -Heather
... View more
03-29-2019
11:34 AM
|
0
|
0
|
3463
|
|
POST
|
Hi, this has already been logged as a bug specific to IE 11, BUG-000117342. We are currently looking into this but do not have a set time frame for it to be addressed, unfortunately. I have provided this additional information to our developers as well. Thanks for sharing, Heather
... View more
02-13-2019
12:21 PM
|
1
|
3
|
2973
|
|
POST
|
Hi Nils, You mention "The user logins are being managed in an OAuth system and ArcGIS Server is configured to use the OAuth system." Do you mean, you are using the ArcGIS platform to manage your users? If so, do you also have your Server federated with it? If this is the case, you will need to work with the OAuthInfo class. To do this, register an application within the platform and use it's ID in the OAuthInfo class. There is the option in the IdentityManager popup to check on whether to save this login for future use. You also as how do you submit a job to a secure GP service? The same premise applies here as well. Anytime the API comes across a secure service that it cannot access, it will prompt you with this dialog.
... View more
12-18-2018
08:59 AM
|
0
|
1
|
2753
|
|
POST
|
Hi Nils, The IdentityManager works with both ArcGIS Server token authentication and ArcGIS.com and/or Portal. If you wish to use the OAuth approach with ArcGIS.com/Portal, you would need to use the OAuthInfo class. This is not necessary if just trying to access secured ArcGIS Server services. The way that the IDManager works is it recognizes if there is any secure services in an application. If so, it will prompt the user for credentials. Since you are not using ArcGIS.com or Enterprise Server to host these services, you don't need to worry about the OAuthInfo portion of things. Here is an old sample that shows how this is handled, Accessing secure ArcGIS Server services . You may want to listen to a talk I did at one of our conferences a couple years back, we discuss the different types of authentication and how they are handled in the API. The specifics to what you are asking is around the 3:00 minute mark. We discuss and show a demo. Security and ArcGIS Web Development Video | Esri HTH, Heather
... View more
12-18-2018
06:15 AM
|
1
|
4
|
2753
|
|
POST
|
Thanks Tory, Setting the `outFields` should work with the MapImageLayer. If you come across this again or have any problems, just let us know. Thanks, Heather
... View more
12-17-2018
01:48 PM
|
1
|
0
|
3418
|
|
POST
|
This is a little late in a response. In case someone else comes across this, make sure that you set the PopupTemplate.outFields property. This property returns the fields needed to render the popup properly.
... View more
12-17-2018
01:30 PM
|
1
|
3
|
3418
|
|
POST
|
This is incorrect. It has been fixed for the next 3.26 release (I can vouch for that as we have verified it). I think you may be referencing BUG-000116174 which is similar to BUG-000116101. Both were fixed in 3.26 and is caused by the same issue. We don't like to have multiple bugs for one specific problem as it tends to get unwieldy. BUG-000116174 was marked as a duplicate of BUG-000116101 which HAS been fixed. So to answer your question, it has been addressed. Sorry for the confusion.
... View more
08-24-2018
12:31 PM
|
0
|
1
|
1500
|
|
POST
|
Hi Shana, Are you referring to BUG-000116101? If so, than I am not sure exactly why it would state that. Thanks
... View more
08-24-2018
11:32 AM
|
0
|
3
|
1500
|
|
POST
|
I meant to say, it's been addressed for 3.26. Sorry for any confusion.
... View more
08-23-2018
12:20 PM
|
1
|
15
|
2776
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 07-08-2025 04:21 AM | |
| 2 | 07-07-2025 07:38 AM | |
| 1 | 02-27-2024 08:17 AM | |
| 2 | 02-26-2024 06:53 PM | |
| 1 | 07-27-2023 07:27 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-04-2025
02:51 PM
|