<?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: The Measurement Widget is not working alongside my other widgets in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287185#M81100</link>
    <description>&lt;P&gt;Please click the "Accept as Solution" button on the post that answered your question. This will help others who may be searching for the same question.&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 11:47:54 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2023-05-09T11:47:54Z</dc:date>
    <item>
      <title>The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1286747#M81078</link>
      <description>&lt;P&gt;I am creating a web application and I require the measurement widget, however it does not work alongside my other widgets. It does show up but it does not function and I am not able to see dots, initial points or lines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see application in codepen:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/chesouye/pen/ZEqrZwg" target="_blank" rel="noopener"&gt;https://codepen.io/chesouye/pen/ZEqrZwg&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 May 2023 15:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1286747#M81078</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-05-08T15:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1286825#M81081</link>
      <description>&lt;P&gt;I saw two problems in your script. The first was easily seen in the browser's &lt;A href="https://screenful.com/how-to-open-the-browser-console" target="_self"&gt;developer console&lt;/A&gt;. You should learn how to use that to see what's going on with your code. The error "&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Uncaught &lt;SPAN class=""&gt;ReferenceError: &lt;SPAN class=""&gt;activeWidget is not defined" popup up in the console.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It looks like you copied the setActiveFunction script directly from &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-measurement-2d/" target="_self"&gt;this sample&lt;/A&gt;. You left off the line of code to initialize the variable "activeWidget". In the sample, that's on line 63&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let activeWidget = null;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, just adding that didn't fix the code. Another error popped up, suggesting that the version of the API was not current. Looking at your HTML code, you are using a older version of the API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;script src="https://js.arcgis.com/4.11/"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you update that to a newer version, the tool works as expect. However, you cannot update that to the most recent versions, since you are using dojo modules in your script, which were removed after 4.23. You'll have to see which previous version works best for you. And remember to keep the same version for the CSS. Currently, you are using 4.17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.17/esri/css/main.css"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 16:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1286825#M81081</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-08T16:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1286986#M81083</link>
      <description>&lt;P&gt;Thank you for responding and looking at my code. I really appreciate it. I added the changes and it made my mad completely disappear. Im not sure what I am not doing correctly please assist.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 20:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1286986#M81083</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-05-08T20:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287000#M81084</link>
      <description>&lt;P&gt;I can't tell what you've done. I've made the two edits to your Codepen: &lt;A href="https://codepen.io/chesouye/pen/ZEqrZwg?editors=0010" target="_blank"&gt;https://codepen.io/chesouye/pen/ZEqrZwg?editors=0010&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 20:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287000#M81084</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-08T20:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287011#M81085</link>
      <description>&lt;P&gt;&amp;nbsp;I saw however the measurement widget still does not work alongside the other widgets.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 21:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287011#M81085</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-05-08T21:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287015#M81086</link>
      <description>&lt;P&gt;Some of the other items were broken on the Codepen site that you set up, but when I made those two changes, both the area and distance measurement widgets worked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="area.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70175i832FFB5E779FA1F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="area.png" alt="area.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 21:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287015#M81086</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-08T21:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287018#M81087</link>
      <description>&lt;P&gt;I checked the codepen just now and it didnt work. Im not sure what is happening. I also fixed the css and the other version as suggested.&amp;nbsp;&lt;A href="https://codepen.io/chesouye/pen/ZEqrZwg" target="_blank"&gt;https://codepen.io/chesouye/pen/ZEqrZwg&lt;/A&gt;&amp;nbsp;When I click on the measurement icons in the top right it is not functional. No points or lines come up and hence I am not able to measure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 21:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287018#M81087</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-05-08T21:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287022#M81088</link>
      <description>&lt;P&gt;It looks like I gave you the wrong URL. This this one: &lt;A href="https://codepen.io/kenbuja/pen/GRYxgMm" target="_blank"&gt;https://codepen.io/kenbuja/pen/GRYxgMm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 21:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287022#M81088</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-08T21:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287025#M81089</link>
      <description>&lt;P&gt;Thank you so much. I really appreciate it. Its working well. Again, Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 21:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287025#M81089</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-05-08T21:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287185#M81100</link>
      <description>&lt;P&gt;Please click the "Accept as Solution" button on the post that answered your question. This will help others who may be searching for the same question.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 11:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287185#M81100</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-09T11:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287683#M81109</link>
      <description>&lt;P&gt;I have another concern. How do i remove the ArcGIS World Geocoding Service option from my feature search?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 13:33:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287683#M81109</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-05-10T13:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287706#M81110</link>
      <description>&lt;P&gt;Try setting sources to an empty array, then setting it separately&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  var search = new Search({
    view: view,
    allPlaceholder: "Search",
    sources: []
  });

search.viewModel.sources = [{
        layer: parish,
        searchFields: ["PARISH_NAM"],
        displayField: "PARISH_NAM",
        exactMatch: false,
        outFields: ["OBJECTID", "PARISH_NAM"],
        name: "Parishes",
        placeholder: "example: Kingston"
      },
      {
        layer: ed,
        searchFields: ["ED_NAME"],
        displayField: "ED_NAME",
        exactMatch: false,
        outFields: ["ED_NO", "ED_NAME"],
        name: "Electoral Divisions",
        placeholder: "example: Kingston"
      },
      {
        layer: consti,
        searchFields: ["CONST_NAME"],
        displayField: "CONST_NAME",
        exactMatch: false,
        outFields: ["CONST_NO", "CONST_NAME"],
        name: "Constituency",
        placeholder: "example: Kingston Central"
      },
      {
        layer: ed_colored,
        searchFields: ["Name", "Party"],
        suggestionTemplate: "{Name}, Party: {Party}",
        exactMatch: false,
        outFields: ["*"],
        placeholder: "Anomalies",
        name: "Anomalies",
        zoomScale: 500000,
        resultSymbol: {
          type: "picture-marker", // autocasts as new PictureMarkerSymbol()
          url:
            "https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/live/images/senate.png",
          height: 36
        }
      }];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 14:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287706#M81110</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-10T14:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287738#M81112</link>
      <description>&lt;P&gt;It still is showing the geocoding service.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 15:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287738#M81112</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-05-10T15:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: The Measurement Widget is not working alongside my other widgets</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287744#M81113</link>
      <description>&lt;P&gt;&amp;nbsp;I would suggest opening another question on this then.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 15:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-measurement-widget-is-not-working-alongside-my/m-p/1287744#M81113</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-10T15:17:06Z</dc:date>
    </item>
  </channel>
</rss>

