Working with layers #53
-
Hey there! Recently I tried to add layers during runtime and I did it successfully: auto layer = rocky::MBTilesImageLayer::create();
layer->setURI("data\\world\\world_white.mbtiles");
app_.mapNode->map->layers().add(layer); It works just fine but I was wondering: am I able to remove layers during runtime? I tried it too but it didn't work (mostly because of lack of experience from my side). I tried naive solution: app_.mapNode->map->layers().remove(layer); And nothing happens. I guess we should tell map node or application to redraw layers or to update LayerCollection somehow but I don't know how exactly... I would appreciate it so much if you give me a clear explanation about this moment :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Short answer is, this is just not yet implemented. I will convert this to a ticket so it's on the to-do list. Thanks. |
Beta Was this translation helpful? Give feedback.
Short answer is, this is just not yet implemented. I will convert this to a ticket so it's on the to-do list. Thanks.