<?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 Clean way to put custom UI on the map at specific map point? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clean-way-to-put-custom-ui-on-the-map-at-specific/m-p/1516066#M85234</link>
    <description>&lt;P&gt;Sorry for using another lib as example but my goal is to create something like this:&amp;nbsp;&lt;A href="https://openlayers.org/en/latest/examples/overlay.html" target="_blank"&gt;https://openlayers.org/en/latest/examples/overlay.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My goal is to place html div on the map so that it stays at the same position when map zooms/pans...&lt;/P&gt;&lt;P&gt;Does SDK have this functionality natively? In the same spirit like Spinner widget stays at provided point when you add it and pan map? Couldn't find that at first glance, maybe it is buried somewhere..&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 13:29:43 GMT</pubDate>
    <dc:creator>D_R_</dc:creator>
    <dc:date>2024-08-07T13:29:43Z</dc:date>
    <item>
      <title>Clean way to put custom UI on the map at specific map point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clean-way-to-put-custom-ui-on-the-map-at-specific/m-p/1516066#M85234</link>
      <description>&lt;P&gt;Sorry for using another lib as example but my goal is to create something like this:&amp;nbsp;&lt;A href="https://openlayers.org/en/latest/examples/overlay.html" target="_blank"&gt;https://openlayers.org/en/latest/examples/overlay.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My goal is to place html div on the map so that it stays at the same position when map zooms/pans...&lt;/P&gt;&lt;P&gt;Does SDK have this functionality natively? In the same spirit like Spinner widget stays at provided point when you add it and pan map? Couldn't find that at first glance, maybe it is buried somewhere..&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 13:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clean-way-to-put-custom-ui-on-the-map-at-specific/m-p/1516066#M85234</guid>
      <dc:creator>D_R_</dc:creator>
      <dc:date>2024-08-07T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clean way to put custom UI on the map at specific map point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clean-way-to-put-custom-ui-on-the-map-at-specific/m-p/1516149#M85236</link>
      <description>&lt;P&gt;Not specific to it, but you could do something like that manually.&lt;/P&gt;&lt;P&gt;Views have a toScreen() method that converts map coordinates to screen coordinates.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#toScreen" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#toScreen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And a toMap to turn screen coords to map coords.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#methods-summary" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#methods-summary&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can then use reactiveUtils to watch some view property like interacting, maybe navigating to know when the map is being panned/zoomed and update the elements location.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#interacting" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#interacting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 15:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clean-way-to-put-custom-ui-on-the-map-at-specific/m-p/1516149#M85236</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-08-07T15:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Clean way to put custom UI on the map at specific map point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clean-way-to-put-custom-ui-on-the-map-at-specific/m-p/1516151#M85237</link>
      <description>&lt;P&gt;Thank you! It was my plan B to do that actually &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 15:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clean-way-to-put-custom-ui-on-the-map-at-specific/m-p/1516151#M85237</guid>
      <dc:creator>D_R_</dc:creator>
      <dc:date>2024-08-07T15:21:16Z</dc:date>
    </item>
  </channel>
</rss>

