changed visibility of overlay properties to protected,

added new getOptions function to overlay, to get the original options

remove trailing underscore from protected properties and functions
This commit is contained in:
Jannes Bolling
2017-10-19 13:06:20 +02:00
parent d33e41d322
commit a802f5937b
2 changed files with 101 additions and 85 deletions

View File

@@ -47,7 +47,7 @@ describe('ol.Overlay', function() {
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');
expect(instance.element.className).to.be('my-class');
});
});
@@ -98,9 +98,9 @@ describe('ol.Overlay', function() {
});
map.addOverlay(overlay);
map.renderSync();
expect(overlay.element_.style.display).not.to.be('none');
expect(overlay.element.style.display).not.to.be('none');
overlay.setVisible(false);
expect(overlay.element_.style.display).to.be('none');
expect(overlay.element.style.display).to.be('none');
});
});