Image overlay extent accuracy
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
mapbox-gl-js 2.8.2
browser: chrome/firefox
### Steps to Trigger Behavior
Add an image layer
Draw the image extent as a geojson polygon
The extents do not match
### Link to Demonstration
https://jsbin.com/juturac/edit?html,output
Enable cross origin requests as it links to an external image
### Expected Behavior
I would expect the polygon and the image extent to match
### Actual Behavior
There is a minor offset

### QGIS Behavior
This is the same raster data loaded in QGIS

Here the extent is the same as the rendered geojson polygon. So it looks like there is some offset when rendering images.
I have submitted this issue before #9396 and it was marked as a duplicate of #9158.
#9158 is fixed now but this issue still occurs.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the mismatch in the linked JSBin with Chrome or Firefox: add the image layer and compare its rendered extent with the GeoJSON polygon. Use the supplied screenshots and QGIS comparison as the reference. Done means the image and polygon extents align, and the behavior remains correct after the fix for #9158.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100