describe('Remember opacity', function () { var map, div, clock, markers; var markerDefs = [ {latLng: [ 0, 0], opts: {opacity: 0.9}}, {latLng: [ 0, 1], opts: {opacity: 0.5}}, {latLng: [ 0,-1], opts: {opacity: 0.5}}, {latLng: [ 1, 0], opts: {opacity: 0.5}}, {latLng: [-1, 0], opts: {opacity: 0.5}}, {latLng: [ 1, 1], opts: {opacity: 0.2}}, {latLng: [ 1,-1], opts: {opacity: 0.2}}, {latLng: [-1, 1], opts: {opacity: 0.2}}, {latLng: [-1,-1], opts: {opacity: 0.2}} ]; var bounds = L.latLngBounds( L.latLng( -1.1, -1.1), L.latLng( 1.1, 1.1) ); beforeEach(function () { clock = sinon.useFakeTimers(); div = document.createElement('div'); div.style.width = '200px'; div.style.height = '200px'; document.body.appendChild(div); map = L.map(div, { maxZoom: 18 }); markers = []; for (var i=0; i