私はesri-leafletとesri-leaflet-relatedで作成したアプリを更新しようとしています。 <\/SPAN><\/P>esri-leafletとesri-leaflet-relatedの両方のリリースノートで読んだ内容に基づいています。<\/SPAN><\/P> <\/P>以下のCDNバージョンを指すようにアプリを更新しました(下記参照):<\/SPAN><\/P> <\/P>leaflet: バージョン 0.7.3<\/P>esri-leaflet: バージョン 1.0.0<\/P>esri-leaflet-related: バージョン 1.0.2<\/P> <\/P><script src="\/\/cdn.jsdelivr.net\/leaflet\/0.7.3\/leaflet.js"><\/script><\/P><script src="\/\/cdn.jsdelivr.net\/leaflet.esri\/1.0.0\/esri-leaflet.js"><\/script><\/P><script src="\/\/cdn.jsdelivr.net\/leaflet.esri.related\/1.0.2\/esri-leaflet-related.js"><\/script><\/P> <\/P>しかし、次のエラーが発生しています:<\/P> <\/P>TypeError: a is undefined<\/P>http:\/\/cdn.jsdelivr.net\/leaflet.esri\/1.0.0\/esri-leaflet.js<\/A><\/P> 20行目<\/P> <\/P>注:私は次の(部分的なスクリプト)をトリガーするボタンをクリックしています:<\/P> <\/P>$('#NSM').click(function(){<\/P>buttonPicked = 'NSM';<\/P>buttonType = document.getElementById('NSM');<\/P> <\/P>var query = L.esri.Tasks.query(tableURL).where("type like '" + buttonType.value + "'");<\/P>var rquery = L.esri.Tasks.queryRelated(tableURL).relationshipId("0");<\/P>query.ids(function(error, ids, response)<\/P>{ ......<\/P> <\/P>何が起こっているのかについてのアイデアがあれば感謝します。<\/P>よろしくお願いします。<\/P>Chris<\/P>P.S スクリプトのコピーをアップロードする必要があればお知らせください。<\/P>
20行目<\/P>
<\/P>
注:私は次の(部分的なスクリプト)をトリガーするボタンをクリックしています:<\/P>
$('#NSM').click(function(){<\/P>
buttonPicked = 'NSM';<\/P>
buttonType = document.getElementById('NSM');<\/P>
var query = L.esri.Tasks.query(tableURL).where("type like '" + buttonType.value + "'");<\/P>
var rquery = L.esri.Tasks.queryRelated(tableURL).relationshipId("0");<\/P>
query.ids(function(error, ids, response)<\/P>
{ ......<\/P>
何が起こっているのかについてのアイデアがあれば感謝します。<\/P>
よろしくお願いします。<\/P>
Chris<\/P>
P.S スクリプトのコピーをアップロードする必要があればお知らせください。<\/P>
as explained in the esri-leaflet 1.0.0 release notes, 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
L.esri.Tasks.query(yourUrl) // becomes L.esri.Tasks.query({ url: yourUrl })
the API reference for L.esri.Tasks.query reflects this change as well.
you can find information about an equivalent change in the release notes for esri-leaflet-related 0.0.1-beta.2.
Thanks John!!
I re-read the documentation after reading your reply and everything is working again
Chris
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.