Skip to content

Overlays obscured by baselayers when using layer control and layergroups. #1667

@spamdaemon

Description

@spamdaemon

This issue may be related to #1096. I've tried to reproduce the issue here (using github/master):
http://plnkr.co/edit/RyEYkY?p=preview

This is a simple example with 3 layers, 2 base layers and 1 overlay layer. Each layer lives within a layergroup. The layer group is added to the control before adding any layers to it.

Initially the layers are displayed correctly, but after toggling the baselayers once or twice, they obscure the overlay.

The problem goes away if I add my layers into the group before adding the group to the control. Setting a z-index on the layergroup had no effect.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions