-
Notifications
You must be signed in to change notification settings - Fork 466
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
Animated SVG image displayed in wrong size and position on devices with devicePixelRatio > 1 #1013
Comments
The problem is here: ol-ext/src/util/getVectorContextStyle.js Line 16 in ffe16b5
this line should be extended to:
since the workaround is not needed anymore with open layers 7 and above. |
That looks promising since I have a similar issue (#1011). I forked the code and wanted to use https://github.com/Viglino/ol-ext/blob/master/DEVELOPING.md But when I run the
What am I doing wrong? |
You have to specify the gulpfile since the project is now a JS module.
I've updated the doc. PS: the build has been done in the repo (so you don't have to do it). |
Good pointer to a fix, in my case I had to do:
|
Fixed in the last commit. |
[email protected] is out. |
With example map.featureanimation.html when image is replaced from RegularShape into:
then during animation the SVG image is wrong positioned and displayed larger then expected. This is only happening on
devices with devicePixelRatio > 1, i.e. MacBooks or HighRes monitors.
I suspect this is introduced with the fix in OpenLayers 7 referenced here: #636
At the moment I haven't found a workaround for this issue.
The text was updated successfully, but these errors were encountered: