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

Duplicated toggleCondition option within lesson 15 #4

Open
Raruto opened this issue Jul 7, 2022 · 0 comments
Open

Duplicated toggleCondition option within lesson 15 #4

Raruto opened this issue Jul 7, 2022 · 0 comments

Comments

@Raruto
Copy link

Raruto commented Jul 7, 2022

In the punctual selection chapter the toggleCondition parameter is listed twice with two different descriptions, perhaps we were referring to another option?

/*lession 15*/

const singlePointSelection = new ol.interaction.Select({
    layers: [poi],
    style: selectionStyle,
    // toggleCondition: come aggiungere le features alla corrente selezione
    // features: Collezione su cui limitarela selezione
    // filter: se volissimo filtare la feature (cattura una feature alla volta)  in base ad una proprietà specifica
    // toggleCondition: // nel caso customizzare il tipo di selezione
    // addCondition: funzione che permette di agire sull'aggiunte di nuove features selezionate
    // removeCondition: come sopra ma per la rimozione
    multi: false // dafault. Nel caso volessimo selezionare più features quando sono in overlay bisogna settarlo a true
});

Reference: _lessons/l15.md#selezione-puntuale

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

No branches or pull requests

1 participant