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

AnimatedCluster - Incomplete #79

Open
leehadley opened this issue Jan 28, 2022 · 0 comments
Open

AnimatedCluster - Incomplete #79

leehadley opened this issue Jan 28, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@leehadley
Copy link

leehadley commented Jan 28, 2022

Hi, I had to make the following changes to AnimatedCluster.d.ts to consume:

import VectorLayer from 'ol/layer/Vector';
import { Options } from 'ol/layer/BaseVector';
import { Cluster } from 'ol/source';
import BaseVectorLayer from 'ol/layer/BaseVector';
import BaseLayer from 'ol/layer/Base'

interface ClusterOptions extends Options<BaseVectorLayer> {
animationDuration?: number;
easingFunction?: (t: number) => number;
}
/**

  • A vector layer for animated cluster
  • @constructor
  • @extends {ol.layer.Vector}
  • @param {olx.layer.AnimatedClusterOptions=} options extend olx.layer.Options
  • @param {Number} options.animationDuration animation duration in ms, default is 700ms
  • @param {ol.easingFunction} animationMethod easing method to use, default ol.easing.easeOut
    */
    export default class AnimatedCluster extends BaseLayer {
    constructor(options?: ClusterOptions);
    }
@Siedlerchr Siedlerchr added the bug Something isn't working label Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants