共通の HTML レイアウトテンプレート(テンプレートは2つの別々のマップページで使用)に https://unpkg.com/esri-leaflet@3.0.4/dist/esri-leaflet.js と js.arcgis.com/4.19 の両方を参照/含めると、ESRI JS の読み込みが L.esri を別のものに置き換えてしまいます。
この2つのパッケージに異なるグローバル名を使う方法はありますか?
そうでなければ、レイアウトテンプレートを複製することになります。
何かアドバイスをいただけると幸いです。
Hi
Since I asked the question I got it working. (The leaflet side definitely 100%)
I'm working on an intermittent dojo require(["dojo/ready"] issue that fail to load my own custom dojo package that use the ESRI JS API.
The times that my dojo package loads, both map frameworks work with two maps on the same page. Dont ask me to explain why one would do that... 🙂
The order of references are important it seems.
I will give a complete example once it got my loading issue resolved, just to make sure its not related.
Just an update
Hi, thanks for the question. Could you please post an example code that demonstrates the error/problem that you're seeing? You can either post the HTML/JS/CSS right into a message here, or you can use a service like JSBin or Codepen or Stackblitz. Thanks!
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.