Skip to content

WMS Style Problem #2330

Discussion options

You must be logged in to vote

I'm not sure if this will work for WMS, but instead of removing/adding layers you can also try the invalidate API:

std::vector<const Layer*> layers;
layers.push_back(your_wms_layer);
GeoExtent extent;
mapNode->getTerrainEngine()->invalidateRegion(layers, extent);

This tells the terrain engine to re-load all the tiles from those layers in that extent.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gwaldron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants