<?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: Tooltip while using draw widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264268#M80459</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp; Resolved at my end. Below are the code. Appreciate your help.&lt;/P&gt;&lt;P&gt;const toolTipSpan = document.createElement("toolTipSpan");&lt;BR /&gt;toolTipSpan.appendChild(document.createTextNode('hi'));&lt;BR /&gt;&lt;BR /&gt;document.getElementById("viewDiv").appendChild(toolTipSpan);&lt;BR /&gt;view.on("pointer-move", (event) =&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;toolTipSpan.style.position="absolute";&lt;BR /&gt;toolTipSpan.style.backgroundColor = "white";&lt;BR /&gt;toolTipSpan.style.borderRadius = "25px";&lt;BR /&gt;toolTipSpan.style.padding = "10px";&lt;BR /&gt;toolTipSpan.style.left = event.x + "px";&lt;BR /&gt;toolTipSpan.style.top = event.y + "px";&lt;BR /&gt;});&lt;/P&gt;</description>
    <pubDate>Sat, 04 Mar 2023 14:35:40 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2023-03-04T14:35:40Z</dc:date>
    <item>
      <title>Tooltip while using draw widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264054#M80453</link>
      <description>&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am working with ArcGIS JavaScript 4 and using Draw widget to draw line/polygon and rectangle. As compared to ArcGIS 3, the tooltip option is not available in the current version. Any idea how to achieve that?&lt;/P&gt;&lt;P&gt;I was able to get the x,y of the cursor using point-move. But not sure how to bring a div on the evt.x,evt.y&lt;/P&gt;&lt;P&gt;View.on('pointer-move', (evt) =&amp;gt; {&lt;BR /&gt;console.log(evt.x, evt.y);&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264054#M80453</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-03-03T16:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip while using draw widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264155#M80455</link>
      <description>&lt;P&gt;Hey there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You create a create a div with absolute position and set the top and left corners to the event's x and y. Something like this:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/yLxbZjz?editors=1000" target="_blank"&gt;https://codepen.io/U_B_U/pen/yLxbZjz?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 20:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264155#M80455</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-03-03T20:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip while using draw widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264237#M80457</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;I did something like this which is throwing my div outside map.&lt;/P&gt;&lt;P&gt;mapView.on('pointer-move', (evt) =&amp;gt; {&lt;BR /&gt;//console.log(evt.x, evt.y);&lt;BR /&gt;var element = document.createElement("div");&lt;BR /&gt;element.appendChild(document.createTextNode('hi'));&lt;BR /&gt;document.getElementById('map').appendChild(element);&lt;BR /&gt;document.getElementById("element").style.opacity= 0;&lt;BR /&gt;document.getElementById("element").style.position="absolute";&lt;BR /&gt;document.getElementById("element").style.color="white";&lt;BR /&gt;document.getElementById("element").style.left = evt.x + 'px';&lt;BR /&gt;document.getElementById("element").style.top =evt.y + 'px';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 01:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264237#M80457</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-03-04T01:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip while using draw widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264268#M80459</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp; Resolved at my end. Below are the code. Appreciate your help.&lt;/P&gt;&lt;P&gt;const toolTipSpan = document.createElement("toolTipSpan");&lt;BR /&gt;toolTipSpan.appendChild(document.createTextNode('hi'));&lt;BR /&gt;&lt;BR /&gt;document.getElementById("viewDiv").appendChild(toolTipSpan);&lt;BR /&gt;view.on("pointer-move", (event) =&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;toolTipSpan.style.position="absolute";&lt;BR /&gt;toolTipSpan.style.backgroundColor = "white";&lt;BR /&gt;toolTipSpan.style.borderRadius = "25px";&lt;BR /&gt;toolTipSpan.style.padding = "10px";&lt;BR /&gt;toolTipSpan.style.left = event.x + "px";&lt;BR /&gt;toolTipSpan.style.top = event.y + "px";&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 14:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tooltip-while-using-draw-widget/m-p/1264268#M80459</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-03-04T14:35:40Z</dc:date>
    </item>
  </channel>
</rss>

