¿Alguien ha hecho que el mapa Esri Leaflet Vector rote? Por ejemplo, usando una laptop en un vehículo donde "arriba" en el mapa sería la dirección hacia la que apunta el coche.<\/P>
Intenté combinar código de demostración de Esri y del plug-in leaflet-rotate-map (https:\/\/www.npmjs.com\/package\/leaflet-rotate-map)<\/A> pero esto tiene problemas. Por ejemplo, una rotación de 45 grados en esta vista:<\/P> <\/span><\/P>sí rota pero pierde parte del área del mapa y además el marcador ya no está en el mismo punto sobre el terreno.<\/P><\/span><\/P>¿Existen formas conocidas de hacer rotación con Esri Leaflet Vector?<\/P>
<\/span><\/P>sí rota pero pierde parte del área del mapa y además el marcador ya no está en el mismo punto sobre el terreno.<\/P><\/span><\/P>¿Existen formas conocidas de hacer rotación con 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.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.