<?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: ESRI Sample for maptips? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195562#M18062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad the code helped you! I'm currently on vacation until next week so I can't try anything but I don't have quick answer for you right now. I remember wanting to change the background color of the tooltip as well without success. I'll try to look at it again next week but, for now, you might want to try an inspect the Dojo CSS. You might have to override the default CSS with "!important" in your own CSS file. Maybe that's why specifying via javascript object properties isn't working?...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 19:45:27 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2013-01-04T19:45:27Z</dc:date>
    <item>
      <title>ESRI Sample for maptips?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195557#M18057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could swear that about a month or two ago, I was looking at an ESRI sample showing the use of maptips for polygon features. The sample data used was from someplace in New Mexico or someplace else in the desert southwest. I know it used onMouseOut and onMouseOver and would display a small div frame next to the mouse as long as it stayed within the feature's extent. For the life of me, I cannot find it again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried implementing it into my project at the time but had difficulty since my data was continuous and the sample was showing data that was scattered across the map. I ended up removing that code from my project and now I can't find the sample. Argh!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this description ring any bells and can re-link me to that sample?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to add a map tip to a point feature layer of mine. I already have an infoWindow set up for click events so I just want to add a simple map tip for the hover event. I tried implementing the code in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/30205-Maptip-onhover-and-onclick-to-edit?highlight=onmouseover"&gt;this&lt;/A&gt;&lt;SPAN&gt; forum post but I guess I don't understand how to "define the required methods."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 17:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195557#M18057</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2012-12-14T17:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI Sample for maptips?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195558#M18058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;While I still haven't found the sample I was looking for, I did get the sample in the forum thread I linked to work. Here's the working code for anyone interested:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; //Attempt to add tooltips to the SnoCo Stream Gage layer
 var thisObject = this;

 //============================================================================= 
 // Functions to display and dismiss the tooltp on the SnoCo Stream Gage features
 //============================================================================= 
 this.showTooltip = function(evt) {
&amp;nbsp; var dialog = new dijit.TooltipDialog({
&amp;nbsp;&amp;nbsp; id: "tooltipDialog",
&amp;nbsp;&amp;nbsp; content: "Stage: " + evt.graphic.attributes.curHeight + " Ft&amp;lt;br/&amp;gt;" + dToday + "&amp;lt;br/&amp;gt;" + evt.graphic.attributes.NAME,
&amp;nbsp;&amp;nbsp; style: "position: absolute; width: auto; font: normal normal bold 8pt Tahoma;z-index:100"
&amp;nbsp; });
&amp;nbsp; dialog.startup();

&amp;nbsp; dojo.style(dialog.domNode, "opacity", 0.85);
&amp;nbsp; dojo.style(dialog.domNode, "background", "#333");
&amp;nbsp; dojo.style(dialog.domNode, "color", "#EFEFEF");
&amp;nbsp; dijit.placeOnScreen(dialog.domNode, {x: evt.pageX, y: evt.pageY}, ["TL", "BL"], {x: 10, y: 10});
 }

 this.closeDialog = function() {
&amp;nbsp; var widget = dijit.byId("tooltipDialog");
&amp;nbsp; if (widget) {
&amp;nbsp;&amp;nbsp; widget.destroy();
&amp;nbsp; }
 }
 
 dojo.connect(theFeatureLayer, "onMouseOver", function(evt) {
&amp;nbsp; thisObject.closeDialog();
&amp;nbsp; thisObject.showTooltip(evt);
 });

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(theFeatureLayer, "onMouseOut", this.closeDialog);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195558#M18058</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-11T09:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI Sample for maptips?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195559#M18059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/query_hover/index.html"&gt;one&lt;/A&gt;&lt;SPAN&gt; is in the southeast, but it definitely uses &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/graphicslayer.htm#onMouseOver"&gt;onMoveOver&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/graphicslayer.htm#onMouseOut"&gt;onMouseOut&lt;/A&gt;&lt;SPAN&gt; with polygon features...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195559#M18059</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-12-18T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI Sample for maptips?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195560#M18060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I missed your reply, John, but thanks for chiming in. I've seen the sample you linked but that was not the one. Instead of infowindows, the sample I recall has plain square boxes as the tooltip. I've attached a screen shot of my implementation of the code I posted earlier in this thread as an example of what I'm talking about.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 18:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195560#M18060</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2012-12-21T18:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI Sample for maptips?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195561#M18061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for posting your sample code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have since been able to get a similar sample working for myself but now I want to style the popup but I can't seem to get rid of the inner grey box with the light blue outline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20444[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; function showTooltip(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; closeDialog();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tipContent = "&amp;lt;b&amp;gt;" + evt.graphic.attributes.Project+" &amp;lt;/b&amp;gt;" ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dialog = new dijit.TooltipDialog({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "tooltipDialog",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content: tipContent 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.startup();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // dojo.style(dialog.domNode, "opacity", 0.85);
&amp;nbsp; dojo.style(dialog.domNode, "background", "#333");
&amp;nbsp; dojo.style(dialog.domNode, "color", "white");
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dijit.placeOnScreen(dialog.domNode, {x: evt.pageX, y: evt.pageY}, ["BL"], {x: 8, y: 8});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I really want is a solid tooltipDialog like the ESRI San Diego shortlist example (see image 2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be great. Thanks, Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20445[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195561#M18061</guid>
      <dc:creator>ChristopherPollard</dc:creator>
      <dc:date>2021-12-11T09:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI Sample for maptips?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195562#M18062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad the code helped you! I'm currently on vacation until next week so I can't try anything but I don't have quick answer for you right now. I remember wanting to change the background color of the tooltip as well without success. I'll try to look at it again next week but, for now, you might want to try an inspect the Dojo CSS. You might have to override the default CSS with "!important" in your own CSS file. Maybe that's why specifying via javascript object properties isn't working?...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 19:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195562#M18062</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-01-04T19:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI Sample for maptips?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195563#M18063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20459[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that's exactly what I ended up doing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It was the tooltip Container that was giving me that extra box with border.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue I was having was that using firebug I could never "INSPECT" the tooltip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would always close before I could figure out the proper dijit class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
.tundra .dijitTooltipContainer {
&amp;nbsp;&amp;nbsp;&amp;nbsp; background:&amp;nbsp; none repeat scroll 0 0 transparent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; border: none;
} &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks and enjoy your vacation&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-sample-for-maptips/m-p/195563#M18063</guid>
      <dc:creator>ChristopherPollard</dc:creator>
      <dc:date>2021-12-11T09:47:08Z</dc:date>
    </item>
  </channel>
</rss>

