POST
|
I'm running into a similar issue configuring a pop up in a web map in my organization's AGOL account. The issue I'm running into is actually in a web app that uses the web map. The error doesn't pop up until I try to view or export data from the attribute table widget. The issue seems to relate to accessing attributes of the geometry object. The following code causes the error: // Convert Lines/Polygons to Points
var PointGeometry = Centroid(Geometry($feature));
var pointX = PointGeometry.x;
var pointY = PointGeometry.y;
return (text(pointX) + ":" + text(pointY); While this does not: // Convert Lines/Polygons to Points
var PointGeometry = Centroid(Geometry($feature));
return (text(PointGeometry)); Have you had any luck resolving this issue?
... View more
02-14-2020
10:02 AM
|
0
|
0
|
1642
|
POST
|
Hey, thanks for the reply. I tried your code on multiple layers (both point and polyline) and am still having issues. It's hard to pin down what is happening but all of the issues I'm having deal with the attribute table widget. Before, with my code, no records would pop up in the attribute table and I would get the error immediately when clicking on the option in the popup to view the record in the attribute table. With your code, I can now view the records in the attribute table but I am getting the same error when I try to export the feature to a CSV. Not sure why this would change the point at which the error pops up. Unfortunately, I can't share the layers I am using with you as they are behind my organization's firewall.
... View more
02-14-2020
07:26 AM
|
0
|
0
|
583
|
POST
|
Hi all. I'm having some issues with a web map and web app that I am building through my organization's ArcGIS Online portal. I have a web map with multiple layers and I have configured some of the popups for different layers with attribute expressions. The code I'm using looks like this: // Convert Lines/Polygons to Points
var PointGeometry = Centroid(Geometry($feature));
var pointX = PointGeometry.x;
var pointY = PointGeometry.y;
return (text(pointX) + ":" + text(pointY); The popup works fine but when I try to view the attribute table for this layer in the web app no records ever load. In Chrome's console I am getting the error "Error: Runtime Error: Cannot call member method on null." Changing the code to: // Convert Lines/Polygons to Points
var PointGeometry = Centroid(Geometry($feature));
return (text(PointGeometry)); actually resolves the issue. Obviously this is not ideal since it is much harder for users to read. It seems like accessing the attributes of the geometry is causing the issue. Any ideas why this is happening?
... View more
02-13-2020
12:04 PM
|
0
|
2
|
717
|
POST
|
I wasn't trying to use mixed content. All the layers should have been using HTTPS, but after getting our service set up in our reverse proxy, and updating the layer references, some things were still pointing to the old REST URL. I think this was because when I first created my web map I used a map image layer that was created from my REST service. After updating my references, some items in the web map were pointing to the new REST URL while others were pointing to the old map image layer. After deleting the map image layer everything seemed to be fixed.
... View more
06-04-2019
11:18 AM
|
0
|
0
|
389
|
POST
|
I used ArcGIS Online Assistant to look at the JSON for the web map and the web app. It looks like the references in the web map were all updated to point at the new REST URL but the URLs in the web app were not updated like I thought they should have been. I was able to edit the JSON and change all the references to the new URL. The web app seems to be working now. Still not sure why this would happen in the first place. I'm assuming this isn't working as intended. Are there any best practices to avoid this issue in the future?
... View more
06-03-2019
10:52 AM
|
0
|
2
|
389
|
POST
|
I'm having some issues with the Attribute Table widget in a web app I created - no attributes will load. Looking at the developer console in Chrome I am getting an error that I am trying to load mixed content. The URL the error is highlighting is the old map service REST URL I was using before a reverse proxy had been set up to allow the service to be reached via HTTPS. The map service, and web map data sources have all been updated in AGOL but this issue still persists. Additionally, if I create a new web application and load the same web map I am currently using in the app I am having the issue with, I no longer get this warning. Any ideas why my web app is still trying to access the old REST service even though it has been updated?
... View more
06-03-2019
07:30 AM
|
0
|
3
|
623
|
Online Status |
Offline
|
Date Last Visited |
01-23-2024
06:26 PM
|