mobile-sdk: adding a layer as hidden wont refresh on shown

Let say you add a VectorTileLayer but setVisible(false) before adding it. Then if you show it again with setVisible(true) after being added to the map the the “visible” tiles wont get loaded and thus the layer wont show. The layer will appear on any map move (thus calling loadTiles). Let me know if you need a repro sample.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

@farfromrefug Regarding click detection, I am quite sure that this works properly, thus hidden layers are ignored in click handling.

Click handling could be somewhat slow, as all layers and features of matching tiles need to be decoded and checked against the click point. So the complexity in click detection is proportional to the number of features in the tile.