<?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 Using AGS Map Services and JS Errors in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-ags-map-services-and-js-errors/m-p/264977#M24495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to JavaScript but I managed to modify the sample code from the "Search using suggestion template" to create what I needed.&amp;nbsp; There are two issues I'm having, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I can only get the layers to display and be searchable if they are uploaded to ArcGIS Online.&amp;nbsp; When I reference&amp;nbsp;the map services on our AGS in the code it doesn't work.&amp;nbsp; Is it because we are still using AGS 10.2.2 or will this not work with map services perhaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When our website administrator adds the code to our website, it generates JavaScript errors and the map will only load correctly maybe half the time.&amp;nbsp; It requires several refreshes to get it to load completely with the labels and search box sometimes.&amp;nbsp; Here's what he told me&amp;nbsp;if this makes sense to anyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;It is a conflict between ArcGIS and two JS files from WordPress.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;Standalone, the ArcGIS map code doesn’t generate a JS error.&amp;nbsp; But mix it in with our WordPress framework and BAM!&amp;nbsp; JS error.&amp;nbsp; It is one of these two files:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;/wp-includes/js/imagesloaded.min.js?ver=3.2.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;/wp-includes/js/masonry.min.js?ver=3.3.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;Error Message: &lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;“TypeError: b is undefined (masonry file 11:43)”&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;John&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2017 15:36:38 GMT</pubDate>
    <dc:creator>JohnMax</dc:creator>
    <dc:date>2017-02-01T15:36:38Z</dc:date>
    <item>
      <title>Using AGS Map Services and JS Errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-ags-map-services-and-js-errors/m-p/264977#M24495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to JavaScript but I managed to modify the sample code from the "Search using suggestion template" to create what I needed.&amp;nbsp; There are two issues I'm having, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I can only get the layers to display and be searchable if they are uploaded to ArcGIS Online.&amp;nbsp; When I reference&amp;nbsp;the map services on our AGS in the code it doesn't work.&amp;nbsp; Is it because we are still using AGS 10.2.2 or will this not work with map services perhaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When our website administrator adds the code to our website, it generates JavaScript errors and the map will only load correctly maybe half the time.&amp;nbsp; It requires several refreshes to get it to load completely with the labels and search box sometimes.&amp;nbsp; Here's what he told me&amp;nbsp;if this makes sense to anyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;It is a conflict between ArcGIS and two JS files from WordPress.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;Standalone, the ArcGIS map code doesn’t generate a JS error.&amp;nbsp; But mix it in with our WordPress framework and BAM!&amp;nbsp; JS error.&amp;nbsp; It is one of these two files:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;/wp-includes/js/imagesloaded.min.js?ver=3.2.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;/wp-includes/js/masonry.min.js?ver=3.3.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;Error Message: &lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;“TypeError: b is undefined (masonry file 11:43)”&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: medium; font-family: Calibri;"&gt;John&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 15:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-ags-map-services-and-js-errors/m-p/264977#M24495</guid>
      <dc:creator>JohnMax</dc:creator>
      <dc:date>2017-02-01T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGS Map Services and JS Errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-ags-map-services-and-js-errors/m-p/264978#M24496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Well I can answer question one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the suggest capability requires AGS 10.3 minumum&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;10.3 feature layer that supports pagination, i.e. supportsPagination = true&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is stated at the top of the JS API Search dijit doc:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/search-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/search-amd.html"&gt;Search | API Reference | ArcGIS API for JavaScript 3.19&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 15:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-ags-map-services-and-js-errors/m-p/264978#M24496</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-01T15:46:40Z</dc:date>
    </item>
  </channel>
</rss>

