|
|
|
@ -30,7 +30,8 @@ describe('ImageOverlay', function () {
|
|
|
|
|
map.setView(new L.LatLng(55.8, 37.6), 6); // view needs to be set so when layer is added it is initilized
|
|
|
|
|
|
|
|
|
|
overlay = L.imageOverlay(blankUrl, [[40.712216, -74.22655], [40.773941, -74.12544]], {
|
|
|
|
|
errorOverlayUrl: errorUrl
|
|
|
|
|
errorOverlayUrl: errorUrl,
|
|
|
|
|
className: 'my-custom-image-class'
|
|
|
|
|
});
|
|
|
|
|
map.addLayer(overlay);
|
|
|
|
|
|
|
|
|
@ -76,6 +77,12 @@ describe('ImageOverlay', function () {
|
|
|
|
|
expect(overlay._image.src).to.be(errorUrl);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe('className', function () {
|
|
|
|
|
it('should set image\'s class', function () {
|
|
|
|
|
expect(L.DomUtil.hasClass(overlay._image, 'my-custom-image-class')).to.be(true);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe('#setZIndex', function () {
|
|
|
|
|