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

deselect the items from the map #17

Open
EdsonMateus1 opened this issue Jan 25, 2022 · 1 comment
Open

deselect the items from the map #17

EdsonMateus1 opened this issue Jan 25, 2022 · 1 comment

Comments

@EdsonMateus1
Copy link

eu tenho um btn para excluir os itens como posso deselecionar os itens do mapa

i have a btn to delete the items how can i deselect the items from the map

I would have to do something similar to what is in the documentation
(chart.deselectObjects([{ id: item.id, ticketType: item.type }]))

@mroloux
Copy link
Member

mroloux commented Jan 28, 2022

Hi! You should be able to do something like this:

config = {
    region: "<yourRegion>",
    workspaceKey: "<yourWorkspacePublicKey>",
    event: "<yourEventKey>",
    onRenderRendered: (chart) => {
      chart.deselectObjects[{id: 'General Admission', ticketType: 'adult'}]
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants