You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. How do we control in which side of the Swipe Control the layer renders when layer is added to layerList. From my observation when adding multiple layers in layerList, the odd index layer are rendered in the left while the even index layers are rendered in the right. Is there a way to control the position of the layer similar to ctrl.addLayer(osm, true) of the ol-ext where passing true renders the layer to the right while not passing a parameter default renders the layer to the left?
The text was updated successfully, but these errors were encountered:
Before, only the second passed layer was added to the right side. Now you can explicitly pass (multiple) layers for the left (or top) using `layers` and for the right (bottom) using `rightLayers`.
BREAKING CHANGE: `ol-swipe-control`: property `layerList` has been removed and splitted into `layers` and `rightLayers`. Please pass explicitly `layers` for the left side (or top, depending on the `orientation`) and `rightLayers` for the right side (or bottom, depending on the `orientation`)
Closes: #376
Hello. How do we control in which side of the Swipe Control the layer renders when layer is added to
layerList
. From my observation when adding multiple layers inlayerList
, the odd index layer are rendered in the left while the even index layers are rendered in the right. Is there a way to control the position of the layer similar toctrl.addLayer(osm, true)
of the ol-ext where passingtrue
renders the layer to the right while not passing a parameter default renders the layer to the left?The text was updated successfully, but these errors were encountered: