Skip to content

Commit a93df5a

Browse files
committed
Disabled LayerSwitcher control's reordering
1 parent 49a6bcd commit a93df5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/gtt-client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,9 @@ export class GttClient {
358358

359359
// Add LayerSwitcher Image Toolbar
360360
if( containsOverlay) {
361-
this.map.addControl(new LayerSwitcher())
361+
this.map.addControl(new LayerSwitcher({
362+
reordering: false
363+
}))
362364
}
363365
else {
364366
this.map.addControl(new LayerPopup())

0 commit comments

Comments
 (0)