<?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: Popups and Zoom are Not in Correct Spot in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715253#M66479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was having the same problem and as soon as I called parser.parse() instead of parsing on load this fix my issue.&amp;nbsp; Thank you very much!&amp;nbsp; It was driving me nuts because as soon as I resized my browser window everything was working properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 14:12:03 GMT</pubDate>
    <dc:creator>RyanGraves</dc:creator>
    <dc:date>2014-03-25T14:12:03Z</dc:date>
    <item>
      <title>Popups and Zoom are Not in Correct Spot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715247#M66473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been updating my app to v3.7 and I'm getting some odd behavior in my popups and zoom. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The popups show a couple inches to the top and right of where I click. The Zoom centers similarly to the top and right of wherever my mouse is. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first I thought it might be a projection issue with some of my services, but I have (I think) ruled that out because I noticed that once I resize the map, the issue goes away and the popups and zoom are in the correct spot. I'm not sure where to go from here, any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My app is &lt;/SPAN&gt;&lt;A href="https://www.marioncountyfl.org/gisproduction/test/viewernew.html"&gt;HERE&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 19:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715247#M66473</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2013-10-17T19:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Popups and Zoom are Not in Correct Spot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715248#M66474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is one issue in your code. The position of "esri/dijit/Popup" module does not match the position in the alias list. Change the top part to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; require([
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/map", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/BasemapToggle", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/HomeButton",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/config",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/Popup",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/dijit", // optimize: load dijit layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/BorderContainer", //HTML CONTAINER
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/ContentPane", //CONTAINER
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/TitlePane", //CONTAINER
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/arcgis/utils", //Elements
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/form/ToggleButton", //HTML
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/form/Button", //HTML
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/Dialog", //Required for Custom Splash Page
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/BasemapGallery", // Required for Basemap Gallery
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/AccordionContainer",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/fx", // needed if use jsapi 3.0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "agsjs/dijit/TOC",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/ready",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!"
&amp;nbsp;&amp;nbsp;&amp;nbsp; ], function(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map, BasemapToggle, HomeButton, esriConfig, Popup
&amp;nbsp;&amp;nbsp;&amp;nbsp; )&amp;nbsp; {&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715248#M66474</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2021-12-12T06:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Popups and Zoom are Not in Correct Spot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715249#M66475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for pointing that out. I have made the change, however, the issue still is there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 11:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715249#M66475</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2013-10-18T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Popups and Zoom are Not in Correct Spot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715250#M66476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The main cause is that the map object is initialized before the dom elements are ready and parsed. When the map object is created, the dom element "map" occupies the whole page. That causes the offset of the popup. Do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change djConfig to below. Note you forgot to set async to true which is required for AMD mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var djConfig = {
&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad: &lt;STRONG&gt;false&lt;/STRONG&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;async: true,&lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; packages: [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "agsjs",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "location": location.pathname.replace(/\/[^/]+$/, "") + '/agsjs'
&amp;nbsp;&amp;nbsp;&amp;nbsp; }]
};&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, include "dojo/parser" to the dependency list, and set its alias to parser. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; require([
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"dojo/parser"&lt;/STRONG&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/map", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/BasemapToggle", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/HomeButton",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/config",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/Popup",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/dijit", // optimize: load dijit layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/BorderContainer", //HTML CONTAINER
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/ContentPane", //CONTAINER
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/TitlePane", //CONTAINER
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/arcgis/utils", //Elements
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/form/ToggleButton", //HTML
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/form/Button", //HTML
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/Dialog", //Required for Custom Splash Page
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/BasemapGallery", // Required for Basemap Gallery
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/AccordionContainer",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/fx", // needed if use jsapi 3.0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "agsjs/dijit/TOC",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/ready",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!"
&amp;nbsp;&amp;nbsp;&amp;nbsp; ], function(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;parser&lt;/STRONG&gt;, Map, BasemapToggle, HomeButton, esriConfig, Popup
&amp;nbsp;&amp;nbsp;&amp;nbsp; )&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;parser.parse();&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // parse the page before the map is initialized.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:50:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715250#M66476</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2021-12-12T16:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Popups and Zoom are Not in Correct Spot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715252#M66478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These new errors must be introduced by async: true. Your code looks kind of mixed mode: partial AMD and partial legacy. You might need to make it either pure AMD or legacy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 13:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715252#M66478</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2013-10-18T13:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Popups and Zoom are Not in Correct Spot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715253#M66479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was having the same problem and as soon as I called parser.parse() instead of parsing on load this fix my issue.&amp;nbsp; Thank you very much!&amp;nbsp; It was driving me nuts because as soon as I resized my browser window everything was working properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 14:12:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715253#M66479</guid>
      <dc:creator>RyanGraves</dc:creator>
      <dc:date>2014-03-25T14:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Popups and Zoom are Not in Correct Spot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715254#M66480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to help:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 14:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715254#M66480</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2014-03-25T14:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Popups and Zoom are Not in Correct Spot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715251#M66477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great explanation. Thanks for your help. I'm sure this fixes the original issue, however, making those changes introduces a few new errors and stops the map from displaying properly. Most likely due to other issues in my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;l
SCRIPT438: Object doesn't support property or method 'require' 
identifyMultiple.js, line 4 character 1
dojo/parser::parse() errorError: Unable to resolve constructor for: 'dojox.grid.DataGrid' 
Error parsing in _ContentSetter#undefinedError: Unable to resolve constructor for: 'dojox.grid.DataGrid' 
Error undefined running custom onLoad code: This deferred has already been resolved 
LOG: [object Object] 
LOG: toggle[Widget esri.dijit.BasemapToggle, BasemapToggle] 
TypeError: Unable to set value of the property 'canSort': object is null or undefined 
LOG: message:Unable to set value of the property 'canSort': object is null or undefined 
LOG: description:Unable to set value of the property 'canSort': object is null or undefined 
LOG: number:-2146823281 
LOG: info:Unable to set value of the property 'canSort': object is null or undefined 
LOG: name:TypeError 
LOG: . 
LOG: TOC loaded 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll start sorting through those in firebug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-and-zoom-are-not-in-correct-spot/m-p/715251#M66477</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2021-12-12T06:38:00Z</dc:date>
    </item>
  </channel>
</rss>

