Merge pull request #7377 from notnotse/overlay-classname

Add support to specify CSS class name when creating ol.Overlay
This commit is contained in:
Frédéric Junod
2017-10-25 15:32:24 +02:00
committed by GitHub
3 changed files with 16 additions and 2 deletions

View File

@@ -44,6 +44,12 @@ describe('ol.Overlay', function() {
expect(instance).to.be.an(ol.Overlay);
});
it('can be constructed with className', function() {
var instance = new ol.Overlay({className: 'my-class'});
expect(instance).to.be.an(ol.Overlay);
expect(instance.element_.className).to.be('my-class');
});
});
describe('#getId()', function() {