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

Add/Remove/Update layers at run time #41

Open
gismatthew opened this issue Jan 22, 2021 · 0 comments
Open

Add/Remove/Update layers at run time #41

gismatthew opened this issue Jan 22, 2021 · 0 comments

Comments

@gismatthew
Copy link

gismatthew commented Jan 22, 2021

I'm trying to add a new tile layer to the map, which seems a very basic function and I believe mangol supports that (correct?), but so far I haven't found any documentation on how to do that. I've tried:

  • update the mangolConfig file
  • redefine the config through manglService.setconfig()
  • Someone mentioned manglService.layersSetLayers() but I don't know how to use it, there is zero documentation for this function and its signature makes no sense, why it expects MangoLayer[]? I think it should respect the layers definition from mangolConfig where you can have MangoLayer and/or MangolLayerGroup. Nonetheless I tried a few times (including pass in a MangolLayer object) using this function but it is not working.

Any ideas would be appreciated!

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