Incorrect rendered Extent of ImageStatic #2844

Closed
chird opened this Issue Oct 15, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@chird

chird commented Oct 15, 2014

If I add an ImageStatic to a Map, its rendered too wide (in horizontal direction). Its maxx (right extent) appears at the false position.

Example: http://jsfiddle.net/u7xyor0t/1/

The Image is intended to reach from 8° to 9° East. But its right border appears at about 9.5° E... (you can check this with the Mouse Position)


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

@Tab3r

This comment has been minimized.

Show comment
Hide comment
@Tab3r

Tab3r Oct 23, 2014

A temporal workaround (no credit about it)

https://groups.google.com/forum/#!searchin/ol3-dev/imagestatic/ol3-dev/9RUM9ljssVM/KNyPibI-wyEJ

The problem is for resize the image, only the Y axis ratio is calculed and applied for both axis. The fix calculate both (and different) ratio for axis.

Tab3r commented Oct 23, 2014

A temporal workaround (no credit about it)

https://groups.google.com/forum/#!searchin/ol3-dev/imagestatic/ol3-dev/9RUM9ljssVM/KNyPibI-wyEJ

The problem is for resize the image, only the Y axis ratio is calculed and applied for both axis. The fix calculate both (and different) ratio for axis.

@bartvde

This comment has been minimized.

Show comment
Hide comment
@bartvde

bartvde Oct 30, 2015

Member

working on a PR for this one now

Member

bartvde commented Oct 30, 2015

working on a PR for this one now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment