<?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: Popup Not Showing Content On Mobile Devices in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167137#M15509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. Could you provide a CodePen with your code or a sample where you are seeing this happen?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2020 00:30:35 GMT</pubDate>
    <dc:creator>AnneFitz</dc:creator>
    <dc:date>2020-02-12T00:30:35Z</dc:date>
    <item>
      <title>Popup Not Showing Content On Mobile Devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167136#M15508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using javascript api version 4.13.&amp;nbsp; My popup is not showing the content when application is viewed on a mobile device (ios and android).&amp;nbsp; It works fine&amp;nbsp;on a desktop.&amp;nbsp; I used the developer tools in Chrome to look at the html and css.&amp;nbsp; I attached two files that show what the popup content looks like on the desktop and mobile device.&amp;nbsp; I believe there is a media query somewhere but I don't know where to find it.&amp;nbsp; I tried the following but it did not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.esri-view-width-xsmall .esri-popup__content,&lt;BR /&gt;.esri-view-width-small .esri-popup__content {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; display: flex;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 21:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167136#M15508</guid>
      <dc:creator>CurtisSpurlock</dc:creator>
      <dc:date>2020-02-10T21:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Not Showing Content On Mobile Devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167137#M15509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. Could you provide a CodePen with your code or a sample where you are seeing this happen?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 00:30:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167137#M15509</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2020-02-12T00:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Not Showing Content On Mobile Devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167138#M15510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are screen shots from a desktop and mobile device.&amp;nbsp; You will see on the mobile device the popup content is not showing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/482028_DesktopView.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/482033_MobileView.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 17:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167138#M15510</guid>
      <dc:creator>CurtisSpurlock</dc:creator>
      <dc:date>2020-02-12T17:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Not Showing Content On Mobile Devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167139#M15511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thank you for the screenshots. Would you be willing to share your code? Or h&lt;SPAN&gt;ave you seen this kind of behavior in any of our samples in the SDK? &lt;/SPAN&gt;We want to make sure we can reproduce the problem&amp;nbsp;to see if it is a bug or something we can fix within your code. Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 18:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167139#M15511</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2020-02-12T18:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Not Showing Content On Mobile Devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167140#M15512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not seen this kind of behavior before.&amp;nbsp; Below is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map;&lt;BR /&gt;var view;&lt;BR /&gt;var policeLayer;&lt;BR /&gt;var centerPt;&lt;BR /&gt;var isResponsiveSize;&lt;/P&gt;&lt;P&gt;require(["esri/Map", "esri/views/MapView", "esri/layers/MapImageLayer", "esri/geometry/Extent", "esri/widgets/Expand", "esri/widgets/Home", "esri/widgets/Legend"], function (Map, MapView, MapImageLayer, Extent, Expand, Home, Legend) {&lt;BR /&gt; var initExtent = new Extent({&lt;BR /&gt; "xmin": -10843481.213449172,&lt;BR /&gt; "ymin": 3840648.34577054,&lt;BR /&gt; "xmax": -10775949.098959311,&lt;BR /&gt; "ymax": 3871184.9385704272,&lt;BR /&gt; "spatialReference": { "wkid": 102100 }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// Create the Map&lt;BR /&gt; map = new Map({&lt;BR /&gt; basemap: "topo"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view = new MapView({&lt;BR /&gt; container: "dvMap",&lt;BR /&gt; map: map,&lt;BR /&gt; extent: initExtent,&lt;BR /&gt; zoom: 12,&lt;BR /&gt; popup: {&lt;BR /&gt; dockEnabled: false,&lt;BR /&gt; dockOptions: {&lt;BR /&gt; buttonEnabled: false,&lt;BR /&gt; breakpoint: false&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var homeBtn = new Home({&lt;BR /&gt; view: view&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.ui.add(homeBtn, "top-left");&lt;/P&gt;&lt;P&gt;policeLayer = new MapImageLayer({&lt;BR /&gt; url: "https://gis2.arlingtontx.gov/agsext/rest/services/Police/Police/MapServer"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.layers.add(policeLayer);&lt;/P&gt;&lt;P&gt;var legend = new Legend({&lt;BR /&gt; view: view,&lt;BR /&gt; layerInfos: [{&lt;BR /&gt; layer: policeLayer,&lt;BR /&gt; title: "Police"&lt;BR /&gt; }],&lt;BR /&gt; container: document.createElement("div")&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var expandLegend = new Expand({&lt;BR /&gt; view: view,&lt;BR /&gt; content: new Legend({&lt;BR /&gt; view: view,&lt;BR /&gt; layerInfos: [{&lt;BR /&gt; layer: policeLayer,&lt;BR /&gt; title: "Police"&lt;BR /&gt; }],&lt;BR /&gt; container: document.createElement("div")&lt;BR /&gt; })&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;if (view.widthBreakpoint === "xsmall" || view.widthBreakpoint === "small") {&lt;BR /&gt; isResponsiveSize = true;&lt;BR /&gt; } else {&lt;BR /&gt; isResponsiveSize = false;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;setLegendView(isResponsiveSize);&lt;/P&gt;&lt;P&gt;view.watch("widthBreakpoint", function (breakpoint) {&lt;BR /&gt; switch (breakpoint) {&lt;BR /&gt; case "xsmall":&lt;BR /&gt; case "small":&lt;BR /&gt; setLegendView(true);&lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;case "medium":&lt;BR /&gt; case "large":&lt;BR /&gt; case "xlarge":&lt;BR /&gt; setLegendView(false);&lt;BR /&gt; break;&lt;BR /&gt; default:&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;centerPt = view.center;&lt;BR /&gt; &lt;BR /&gt; function setLegendView(isMobile) {&lt;BR /&gt; var toAdd = isMobile ? expandLegend : legend;&lt;BR /&gt; var toRemove = isMobile ? legend : expandLegend;&lt;/P&gt;&lt;P&gt;view.ui.remove(toRemove);&lt;BR /&gt; view.ui.add(toAdd, "top-right");&lt;BR /&gt; }&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;function AddJsonToMap(jsonString) {&lt;BR /&gt; view.graphics.removeAll();&lt;/P&gt;&lt;P&gt;require(["esri/Graphic"], function (Graphic) {&lt;BR /&gt; var pointSymbol = {&lt;BR /&gt; type: "simple-marker",&lt;BR /&gt; style: "circle",&lt;BR /&gt; color: [0, 102, 51],&lt;BR /&gt; size: "16px",&lt;BR /&gt; outline: {&lt;BR /&gt; color: [0, 0, 0],&lt;BR /&gt; width: 1&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;$.each(jsonString, function (i, item) {&lt;BR /&gt; var point = {&lt;BR /&gt; type: "point",&lt;BR /&gt; longitude: item.X,&lt;BR /&gt; latitude: item.Y&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;var pointGraphic = new Graphic({&lt;BR /&gt; geometry: point,&lt;BR /&gt; symbol: pointSymbol,&lt;BR /&gt; popupTemplate: {&lt;BR /&gt; title: item.Description,&lt;BR /&gt; content: BuildInfoWindow(item)&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.graphics.add(pointGraphic);&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function BuildInfoWindow(item) {&lt;BR /&gt; var iw = "&amp;lt;table&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;b&amp;gt;District: &amp;lt;/b&amp;gt;" + item.District;&lt;BR /&gt; iw += "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;b&amp;gt;Beat: &amp;lt;/b&amp;gt;" + item.Beat;&lt;BR /&gt; iw += "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;b&amp;gt;Case Number: &amp;lt;/b&amp;gt;&amp;lt;a href='https://arlingtonpd.org/webapps/PublicReportForMap?CaseNumber=" + item.CaseNumber + "' target='_blank'&amp;gt;" + item.CaseNumber + "&amp;lt;/a&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;b&amp;gt;Date Time Occurred: &amp;lt;/b&amp;gt;" + item.DateOccurred;&lt;BR /&gt; iw += "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";&lt;BR /&gt; iw += "&amp;lt;/table&amp;gt;";&lt;/P&gt;&lt;P&gt;return iw;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function ResetMap() {&lt;BR /&gt; view.graphics.removeAll();&lt;/P&gt;&lt;P&gt;require(["esri/geometry/Point"], function (Point) {&lt;BR /&gt; var center = new Point({&lt;BR /&gt; latitude: centerPt.latitude,&lt;BR /&gt; longitude: centerPt.longitude&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.goTo({&lt;BR /&gt; target: center,&lt;BR /&gt; zoom: 12&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 18:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167140#M15512</guid>
      <dc:creator>CurtisSpurlock</dc:creator>
      <dc:date>2020-02-12T18:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Not Showing Content On Mobile Devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167141#M15513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried setting &lt;CODE&gt;view.popup.collapseEnabled: false&lt;/CODE&gt;?&lt;/P&gt;&lt;P&gt;The popup will automatically collapse when it has reached its breakpoint so that you will only see the title, unless this property is set to false. Let me know if this works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't able to repro the issue with your code because it looks like AddJsonToMap() is never called, which&amp;nbsp;should create&amp;nbsp;the graphics that have the popupTemplate set.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 23:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167141#M15513</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2020-02-12T23:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Not Showing Content On Mobile Devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167142#M15514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setting collapseEnabled to false fixed the issue.&amp;nbsp; Thanks Anne for all your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-not-showing-content-on-mobile-devices/m-p/167142#M15514</guid>
      <dc:creator>CurtisSpurlock</dc:creator>
      <dc:date>2020-02-13T16:29:41Z</dc:date>
    </item>
  </channel>
</rss>

