<?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: Custom widget with custom popup in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464006#M12196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I think post create is to early in the widgets life cycle try startup instead&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2015 03:30:43 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-11-11T03:30:43Z</dc:date>
    <item>
      <title>Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464005#M12195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to assign a custom popup to the map.infowindow in a custom widget, but when I do this I receive a console error saying "cannot read property 'toScreen' of undefined at p.show". Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;_customPopup: new Popup({
&amp;nbsp; fillSymbol: this._sfsParcel,
&amp;nbsp; highlight: true,
&amp;nbsp; lineSymbol: this._slsRoad,
&amp;nbsp; markerSymbol: this._smsPoint
}, domConstruct.create("div")),


postCreate: function () {
&amp;nbsp; this.inherited(arguments);
&amp;nbsp; this._config = this.config;
&amp;nbsp; this.map = this.map;
&amp;nbsp; this.map.infoWindow = this._customPopup;
},&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Does anyone see what could be wrong here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464005#M12195</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2021-12-11T20:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464006#M12196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I think post create is to early in the widgets life cycle try startup instead&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 03:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464006#M12196</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-11T03:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464007#M12197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving the code to startup didn't work. Same error as before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 03:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464007#M12197</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-11-11T03:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464008#M12198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I need to see your full widget code can you zip it up and attach, so I can look into this. I have seen at least one other person talk about this but I have not run into this myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 15:05:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464008#M12198</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-11T15:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464009#M12199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go, Robert. Thanks for looking into this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 21:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464009#M12199</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-11-11T21:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464010#M12200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Where is Bloodhound coming from in your code? I don't see a require for it. I also don't see how you are loading jQuery.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 23:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464010#M12200</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-11T23:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464011#M12201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bloodhound is included in &lt;EM&gt;typeahead.bundle.min.js&lt;/EM&gt; which is in &lt;EM&gt;\stemapp\libs\storejs&lt;/EM&gt; and loaded by &lt;EM&gt;\stemapp\libs\main.js&lt;/EM&gt; which has this code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;define(["./usng/usng"
&amp;nbsp; , "./storejs/json"
&amp;nbsp; , "./storejs/store"
&amp;nbsp; , "./storejs/bootstrap.min"
&amp;nbsp; , "./storejs/typeahead.bundle.min"
&amp;nbsp; ]
, function(){
});
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;jquery-2.1.4.min.js&lt;/EM&gt; is in &lt;EM&gt;\stemapp\libs&lt;/EM&gt; and is loaded by \&lt;EM&gt;stemapp\init.js&lt;/EM&gt; which contains this code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;resources = resources.concat([
&amp;nbsp;&amp;nbsp; window.apiUrl + 'dojo/resources/dojo.css',
&amp;nbsp;&amp;nbsp; window.apiUrl + 'dijit/themes/claro/claro.css',
&amp;nbsp;&amp;nbsp; window.apiUrl + 'esri/css/esri.css',
&amp;nbsp;&amp;nbsp; window.apiUrl + 'dojox/layout/resources/ResizeHandle.css',
&amp;nbsp;&amp;nbsp; window.path + 'jimu.js/css/jimu-theme.css',
&amp;nbsp;&amp;nbsp; window.path + 'libs/npdccss/typeahead.css',
&amp;nbsp;&amp;nbsp; window.path + 'libs/npdccss/bootstrap.min.css',
&amp;nbsp;&amp;nbsp; window.path + 'libs/npdccss/bootstrap-theme.min.css',
&amp;nbsp;&amp;nbsp; window.path + 'libs/jquery-2.1.4.min.js'
]);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This discussion describes how I came to use these methods of loading other libraries.&lt;/P&gt;&lt;P&gt; &lt;A href="https://community.esri.com/thread/158966" target="_blank"&gt;Uncaught Error: Bootstrap's JavaScript requires jQuery&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464011#M12201</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2021-12-11T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464012#M12202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; OK, I will look into that. Can you do a console.info on the this.map object and see if it is actually a map object. I seem to think that the other time I saw this the person was using several third party libraries.&amp;nbsp; I wonder if they could be interfering with the widgets this.map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 03:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464012#M12202</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-12T03:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464013#M12203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, console.info shows that this.map is a map object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 20:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464013#M12203</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2015-11-12T20:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464014#M12204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might have been me that you are referring to when you talk about the person using the 3rd party libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the code I've posted above to this below fixes the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//this.map.infoWindow = this._customPopup;
this.map._mapParams.infoWindow = this._customPopup;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know we should avoid the underscored objects, but it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464014#M12204</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2021-12-11T20:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom widget with custom popup</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464015#M12205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Strange but at least it works for you for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 23:20:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/custom-widget-with-custom-popup/m-p/464015#M12205</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-18T23:20:59Z</dc:date>
    </item>
  </channel>
</rss>

