<?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: Updating an esri-leaftlet app in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/updating-an-esri-leaftlet-app/m-p/765104#M467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as explained in the esri-leaflet &lt;A href="https://github.com/Esri/esri-leaflet/releases/tag/v1.0.0" rel="nofollow noopener noreferrer" target="_blank"&gt;1.0.0 release notes&lt;/A&gt;, we introduced the breaking change that tasks and layers constructors now expect the url of the corresponding resource to be provided within an options object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;L.esri.Tasks.query(yourUrl)
// becomes
L.esri.Tasks.query({ url: yourUrl })&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the API reference for &lt;A href="http://esri.github.io/esri-leaflet/api-reference/tasks/query.html" rel="nofollow noopener noreferrer" target="_blank"&gt;L.esri.Tasks.query&lt;/A&gt; reflects this change as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can find information about an equivalent change in the release notes for esri-leaflet-related &lt;A href="https://github.com/jgravois/esri-leaflet-related/releases/tag/v0.0.1-beta.2" rel="nofollow noopener noreferrer" target="_blank"&gt;0.0.1-beta.2&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:29:40 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2021-12-12T08:29:40Z</dc:date>
    <item>
      <title>Updating an esri-leaftlet app</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/updating-an-esri-leaftlet-app/m-p/765103#M466</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm tring to update an app I created with esri-leaflet and esri-leaflet-related.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Based on what I've read in the notes on the releases for both esri-leaflet and esri-leaft-related.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've updated my app to point to the cdn versions of (see below):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;leaflet: version 0.7.3&lt;/P&gt;
&lt;P&gt;esri-leaflet: version 1.0..0&lt;/P&gt;
&lt;P&gt;esri-leatlet-related:&amp;nbsp; version 1.0.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;script src="//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;script src="//cdn.jsdelivr.net/leaflet.esri/1.0.0/esri-leaflet.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;script src="//cdn.jsdelivr.net/leaflet.esri.related/1.0.2/esri-leaflet-related.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I am getting the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TypeError: a is undefined&lt;/P&gt;
&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://cdn.jsdelivr.net/leaflet.esri/1.0.0/esri-leaflet.js" target="_blank" rel="nofollow noopener"&gt;http://cdn.jsdelivr.net/leaflet.esri/1.0.0/esri-leaflet.js&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Line 20&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: I'm clicking on a button that triggers following (partial script):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$('#NSM').click(function(){&lt;/P&gt;
&lt;P&gt;buttonPicked = 'NSM';&lt;/P&gt;
&lt;P&gt;buttonType = document.getElementById('NSM');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var query = L.esri.Tasks.query(tableURL).where("type like '" + buttonType.value + "'");&lt;/P&gt;
&lt;P&gt;var rquery = L.esri.Tasks.queryRelated(tableURL).relationshipId("0");&lt;/P&gt;
&lt;P&gt;query.ids(function(error, ids, response)&lt;/P&gt;
&lt;P&gt;{ ......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any ideas as to what's happening would be appreciated&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;
&lt;P&gt;P.S Please let me know if need to&amp;nbsp; a copy of my script uploaded&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/updating-an-esri-leaftlet-app/m-p/765103#M466</guid>
      <dc:creator>joepublic</dc:creator>
      <dc:date>2023-08-28T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Updating an esri-leaftlet app</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/updating-an-esri-leaftlet-app/m-p/765104#M467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as explained in the esri-leaflet &lt;A href="https://github.com/Esri/esri-leaflet/releases/tag/v1.0.0" rel="nofollow noopener noreferrer" target="_blank"&gt;1.0.0 release notes&lt;/A&gt;, we introduced the breaking change that tasks and layers constructors now expect the url of the corresponding resource to be provided within an options object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;L.esri.Tasks.query(yourUrl)
// becomes
L.esri.Tasks.query({ url: yourUrl })&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the API reference for &lt;A href="http://esri.github.io/esri-leaflet/api-reference/tasks/query.html" rel="nofollow noopener noreferrer" target="_blank"&gt;L.esri.Tasks.query&lt;/A&gt; reflects this change as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can find information about an equivalent change in the release notes for esri-leaflet-related &lt;A href="https://github.com/jgravois/esri-leaflet-related/releases/tag/v0.0.1-beta.2" rel="nofollow noopener noreferrer" target="_blank"&gt;0.0.1-beta.2&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:29:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/updating-an-esri-leaftlet-app/m-p/765104#M467</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-12T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating an esri-leaftlet app</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/updating-an-esri-leaftlet-app/m-p/765105#M468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John!!&lt;/P&gt;&lt;P&gt;I re-read the documentation after reading your reply and everything is working again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 15:51:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/updating-an-esri-leaftlet-app/m-p/765105#M468</guid>
      <dc:creator>joepublic</dc:creator>
      <dc:date>2015-08-26T15:51:41Z</dc:date>
    </item>
  </channel>
</rss>

