We have found this issue where if have multiple layers (including a vector layer) on the map and if we do the following, the current map extents are not applied to the vector layer:
- Disable vector tile layer (set visible property to false).
- Pan the map.
- Enable the vector tile layer.
- New map extents are not applied to the vector tile layer.
Here is a JS fiddle where you can try this out: JSFiddle
Is there a workaround/fix to this issue?
As we require multiple layers that can be enabled/disabled on the map for our project, it is critical for our project that we get this working.