<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cannot export layer with own expression in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/cannot-export-layer-with-own-expression/m-p/1145191#M44436</link>
    <description>&lt;P&gt;Hello to all dear users of the arcgis community.&lt;BR /&gt;I have this problem:&lt;/P&gt;&lt;P&gt;I put my own expression in the attribute (popup) in the point layer. This expression automatically creates a link to a point on the map. It works great, but then I cannot export the layer from the map created in the web mapping application. The expression below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var PointGeometry = Centroid (Geometry ($ feature));
var ArcadeX = PointGeometry.x;
var ArcadeY = PointGeometry.y;
var ArcadeSr = PointGeometry.spatialReference.wkid;
var Latitude, Longitude;
function AuxSphereToLatLon (x, y) {
var rMajor = 6378137;
var shift = PI * rMajor;
Longitude = x / shift * 180.0;
Latitude = y / shift * 180.0;
Latitude = 180 / PI * (2 * Atan (Exp (Latitude * PI / 180.0)) - PI / 2.0);
}
if (ArcadeSr == 4326) {
Latitude = ArcadeY;
Longitude = ArcadeX;
} else if (ArcadeSr == 102100) {
AuxSphereToLatLon (ArcadeX, ArcadeY);
}
var url = "https://my-organization.maps.arcgis.com/apps/webappviewer/index.html?id=xxx=" + text (Longitude) + "," + text (Latitude) + "," + text (Longitude) + "," + text (Latitude);
return url;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 15:53:32 GMT</pubDate>
    <dc:creator>artur</dc:creator>
    <dc:date>2022-02-17T15:53:32Z</dc:date>
    <item>
      <title>Cannot export layer with own expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/cannot-export-layer-with-own-expression/m-p/1145191#M44436</link>
      <description>&lt;P&gt;Hello to all dear users of the arcgis community.&lt;BR /&gt;I have this problem:&lt;/P&gt;&lt;P&gt;I put my own expression in the attribute (popup) in the point layer. This expression automatically creates a link to a point on the map. It works great, but then I cannot export the layer from the map created in the web mapping application. The expression below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var PointGeometry = Centroid (Geometry ($ feature));
var ArcadeX = PointGeometry.x;
var ArcadeY = PointGeometry.y;
var ArcadeSr = PointGeometry.spatialReference.wkid;
var Latitude, Longitude;
function AuxSphereToLatLon (x, y) {
var rMajor = 6378137;
var shift = PI * rMajor;
Longitude = x / shift * 180.0;
Latitude = y / shift * 180.0;
Latitude = 180 / PI * (2 * Atan (Exp (Latitude * PI / 180.0)) - PI / 2.0);
}
if (ArcadeSr == 4326) {
Latitude = ArcadeY;
Longitude = ArcadeX;
} else if (ArcadeSr == 102100) {
AuxSphereToLatLon (ArcadeX, ArcadeY);
}
var url = "https://my-organization.maps.arcgis.com/apps/webappviewer/index.html?id=xxx=" + text (Longitude) + "," + text (Latitude) + "," + text (Longitude) + "," + text (Latitude);
return url;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 15:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/cannot-export-layer-with-own-expression/m-p/1145191#M44436</guid>
      <dc:creator>artur</dc:creator>
      <dc:date>2022-02-17T15:53:32Z</dc:date>
    </item>
  </channel>
</rss>

