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.
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:
mangolConfig
filemanglService.setconfig()
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 expectsMangoLayer[]
? I think it should respect the layers definition frommangolConfig
where you can haveMangoLayer
and/orMangolLayerGroup
. 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!