|
POST
|
Hi Christophe, The performance work that was done removed some unnecessary geometry queries on the popup. Unfortunately, what worked in the past now needs to be slightly updated to get the geometries like before. In the prior samples, the geometry was included in either the layer or the popup's template. In your specific case, the layer isn't queried for geometries in order to draw features and the popup does not need to query for geometries because it does not need the geometry for anything within the popup, i.e. Arcade expressions. We won't query for the geometries unless they are needed such as in your application. Here is a snippet showing how to do this in your example, https://codepen.io/hgonzago/pen/bGepYKW?editors=1000 view.when(function () { webmap.when(function(response){ returnedLayer = response.layers.find(function(layer){ return layer.id === "SITG_OPENDATA_01_2709"; }); if (returnedLayer.popupTemplate.outFields == null ) { // set the outFields on the template returnedLayer.popupTemplate.outFields = ["*"]; } //Now you have to wait for the viewModel to be active view.watch("popup.viewModel.active", function(){ console.log(view.popup.selectedFeature.geometry.type); }); }); }); I am definitely going to include this in our documentation to help avoid this confusion for any others later down the line. Thank you for questions and samples. //
... View more
10-16-2020
01:43 PM
|
0
|
4
|
3950
|
|
POST
|
Ok, this isn't a bug. The problem is because you need to make sure you specify the PopupTemplate's outfields as well. I updated the non-working sample to include this and the geometry returns correctly now, see https://codepen.io/hgonzago/pen/ExyKZqB?editors=1000 . There were some updates made at 4.17 to help with performance issues so this is probably why you see this problem. Prior to this though, we always recommend setting the outFields in the PopupTemplate. Going forward, if you wish to access the returned geometry like this, you must make sure that this is included. We do discuss this in documentation, but I think we can probably make this easier to find and understand. I will make sure to include some additional information in our next doc update. I hope this helps, Heather
... View more
10-16-2020
06:50 AM
|
0
|
6
|
3950
|
|
POST
|
Thank you Christophe, this should definitely not be happening. Let me look at this and see what may be going on. I appreciate your quick response with info. -heather
... View more
10-16-2020
05:37 AM
|
0
|
0
|
3950
|
|
POST
|
I played around with some of our samples and cannot see this issue, for example, Popup actions | ArcGIS API for JavaScript 4.17 is able to successfully access the selected feature's geometry and performs a measurement without an issues. We'll definitely need to see your app to figure out the issue at hand.
... View more
10-15-2020
02:16 PM
|
0
|
1
|
3949
|
|
POST
|
Hi, we did do some work with help with querying and performance issues but this should not pertain to this issue at all. The geometry should be there already unless it's not querying for geometries on the layer. Could you please provide a test app showing the issue you are experiencing? Thanks.
... View more
10-15-2020
01:26 PM
|
0
|
2
|
3949
|
|
POST
|
Hi, I'm currently taking a look at this now and will let you know what we find ASAP. Ok, so after some digging, this is definitely a regression (bug) that was introduced at 4.17. We are currently looking into the most feasible way to handle this problem. For now, my best suggestion is to stay at 4.16 for the time-being. We apologize for this and hope to get this addressed very soon. Thanks.
... View more
10-15-2020
09:26 AM
|
2
|
0
|
2926
|
|
POST
|
Hi Markos, Thanks for letting us know. Looking into it now and will let you know ASAP. Ok, so the problem is attributed to the date fields. It happens when there's a date fieldInfo specified at the popupTemplate level and rendered within the popup. Even though we don't have any date fields specified in the fields fieldInfos configuration for the popup's content, it still reads the fields specified in the layer and by default displays the editor tracking information, ie. PopupTemplate.lastEditInfoEnabled. Once I removed the layer's outFields and set the lastEditInfoEnabled property to false, the sample runs fine. We created a fix for it and it will be added to the next release. -Heather
... View more
10-14-2020
01:04 PM
|
1
|
0
|
5393
|
|
POST
|
Stacy, Could you clarify further what you are experiencing? Maybe a test app showing the problem. I have one set up on my end, with date and number fields configured on the server to not allow NULL values. If I remove a value and proceed to the next field input, I always get a warning within the FeatureForm indicating that it needs a valid input.
... View more
02-06-2020
05:25 PM
|
1
|
2
|
1506
|
|
POST
|
Just a head's up, this has been addressed in our next 4.15 release.
... View more
02-04-2020
08:49 AM
|
1
|
0
|
1183
|
|
POST
|
Hi Ali, You are correct. The definitionExpression should be taken into consideration. There is a bug for this and we're hoping to have it addressed for the next 4.15 release slated for March timeline. Thanks.
... View more
01-27-2020
09:19 AM
|
0
|
1
|
1183
|
|
POST
|
It is coming across as `anonymous` because you don't have your service secured. This is how it is able to allow anyone to edit. If you wish to have your data display the name of the responsible editor, you should set it up with security enabled. Without the credentials, it has no way of knowing who the user is that is editing the data.
... View more
12-10-2019
09:20 AM
|
0
|
0
|
699
|
|
POST
|
How do you have your data set up? If you could narrow down your workflow and show it in a sample, it may be easier to help. Thanks.
... View more
12-10-2019
09:01 AM
|
0
|
0
|
1217
|
|
POST
|
Also, I forgot to mention that this is something that we may be able to implement on the API level for those fields that do not have set default values. Server rules would still override anything set on the client, but in those cases where there isn't anything on the field, this could be useful. We've added it as a possible enhancement for a future release.
... View more
12-09-2019
05:39 PM
|
1
|
4
|
5960
|
|
POST
|
The recommended way to have the Editor, or FeatureForm, automatically populate a field with a default value is to set it up on the service end. There is the ability to set default values for a field. The FeatureForm (which is what the Editor uses) recognizes what is stored within the service and uses that. HTH
... View more
12-09-2019
11:40 AM
|
1
|
5
|
5960
|
|
POST
|
If you wish to display the layers at once, have you considered adding them to a webmap and saving out the WebMap? You can then bring in the entire WebMap with all of the layers by passing in the ID as seen in this example, Load a basic WebMap | ArcGIS API for JavaScript 4.13 . If this goes beyond just visualization and trying to keep it simple, and you wish to actually merge the data in the layers into one single output file. You would need to do that using analysis tools such as Merge. You can find more info on this at Merge Layers—ArcGIS Online Help | Documentation HTH, Heather
... View more
10-16-2019
11:37 AM
|
0
|
5
|
4321
|
| 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
|