<?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 Arcade map pop-up link to Google Earth in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-map-pop-up-link-to-google-earth/m-p/1405951#M58478</link>
    <description>&lt;P&gt;I have a polygon feature layer where pop-ups are configured already to link to directions to Google Maps and Waze through a resource I found online. I would like a similar pop-up link for Google Earth to see the location in 3D. However, it looks like it's not as easy as just a URL change, if the prefix is changed from&amp;nbsp;&lt;A href="https://www.google.com/maps/place/" target="_blank" rel="noopener"&gt;https://www.google.com/maps/place/ &lt;/A&gt;to&amp;nbsp;&lt;A href="https://earth.google.com/web/" target="_blank" rel="noopener"&gt;https://earth.google.com/web/&lt;/A&gt;. It also looks like Google Earth "remembers" where you last opened a link regardless of clicking a brand new link. Any assistance appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// converts point from the Spherical Mercator EPSG:900913 to the WGS84 Datum
// i.e. converts from the projected cooridinate system to the needed geographic coordinate system
var PointGeometry = Centroid(Geometry($feature))

// "6378137" is the length of the semi-minor axis of the Spherical Mercator's ellipsoid
// the semi-minor axis of an ellipsiod is the geometric mean of the ellipsioid's max &amp;amp; min radii
// dividing by the length of the semi-minor axis standardizes the X, Y point to radians
var latRadians = (PointGeometry.y / 6378137)

// the geodetic latitude in radians
var latGeoRadians = (2 * Atan(Exp(latRadians)) - PI / 2)
// converts radians to degrees by multiplying by "180 / PI"
var lat = Text(180 / PI * latGeoRadians)

// dividing by the length of the semi-minor axis standardizes the X, Y point to radians
var longRadians = PointGeometry.x / 6378137
// converts radians to degrees by multiplying by "180 / PI"
var long = Text(180 / PI * longRadians)

// gives the g-maps url to the calculated lat &amp;amp; long
var url = 'https://www.google.com/maps/place/' + lat + '+' + long
return url&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 18:19:56 GMT</pubDate>
    <dc:creator>Tiff</dc:creator>
    <dc:date>2024-04-04T18:19:56Z</dc:date>
    <item>
      <title>Arcade map pop-up link to Google Earth</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-map-pop-up-link-to-google-earth/m-p/1405951#M58478</link>
      <description>&lt;P&gt;I have a polygon feature layer where pop-ups are configured already to link to directions to Google Maps and Waze through a resource I found online. I would like a similar pop-up link for Google Earth to see the location in 3D. However, it looks like it's not as easy as just a URL change, if the prefix is changed from&amp;nbsp;&lt;A href="https://www.google.com/maps/place/" target="_blank" rel="noopener"&gt;https://www.google.com/maps/place/ &lt;/A&gt;to&amp;nbsp;&lt;A href="https://earth.google.com/web/" target="_blank" rel="noopener"&gt;https://earth.google.com/web/&lt;/A&gt;. It also looks like Google Earth "remembers" where you last opened a link regardless of clicking a brand new link. Any assistance appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// converts point from the Spherical Mercator EPSG:900913 to the WGS84 Datum
// i.e. converts from the projected cooridinate system to the needed geographic coordinate system
var PointGeometry = Centroid(Geometry($feature))

// "6378137" is the length of the semi-minor axis of the Spherical Mercator's ellipsoid
// the semi-minor axis of an ellipsiod is the geometric mean of the ellipsioid's max &amp;amp; min radii
// dividing by the length of the semi-minor axis standardizes the X, Y point to radians
var latRadians = (PointGeometry.y / 6378137)

// the geodetic latitude in radians
var latGeoRadians = (2 * Atan(Exp(latRadians)) - PI / 2)
// converts radians to degrees by multiplying by "180 / PI"
var lat = Text(180 / PI * latGeoRadians)

// dividing by the length of the semi-minor axis standardizes the X, Y point to radians
var longRadians = PointGeometry.x / 6378137
// converts radians to degrees by multiplying by "180 / PI"
var long = Text(180 / PI * longRadians)

// gives the g-maps url to the calculated lat &amp;amp; long
var url = 'https://www.google.com/maps/place/' + lat + '+' + long
return url&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 18:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-map-pop-up-link-to-google-earth/m-p/1405951#M58478</guid>
      <dc:creator>Tiff</dc:creator>
      <dc:date>2024-04-04T18:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade map pop-up link to Google Earth</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-map-pop-up-link-to-google-earth/m-p/1405988#M58482</link>
      <description>&lt;P&gt;Are you sure you're specifying the arguments the right way? There seems to be an ampersand (@) before the lat/long specification rather than what you have in the url code sample above. I found &lt;A href="https://support.google.com/earth/thread/185651102/how-to-set-up-the-command-line-url-line?hl=en" target="_blank" rel="noopener"&gt;this discussion&lt;/A&gt; and I changed the lat/long to different coordinates and it opened to the new location..&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 19:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-map-pop-up-link-to-google-earth/m-p/1405988#M58482</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2024-04-04T19:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade map pop-up link to Google Earth</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-map-pop-up-link-to-google-earth/m-p/1406413#M58501</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/146007"&gt;@SteveCole&lt;/a&gt;,&amp;nbsp;I think this did it! I was missing the "@" which was in the way of troubleshooting, and I did not come across that discussion so that helped a lot in setting the other parameters. Thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 15:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-map-pop-up-link-to-google-earth/m-p/1406413#M58501</guid>
      <dc:creator>Tiff</dc:creator>
      <dc:date>2024-04-05T15:22:13Z</dc:date>
    </item>
  </channel>
</rss>

