You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on overlay implementation with Mapbox GL JS. Google Earth is being used to align overlay images and save as KMZ. In the Mapbox map the overlays appear to be rotated close to what is expected but not quite matching the rotation seen in Google Earth. Some of the overlays seem like the scale could be different. The same KMZ files load and display correctly using ESRI ArcGIS so I believe the issue is in togeojson. I'm attaching a sample kmz that can be used for seeing the issue. Also note that this seems to only happen with overlays that have a rotation.
Example showing what looks like the rotation being slightly off:
Sample overlay showing what looks to be scale not quite same:
So in previous PR #120 we swapped the rotation direction which got closer, but still off by a bit. My guess is that the rotation should be happening in geodesic space rather than euclidean - the current implementation just thinks in degrees longitude and latitude.
With images aligned by their corners, that should have only a really tiny effect - Mapbox reprojects internally from WGS84 data into EPSG:3857, and at most you should have slightly warped edges rather than incorrect anchor points, at this size. This image itself probably has a different projection than either - probably a local projection.
I just mostly need to figure out a more accurate way to rotate a box without warping.
I'm working on overlay implementation with Mapbox GL JS. Google Earth is being used to align overlay images and save as KMZ. In the Mapbox map the overlays appear to be rotated close to what is expected but not quite matching the rotation seen in Google Earth. Some of the overlays seem like the scale could be different. The same KMZ files load and display correctly using ESRI ArcGIS so I believe the issue is in togeojson. I'm attaching a sample kmz that can be used for seeing the issue. Also note that this seems to only happen with overlays that have a rotation.
Example showing what looks like the rotation being slightly off:
Sample overlay showing what looks to be scale not quite same:
Here is a sample KMZ that has 3 locations showing the issues.
Overlay-invalidLocations.zip
Code loading the source and layer:
The text was updated successfully, but these errors were encountered: