Esri Leaflet Vector マップを回転させたことがある人はいますか?例えば、車内のノートパソコンでマップの「上」が車の進行方向になるようにしたいです。<\/P>
Esri のデモコードと leaflet-rotate-map プラグイン (https:\/\/www.npmjs.com\/package\/leaflet-rotate-map)<\/A> を組み合わせて試しましたが、問題があります。例えば、このビューで45度回転させると:<\/P> <\/span><\/P>確かに回転しますが、マップの一部領域が失われ、マーカーも地上の同じ地点に位置しなくなります。<\/P><\/span><\/P>Esri Leaflet Vector で回転を実現する既知の方法はありますか?<\/P>
<\/span><\/P>確かに回転しますが、マップの一部領域が失われ、マーカーも地上の同じ地点に位置しなくなります。<\/P><\/span><\/P>Esri Leaflet Vector で回転を実現する既知の方法はありますか?<\/P>
Per this issue in the Leaflet repository, Leaflet does not officially support rotation. If you're looking for map rotation, I would suggest looking at the ArcGIS API for JavaScript v4 which fully supports rotation.
Thanks, Gavin. Leaflet core does not support rotation, but the recent leaflet plugin that I mentioned looks promising; it was published 5 months ago (the Leaflet repository entry you linked to ended in 2018), so I'm hopeful that it will work with some of our current formats. We already have long usage with leaflet and users with various data formats, not just Esri formats, so switching or adding renderers is a big investment.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.