<?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 map info window wont appear in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318772#M29378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I'm trying to make a info window appear on my map like the sample shown here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/map_infowindow.html" title="https://developers.arcgis.com/javascript/3/jssamples/map_infowindow.html"&gt;Show an info window | ArcGIS API for JavaScript 3.23&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference is that I'm using dojo templates in my app --&amp;nbsp; my html template (Start.htm) is:&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;BR /&gt; &amp;lt;div id="mapDivStart" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"&lt;BR /&gt; style="width: 100%; height: 100%; margin: 0;"&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my javascript code is:&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "dojo/_base/declare",&lt;BR /&gt; "dojo/_base/lang",&lt;BR /&gt; "dijit/_WidgetBase",&lt;BR /&gt; "dijit/_TemplatedMixin",&lt;BR /&gt; "dijit/_WidgetsInTemplateMixin",&lt;BR /&gt; "dojo/text!Templates/Start.htm"&lt;BR /&gt;], function (&lt;BR /&gt; Map,&lt;BR /&gt; declare, lang, _WidgetBase, _TemplatedMixin,&lt;BR /&gt; _WidgetsInTemplateMixin, StartTpl) {&lt;BR /&gt; return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {&lt;BR /&gt; templateString: StartTpl,&lt;BR /&gt; map: "",&lt;BR /&gt; &lt;BR /&gt; postCreate: function () {&lt;BR /&gt; //map&lt;BR /&gt; map = new Map("mapDivStart", {&lt;BR /&gt; basemap: "topo",&lt;BR /&gt; center: [-117.8, 34.0],&lt;BR /&gt; //center: [-122.4, 34.2],&lt;BR /&gt; zoom: 9,&lt;BR /&gt; &lt;BR /&gt; });&lt;BR /&gt; map.on("load", function () {&lt;BR /&gt; map.infoWindow.resize(250, 100);&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.on("click", this.addPoint);&lt;BR /&gt; &lt;BR /&gt; },&lt;BR /&gt; addPoint:function(evt){&lt;BR /&gt; var latitude = evt.mapPoint.getLatitude();&lt;BR /&gt; var longitude = evt.mapPoint.getLongitude();&lt;BR /&gt; map.infoWindow.setTitle("Coordinates");&lt;BR /&gt; map.infoWindow.setContent(&lt;BR /&gt; "lat/lon : " + latitude.toFixed(2) + ", " + longitude.toFixed(2) +&lt;BR /&gt; "&amp;lt;br&amp;gt;screen x/y : " + evt.screenPoint.x + ", " + evt.screenPoint.y&lt;BR /&gt; );&lt;BR /&gt; map.infoWindow.show(evt.mapPoint, map.getInfoWindowAnchor(evt.screenPoint));&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug in the console I get no errors and I see values for all the variables (evt, map, etc..)&amp;nbsp; The infoWindow just never appears&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what could be happening here?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2017 00:15:04 GMT</pubDate>
    <dc:creator>PeteVitt</dc:creator>
    <dc:date>2017-12-15T00:15:04Z</dc:date>
    <item>
      <title>map info window wont appear</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318772#M29378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I'm trying to make a info window appear on my map like the sample shown here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/map_infowindow.html" title="https://developers.arcgis.com/javascript/3/jssamples/map_infowindow.html"&gt;Show an info window | ArcGIS API for JavaScript 3.23&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference is that I'm using dojo templates in my app --&amp;nbsp; my html template (Start.htm) is:&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;BR /&gt; &amp;lt;div id="mapDivStart" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"&lt;BR /&gt; style="width: 100%; height: 100%; margin: 0;"&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my javascript code is:&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "dojo/_base/declare",&lt;BR /&gt; "dojo/_base/lang",&lt;BR /&gt; "dijit/_WidgetBase",&lt;BR /&gt; "dijit/_TemplatedMixin",&lt;BR /&gt; "dijit/_WidgetsInTemplateMixin",&lt;BR /&gt; "dojo/text!Templates/Start.htm"&lt;BR /&gt;], function (&lt;BR /&gt; Map,&lt;BR /&gt; declare, lang, _WidgetBase, _TemplatedMixin,&lt;BR /&gt; _WidgetsInTemplateMixin, StartTpl) {&lt;BR /&gt; return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {&lt;BR /&gt; templateString: StartTpl,&lt;BR /&gt; map: "",&lt;BR /&gt; &lt;BR /&gt; postCreate: function () {&lt;BR /&gt; //map&lt;BR /&gt; map = new Map("mapDivStart", {&lt;BR /&gt; basemap: "topo",&lt;BR /&gt; center: [-117.8, 34.0],&lt;BR /&gt; //center: [-122.4, 34.2],&lt;BR /&gt; zoom: 9,&lt;BR /&gt; &lt;BR /&gt; });&lt;BR /&gt; map.on("load", function () {&lt;BR /&gt; map.infoWindow.resize(250, 100);&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.on("click", this.addPoint);&lt;BR /&gt; &lt;BR /&gt; },&lt;BR /&gt; addPoint:function(evt){&lt;BR /&gt; var latitude = evt.mapPoint.getLatitude();&lt;BR /&gt; var longitude = evt.mapPoint.getLongitude();&lt;BR /&gt; map.infoWindow.setTitle("Coordinates");&lt;BR /&gt; map.infoWindow.setContent(&lt;BR /&gt; "lat/lon : " + latitude.toFixed(2) + ", " + longitude.toFixed(2) +&lt;BR /&gt; "&amp;lt;br&amp;gt;screen x/y : " + evt.screenPoint.x + ", " + evt.screenPoint.y&lt;BR /&gt; );&lt;BR /&gt; map.infoWindow.show(evt.mapPoint, map.getInfoWindowAnchor(evt.screenPoint));&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug in the console I get no errors and I see values for all the variables (evt, map, etc..)&amp;nbsp; The infoWindow just never appears&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what could be happening here?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 00:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318772#M29378</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2017-12-15T00:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: map info window wont appear</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318773#M29379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pete,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So is this being used in a larger parent code project or some iFrame? Have you tried to put a console.log in your map click event handler to see if you are getting the click event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 14:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318773#M29379</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-15T14:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: map info window wont appear</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318774#M29380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert - yes, this is part of a larger project.&amp;nbsp; I've confirmed that the addPoint function fires, and I see no errors in any of the code that runs in the function.&amp;nbsp; I have several other maps in the project that run pop-ups off clicks of feature layers -- this one is puzzling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 17:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318774#M29380</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2017-12-15T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: map info window wont appear</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318775#M29381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pete,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Just try using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;map.infoWindow.show(evt.mapPoint);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 17:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318775#M29381</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-15T17:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: map info window wont appear</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318776#M29382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert - the popup doesnt appear when I just use the code you suggest above (although it does run).&amp;nbsp; I guess I'll try removing this page from the rest of my application and try running it by itself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 16:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318776#M29382</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2017-12-18T16:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: map info window wont appear</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318777#M29383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out what it was -- I have 2 maps in my app, both&amp;nbsp;defined as&amp;nbsp;global variables named 'map' -- once I changed the name of the second map it worked fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 17:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-info-window-wont-appear/m-p/318777#M29383</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2017-12-18T17:38:17Z</dc:date>
    </item>
  </channel>
</rss>

