Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect rendered Extent of ImageStatic #2844

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

Incorrect rendered Extent of ImageStatic #2844

chird opened this issue Oct 15, 2014 · 2 comments

Comments

@chird
Copy link

@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
Copy link

@Tab3r 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
Copy link
Member

@bartvde 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants