私はesri-leafletアプリを持っており、cloudfrontベース(タイル)マップを使用すると動作しますが、Stamenベースマップに変更するとエラーが発生します。<\/P>
<\/P>
(以下のリンクを参照してください)<\/P>
ICGC WEB PORTAL<\/A> ....<\/SPAN><\/P> <\/P>最初の(News)ボタンを見るためにボタンをクリックすると、次のエラーが発生します:<\/P>Uncaught TypeError: Cannot read property 'trim' of undefined<\/P>o.Util.trim @ leaflet.js:5<\/P>cleanUrl @ Util.js:387<\/P>exports.Task.L.Class.extend.initialize @ Task.js:28<\/P>o.Class.extend.e @ leaflet.js:5<\/P>query @ Query.js:229<\/P>(anonymous function) @ icgcWebMap5.html:261<\/P>n.event.dispatch @ jquery.js:4435<\/P>n.event.add.r.handle @ jquery.js:4121<\/P> <\/P> <\/P>そして他のどのボタンをクリックしても、次のエラーが発生します:<\/P>Uncaught TypeError: Cannot read property 'query' of undefined<\/P>(anonymous function) @ icgcWebMap5.html:329<\/P>n.event.dispatch @ jquery.js:4435<\/P>n.event.add.r.handle @ jquery.js:4121<\/P> <\/P>なぜこれが起こっているのか全くわかりません。どんな助けでも大変感謝します。<\/P> <\/P>ありがとうございます<\/P>Chris<\/P>
Hey John,
My bad!! I was using an old version of my app
Thanks
Chris
please reread my response to your previous geonet post, as you encountering the exact same problem.
Updating an esri-leaftlet app
you are still passing the url of the service you'd like to query as a plain string to L.esri.Query(), rather than within the options object which is currently required.
var query = L.esri.query(tableURL).where("type like '" + buttonType.value + "'"); // at line 257 needs to be var query = L.esri.query( { url: tableURL } ).where("type like '" + buttonType.value + "'");
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.