<?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: CSS for Javascript popups - odd behaviour in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309359#M28430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats great - thanks.&amp;nbsp; I removed the reference to popup.png in my css and replaced it with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.esriPopup .pointer, .esriPopup .outerPointer, .esriPopup .pointer.top&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; box-shadow: 0px 0px 0px 3px #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-box-shadow: 0px 0px 0px 3px #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -webkit-box-shadow: 0px 0px 0px 3px #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -o-box-shadow: 0px 0px 0px 3px #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background:white;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does the job nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2015 00:12:49 GMT</pubDate>
    <dc:creator>BenScott1</dc:creator>
    <dc:date>2015-09-02T00:12:49Z</dc:date>
    <item>
      <title>CSS for Javascript popups - odd behaviour</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309354#M28425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to format a popup in a javscript map using the popup's css.&amp;nbsp; I have copied the popup.png sprite locally and have modified the pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strangely, I have been able to successfully reference the bottom, bottom left, bottom right, left and right pointers, but the top, top left and top right pointers display a black box instead of the pointer (see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="124581" alt="New Picture (12).bmp" class="image-1 jive-image" src="/legacyfs/online/124581_New Picture (12).bmp" style="height: auto;" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example of the ones that work - here is the bottom one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="124582" alt="New Picture (9).bmp" class="image-2 jive-image" src="/legacyfs/online/124582_New Picture (9).bmp" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not to do with the sprite or with the background position setting, because I can change the bottom pointer to reference the top pointer in the sprite.. and it displays fine i.e.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="124703" alt="New Picture (10).bmp" class="image-3 jive-image" src="/legacyfs/online/124703_New Picture (10).bmp" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the background of the top pointer to transparent the black box goes away but still no arrow.&amp;nbsp; I have played with the position settings and anything else I can think of but with no success.&amp;nbsp; I am beginning to think this is a bug.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My css file and the sprite is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 00:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309354#M28425</guid>
      <dc:creator>BenScott1</dc:creator>
      <dc:date>2015-09-01T00:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: CSS for Javascript popups - odd behaviour</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309355#M28426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is related to this issue, which is also presently unanswered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/336826"&gt;Re: InfoWindow popup callout arrow is &amp;amp;amp;quot;broken&amp;amp;amp;quot;&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 04:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309355#M28426</guid>
      <dc:creator>BenScott1</dc:creator>
      <dc:date>2015-09-01T04:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: CSS for Javascript popups - odd behaviour</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309356#M28427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you are using an older version of the popup (InfoWindow or InfoWindowLite). Those popups are trickier to style because you have to edit the sprite and correctly reference the popup arrow position in the sprite. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The newer popup is much easier to customize and if you want to modify things like the color of a popup arrow you can do so by setting the background color for the relevant css rule.&amp;nbsp; If you take a look at this &lt;A href="http://developers.arcgis.com/javascript/samples/popup_chart/" style="line-height: 1.5;" title="http://developers.arcgis.com/javascript/samples/popup_chart/"&gt;Popup&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; sample you'll see that the popup appearance has been customized. If you wanted to change the arrow color you can use the following css. In this example we set the popup arrow to magenta. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="styles-section-title styles-selector" style="color: #303942; font-family: Menlo, monospace; font-size: 11px;"&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class="selector" style="color: #888888;"&gt;&lt;SPAN class="selector-matches simple-selector" style="color: #222222;"&gt;.esriPopup.dark .pointer&lt;/SPAN&gt;&lt;/SPAN&gt; {&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;OL class="monospace style-properties" style="font-family: Menlo, monospace; font-size: 11px; padding-top: 2px; padding-right: 4px; list-style: none; color: #303942;"&gt;&lt;LI&gt;&lt;INPUT class="enabled-button" style="font-family: inherit; font-size: 10px;" type="checkbox" /&gt;&lt;SPAN class="styles-clipboard-only"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="webkit-css-property" style="color: #c80000; margin-left: -38px;" title="background: magenta;"&gt;background&lt;/SPAN&gt;: &lt;SPAN class="value"&gt;&lt;SPAN&gt;#F0F&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="color: #303942; font-family: Menlo, monospace; font-size: 11px;"&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309356#M28427</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-09-01T16:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: CSS for Javascript popups - odd behaviour</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309357#M28428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Kelly.&amp;nbsp; I am getting caught between a number of issues here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* My map service is symbolised on attribute values which are updated daily&lt;/P&gt;&lt;P&gt;* Adding the layers as feature layers, I have found that sometimes the old symbology is cached in the browser, meaning that the symbology displays incorrectly&lt;/P&gt;&lt;P&gt;* Disableclientcaching fixes this problem, but it is only available for dynamic map service layers&lt;/P&gt;&lt;P&gt;* Using infowindows, it is possible to set info templates for individual layers in the service using dynamicMapServiceLayer.setInfoTemplates&lt;/P&gt;&lt;P&gt;* A similar method does not seem to be available for popup tempaltes - i.e. setPopupTemplates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I seem to be stuck with infotemplates for the moment, but they have this bug with the top pointers not displaying.&amp;nbsp; So where would you advise I go on this?&amp;nbsp; My javascript file is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 23:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309357#M28428</guid>
      <dc:creator>BenScott1</dc:creator>
      <dc:date>2015-09-01T23:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSS for Javascript popups - odd behaviour</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309358#M28429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Popups can work with either a PopupTemplate or an InfoTemplate so they'll work just fine with setInfoTemplate.&amp;nbsp; Here's a sample that shows this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=map_twodynamic" title="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=map_twodynamic"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But looking at your code it looks like you are already using a popup so I'm confused about where the sprite and popup arrows are causing an issue.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a jsbin showing a version of the above sample with the pointer modified: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/mexadetuya/edit?html,css,js,output" title="http://jsbin.com/mexadetuya/edit?html,css,js,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 23:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309358#M28429</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-09-01T23:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSS for Javascript popups - odd behaviour</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309359#M28430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats great - thanks.&amp;nbsp; I removed the reference to popup.png in my css and replaced it with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.esriPopup .pointer, .esriPopup .outerPointer, .esriPopup .pointer.top&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; box-shadow: 0px 0px 0px 3px #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-box-shadow: 0px 0px 0px 3px #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -webkit-box-shadow: 0px 0px 0px 3px #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -o-box-shadow: 0px 0px 0px 3px #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background:white;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does the job nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 00:12:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/css-for-javascript-popups-odd-behaviour/m-p/309359#M28430</guid>
      <dc:creator>BenScott1</dc:creator>
      <dc:date>2015-09-02T00:12:49Z</dc:date>
    </item>
  </channel>
</rss>

