<?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 Re: Google Maps hyperlink inside a Web Map Popup in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1004227#M37491</link>
    <description>&lt;P&gt;Hi XanderBakker,&lt;/P&gt;&lt;P&gt;we have lat/lon fields with the decimal values in them (separated with the comma).&lt;/P&gt;&lt;P&gt;If you had an example to share with us it would be very helpful, anyway&amp;nbsp; I'll try to use Arcade to generate the URL correctly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 08:07:53 GMT</pubDate>
    <dc:creator>AlfonsoDodero</dc:creator>
    <dc:date>2020-11-24T08:07:53Z</dc:date>
    <item>
      <title>Google Maps hyperlink inside a Web Map Popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1003895#M37475</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I would like to insert an hyperlink to Google Maps within a popup of my Web Map.&lt;/P&gt;&lt;P&gt;In my process, latitude and longitude natively have the following notification type,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;example&lt;/EM&gt;&lt;BR /&gt;lon .: 11&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt;213238&lt;BR /&gt;lat .: 44&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt;231233&lt;/P&gt;&lt;P&gt;To easily insert them into the hyperlink I would need to convert them by transforming the comma into a period, as required by Google Maps.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 09:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1003895#M37475</guid>
      <dc:creator>AlfonsoDodero</dc:creator>
      <dc:date>2020-11-23T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps hyperlink inside a Web Map Popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1003896#M37476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233902"&gt;@AlfonsoDodero&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way to achieve this would be you can create a new field and use Arcade expression which can help to create the URL dynamically and this can be used in the popup as hyperlink.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 09:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1003896#M37476</guid>
      <dc:creator>ManishPatel</dc:creator>
      <dc:date>2020-11-23T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps hyperlink inside a Web Map Popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1004001#M37484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233902"&gt;@AlfonsoDodero&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I know, you can use Arcade to extract the coordinates of&amp;nbsp; a geometry or the values if stored in&amp;nbsp;numeric decimal field and the decimal will always be a point as required in the URL. There is no need to create a new field, this can be done on the fly and when you return a valid URL the pop-up will automatically show it as a URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you extract the coordinates from the geometry or do you have lat/lon fields with the decimal values in them?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 16:17:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1004001#M37484</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-11-23T16:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps hyperlink inside a Web Map Popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1004227#M37491</link>
      <description>&lt;P&gt;Hi XanderBakker,&lt;/P&gt;&lt;P&gt;we have lat/lon fields with the decimal values in them (separated with the comma).&lt;/P&gt;&lt;P&gt;If you had an example to share with us it would be very helpful, anyway&amp;nbsp; I'll try to use Arcade to generate the URL correctly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 08:07:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1004227#M37491</guid>
      <dc:creator>AlfonsoDodero</dc:creator>
      <dc:date>2020-11-24T08:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps hyperlink inside a Web Map Popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1004317#M37495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233902"&gt;@AlfonsoDodero&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of years ago I published a document on GeoNet that shows how to create a hyperlink that opens a new tab with Street View at the location of the feature (Spanish):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/comunidad-esri-colombia-ecuador/crear-un-enlace-a-streetview-en-la-ventana-emergente-con-arcade/ta-p/904929" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/comunidad-esri-colombia-ecuador/crear-un-enlace-a-streetview-en-la-ventana-emergente-con-arcade/ta-p/904929&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You mention that the coordinates are stored in a field with a decimal value (I assume that the field is numeric and not text). The comma as a decimal is a way of showing the numeric value but internally it will be stored as a point. When you access the value with Arcade I assume that the value will be retrieved with a decimal point or to be sure you can use a Replace to replace any decimal comma by a point.&lt;/P&gt;&lt;P&gt;Some examples:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Streetview&lt;/STRONG&gt;&lt;BR /&gt;var lat = Replace(Text($feature["Latitude Field Name"], "#.#######"), ",", ".");&lt;BR /&gt;var lon = Replace(Text($feature["Longitude Field Name"], "#.#######"), ",", ".");&lt;BR /&gt;var url = "&lt;A href="http://maps.google.com/?cbll=" target="_blank" rel="noopener"&gt;http://maps.google.com/?cbll=&lt;/A&gt;" + lat + "," + lon + "&amp;amp;cbp=12,90,0,0,5&amp;amp;layer=c";&lt;BR /&gt;return url;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Google maps search&lt;/STRONG&gt;&lt;BR /&gt;var lat = Replace(Text($feature["Latitude Field Name"], "#.#######"), ",", ".");&lt;BR /&gt;var lon = Replace(Text($feature["Longitude Field Name"], "#.#######"), ",", ".");&lt;BR /&gt;var url = "&lt;A href="https://www.google.com/maps/search/?api=1&amp;amp;query=" target="_blank" rel="noopener"&gt;https://www.google.com/maps/search/?api=1&amp;amp;query=&lt;/A&gt;" + lat + "," + lon;&lt;BR /&gt;return url;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Google maps @ location (zoom level 19)&lt;/STRONG&gt;&lt;BR /&gt;var lat = Replace(Text($feature["Latitude Field Name"], "#.#######"), ",", ".");&lt;BR /&gt;var lon = Replace(Text($feature["Longitude Field Name"], "#.#######"), ",", ".");&lt;BR /&gt;var url = "&lt;A href="https://www.google.com/maps/@" target="_blank" rel="noopener"&gt;https://www.google.com/maps/@&lt;/A&gt;" + lat + "," + lon + ",19z";&lt;BR /&gt;return url;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 19:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/google-maps-hyperlink-inside-a-web-map-popup/m-p/1004317#M37495</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-11-24T19:58:39Z</dc:date>
    </item>
  </channel>
</rss>

