Remove unneeded configs from test
This commit is contained in:
@@ -5,7 +5,6 @@ goog.require('ol.VectorTile');
|
||||
goog.require('ol.format.MVT');
|
||||
goog.require('ol.layer.VectorTile');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.source.VectorTile');
|
||||
goog.require('ol.tilegrid');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
@@ -95,15 +94,9 @@ describe('ol.source.VectorTile', function() {
|
||||
loaded.push(src);
|
||||
}
|
||||
|
||||
var proj = new ol.proj.Projection({
|
||||
code: 'EPSG:3006',
|
||||
units: 'm'
|
||||
});
|
||||
|
||||
var extent = [665584.2026596286, 7033250.839875697, 667162.0221431496, 7035280.378636755];
|
||||
|
||||
source = new ol.source.VectorTile({
|
||||
projection: proj,
|
||||
tileGrid: new ol.tilegrid.TileGrid({
|
||||
origin: [218128, 6126002],
|
||||
resolutions: [4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5]
|
||||
@@ -119,14 +112,12 @@ describe('ol.source.VectorTile', function() {
|
||||
map = new ol.Map({
|
||||
layers: [
|
||||
new ol.layer.VectorTile({
|
||||
visible: true,
|
||||
extent: extent,
|
||||
source: source
|
||||
})
|
||||
],
|
||||
target: target,
|
||||
view: new ol.View({
|
||||
projection: proj,
|
||||
zoom: 11,
|
||||
center: [666373.1624999996, 7034265.3572]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user