-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
See this JSFiddle
showing several test cases showing one tileLayer of an OSM basemap and two overlay tileLayers. Basically, things work fine if no opacity is set on the layers or all layers have an opacity less than 1. Any layers anywhere within the stack with an opacity of 1 (or not set at all) will occlude any overlays above them with an opacity less than 1. Setting zIndex option on layers without opacity makes map honor the expected stacking order.
As mentioned in the other issue comment threads, the current behavior is different from 0.5.1, where the order layers were added to the map was respected with mixed opacity tileLayers.
Does this need to be fixed internally, or should users have to explicitly set a zIndex option or setZIndex() for all tileLayers that might use opacity other than 1?
