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

Animated Clusters Android #735

Closed
Dirk951 opened this issue Feb 4, 2022 · 2 comments
Closed

Animated Clusters Android #735

Dirk951 opened this issue Feb 4, 2022 · 2 comments
Labels

Comments

@Dirk951
Copy link

Dirk951 commented Feb 4, 2022

ol 6.12.0
ol-ext 3.2.22
While animation all icons (cluster and single markers) will ignored the image style settings for scale. Before and after animation all looks fine. That means, while animation the symbols get to small.
The only case, where happens this, is in a android webview (Andoid Hybrid App). No problems with desktop browsers.

All works fine in an android app with ol 6.1.1. and ol-ext 3.1.8

Sourcecode:
function getStyleDoCTarget(feature){
return new ol.style.Style({
image: new ol.style.Icon(/** @type {olx.style.IconOptions} */ ({
anchor: [0.50, 53],
scale: 1.60, <- dont work while animation
anchorXUnits: 'fraction',
anchorYUnits: 'pixels',
opacity: 1,
src: 'images/doc_target.png'
}))
});
}

@Viglino
Copy link
Owner

Viglino commented Feb 5, 2022

It seems there is an issue on last ol versions with pixel ratio when animating.
The last commit should fix it!

@Viglino Viglino added the bug label Feb 5, 2022
@Dirk951
Copy link
Author

Dirk951 commented Feb 7, 2022

YES, work perfectly now. Thank you for your help.

Your extensions are a highlight in my mobile map apps!

@Viglino Viglino closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants