Skip to content

feat(interaction): default interaction inputs#359

Open
remiHau wants to merge 2 commits intoquentinlampin:mainfrom
remiHau:feat-interaction-default-interaction-inputs
Open

feat(interaction): default interaction inputs#359
remiHau wants to merge 2 commits intoquentinlampin:mainfrom
remiHau:feat-interaction-default-interaction-inputs

Conversation

@remiHau
Copy link
Contributor

@remiHau remiHau commented Feb 14, 2026

Add inputs to manage options of default interaction and a example to test this options. Some options are missing because I don't know what they do

Closes #358

@remiHau remiHau force-pushed the feat-interaction-default-interaction-inputs branch 2 times, most recently from 4878a3d to 1de517f Compare February 16, 2026 08:34
}

ngOnChanges() {
if (this.instance) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about the following:

if (this.instance && this.map.instance) {
      this.instance.forEach((i) => this.map.instance.removeInteraction(i));
}
this.instance = defaults({
  ...
});
if (this.map.instance) {
  this.instance.forEach((i) => this.map.instance.addInteraction(i));
}

@remiHau remiHau force-pushed the feat-interaction-default-interaction-inputs branch from 1de517f to 6237eea Compare February 16, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Options for default interaction component

2 participants