Skip to content

panBy without animation? #1164

@zsombornagy

Description

@zsombornagy

HI!

It would be nice to be able to do panBy without the animation.

I'm currently doing this:

L.Map.include({
  panByWithoutAnimation: function(offset) {
    this.fire('movestart');
    this._rawPanBy(L.point(offset));
    this.fire('move');
    return this.fire('moveend');
  }
});

But I don't like to rely on a "nonofficial" method: _rawPanBy.

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions