<?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 Opening Link with coordinates after clicking in ArcGIS Online Map in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1334875#M54889</link>
    <description>&lt;P&gt;Dear users,&lt;/P&gt;&lt;P&gt;I`m quite new to ArcGIS Online.&lt;/P&gt;&lt;P&gt;In an application (an instant map) I would like to create the following function:&lt;/P&gt;&lt;P&gt;It someone activates that function and does a mouseclick in a map, a link to our cms should open, that has also the coordinates of the mouseclick. E.G. &lt;A href="https://ourcontentmanagementsystem.de?coordidates=123456,3456787" target="_blank"&gt;https://ourcontentmanagementsystem.de?coordidates=123456,3456787&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible? Can anyone give me a hint, what I can do (where I have to search, maybe there a some documentations of that technique)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 12:06:56 GMT</pubDate>
    <dc:creator>KaiBehncke</dc:creator>
    <dc:date>2023-10-04T12:06:56Z</dc:date>
    <item>
      <title>Opening Link with coordinates after clicking in ArcGIS Online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1334875#M54889</link>
      <description>&lt;P&gt;Dear users,&lt;/P&gt;&lt;P&gt;I`m quite new to ArcGIS Online.&lt;/P&gt;&lt;P&gt;In an application (an instant map) I would like to create the following function:&lt;/P&gt;&lt;P&gt;It someone activates that function and does a mouseclick in a map, a link to our cms should open, that has also the coordinates of the mouseclick. E.G. &lt;A href="https://ourcontentmanagementsystem.de?coordidates=123456,3456787" target="_blank"&gt;https://ourcontentmanagementsystem.de?coordidates=123456,3456787&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible? Can anyone give me a hint, what I can do (where I have to search, maybe there a some documentations of that technique)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 12:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1334875#M54889</guid>
      <dc:creator>KaiBehncke</dc:creator>
      <dc:date>2023-10-04T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Link with coordinates after clicking in ArcGIS Online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1334904#M54890</link>
      <description>&lt;P&gt;You could approximate this with a feature popup that uses the coordinates of the clicked feature's centroid, something like that. Capturing the coordinates of the mouse and throwing that into a link seems doable, but likely requires custom development.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 13:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1334904#M54890</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-10-04T13:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Link with coordinates after clicking in ArcGIS Online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1335268#M54916</link>
      <description>&lt;P&gt;Greetings&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/724978"&gt;@KaiBehncke&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, visit &lt;A href="https://developers.arcgis.com/documentation/app-builders/no-code/arcgis-instant-apps/#why-use-instant-apps" target="_blank" rel="noopener"&gt;Introduction to ArcGIS Instant Apps&lt;/A&gt; to see what is possible with respect to customisation.&lt;/P&gt;&lt;P&gt;It is not possible to download these apps to host them in your own environment and therefore customise them as you would like to.&amp;nbsp; See the following &lt;A href="https://www.esri.com/arcgis-blog/products/appstudio/announcements/app-builder-questions-from-the-2022-esri-user-conference/#:~:text=own%20data%20server%3F-,A%3A%20No.,ArcGIS%20Online%20or%20ArcGIS%20Enterprise." target="_blank" rel="noopener"&gt;FAQ for ArcGIS Instant Apps for details&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;I hope the above information is of assistance.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 07:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1335268#M54916</guid>
      <dc:creator>MiguelParedes</dc:creator>
      <dc:date>2023-10-05T07:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Link with coordinates after clicking in ArcGIS Online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1335281#M54918</link>
      <description>&lt;P&gt;Dear Miguel,&lt;/P&gt;&lt;P&gt;ok, thank you for answering &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As far as I understand:&lt;/P&gt;&lt;P&gt;a) It is not possible to implement own JS-code in AGO and the Instant Apps or the Map Viewer /Map Viewer Classic, due to security reasons. So it is not possible to write own functions in that clients, rights?&lt;/P&gt;&lt;P&gt;b) It is not possible to download AGO or the Instant Apps to customise them on an own server.(e.g. on a linux server).&lt;/P&gt;&lt;P&gt;c) It is possible to use the ArcGIS Map Api&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.27/" target="_blank"&gt;https://js.arcgis.com/4.27/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;.....and create own code based on html/css/JS..... But then it`s not possible to you all the nice AGO-functions (creating maps by clicking). Then everything is "just codebased", right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that right, what I have written?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 09:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1335281#M54918</guid>
      <dc:creator>KaiBehncke</dc:creator>
      <dc:date>2023-10-05T09:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Link with coordinates after clicking in ArcGIS Online Map</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1336504#M54976</link>
      <description>&lt;P&gt;Allright, I developed a small solution with ArcGIS Maps SDK for JavaScript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It goes like that:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;ArcGIS Maps SDK for JavaScript; Display a map and get coordinates in a link&amp;lt;/title&amp;gt;

    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;

    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.27/esri/themes/light/main.css"&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.27/"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;script&amp;gt;
      require(["esri/config", "esri/Map", "esri/views/MapView", "esri/geometry/projection","esri/geometry/SpatialReference","esri/geometry/support/webMercatorUtils","esri/geometry/support/GeographicTransformation"], function(esriConfig, Map, MapView, projection, SpatialReference,webMercatorUtils,GeographicTransformation) {
     esriConfig.apiKey = "xxxxxxx";


const cs1 = new SpatialReference({
  wkid: 25832 
});


        const map = new Map({
          basemap: "arcgis-topographic" 
        });


        const view = new MapView({
          map: map,
		    spatialReference: {
    wkid: 3857},
          center: [7.718995,52.27677], 
          zoom: 13, 
          container: "viewDiv" 
        });


     view.on("click", myClickHandler);
  function myClickHandler(event) {
  
  projection.load().then(function() {
    var mp = webMercatorUtils.webMercatorToGeographic(event.mapPoint);
	var mp2= projection.project(event.mapPoint, cs1);

 //    alert("User clicked at " + 
 //   event.screenPoint.x + ", " + event.screenPoint.y +
 //   " on the screen. The map coordinate at this point is " + mp2.x
  //   + ", " + mp2.y);
  var gewuenschte_url="https://www.xxxxxxxxxxxxxx.de/file.php?&amp;amp;KOORD="+mp2.x+","+mp2.y;

 winAuskunft=window.open(gewuenschte_url,'Auskunft','menubar=1,resizable=1,width=350,height=250')
  
  
  
  
});
}
});






	  
    &amp;lt;/script&amp;gt;

  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 10:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/opening-link-with-coordinates-after-clicking-in/m-p/1336504#M54976</guid>
      <dc:creator>KaiBehncke</dc:creator>
      <dc:date>2023-10-10T10:04:10Z</dc:date>
    </item>
  </channel>
</rss>

