Test hybrid mode in vt constructor
This commit is contained in:
@@ -39,10 +39,10 @@ describe('ol.layer.VectorTile', function() {
|
|||||||
describe('constructor (options)', function() {
|
describe('constructor (options)', function() {
|
||||||
it('works with options', function() {
|
it('works with options', function() {
|
||||||
let layer = new VectorTileLayer({
|
let layer = new VectorTileLayer({
|
||||||
renderMode: 'vector',
|
renderMode: 'hybrid',
|
||||||
source: new VectorTileSource({})
|
source: new VectorTileSource({})
|
||||||
});
|
});
|
||||||
expect(layer.getRenderMode()).to.be('vector');
|
expect(layer.getRenderMode()).to.be('hybrid');
|
||||||
layer = new VectorTileLayer({
|
layer = new VectorTileLayer({
|
||||||
renderMode: 'image',
|
renderMode: 'image',
|
||||||
source: new VectorTileSource({})
|
source: new VectorTileSource({})
|
||||||
|
|||||||
Reference in New Issue
Block a user