こんにちは、私はLeafletを使ってベースマップ上に表示しようとしているマップサービスがあります。そのマップサービスはパブリックで、ArcGIS Enterpriseサイトによってホストされています。動作はしますが、画像の読み込みが時々かなり遅くなります。一方、ArcGIS Onlineでは全く問題ありません。両システムが画像を取得する方法が非常に異なることに気づきました。ArcGIS Onlineにアクセスすると、例えば <\/P>
https:\/\/www.arcgis.com\/home\/webmap\/viewer.html?url=https%3A%2F%2Fpublicmap01.co.st-clair.il.us%2Farcgis%2Frest%2Fservices%2FImagery23%2FMapServer&source=sd<\/A><\/P>ズームインを始めると、次のようなURLで画像を取得していることに気づきます https:\/\/publicmap01.co.st-clair.il.us\/arcgis\/rest\/services\/Imagery23\/MapServer\/tile\/12\/1572\/1022<\/A> これらはおそらく何らかの方法でキャッシュされているため非常に高速に読み込まれます。<\/P>しかしesri-leafletはかなり異なる方法を取り、次のような画像を読み込みます https:\/\/publicmap01.co.st-clair.il.us\/arcgis\/rest\/services\/Imagery23\/MapServer\/export?bbox=-10031764.351122944%2C4658368.486921257%2C-10031413.218524259%2C4658176.200021977&size=588%2C322&dpi=96&format=png32&transparent=true&bboxSR=3857&imageSR=3857&f=image<\/A> これにはしばしば数秒かかります。<\/P>esri-leafletでキャッシュされたタイルを代わりに使用する方法はありますか?Codesandboxの例: https:\/\/codesandbox.io\/p\/sandbox\/frosty-pine-qmsdwh<\/A> <\/P>
ズームインを始めると、次のようなURLで画像を取得していることに気づきます
しかしesri-leafletはかなり異なる方法を取り、次のような画像を読み込みます
esri-leafletでキャッシュされたタイルを代わりに使用する方法はありますか?Codesandboxの例:
Hm. I partly answered my own question. If I use `esri.tiledMapLayer` instead of `esri.dynamicMapLayer` with the exact same URL, I see the tiled images.
So I guess my real question is, when displaying data from a map service, when should you use dynamicMapLayer vs tiledMapLayer?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.