test gutter

This commit is contained in:
mike-000
2022-01-20 17:43:51 +00:00
parent 2a421b9362
commit 6a26e6a274
2 changed files with 25 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@@ -0,0 +1,25 @@
import Map from '../../../../src/ol/Map.js';
import TileLayer from '../../../../src/ol/layer/WebGLTile.js';
import TileWMS from '../../../../src/ol/source/TileWMS.js';
import View from '../../../../src/ol/View.js';
const tileWms = new TileWMS({
params: {
'LAYERS': 'layer',
},
gutter: 20,
url: '/data/tiles/wms/wms20.png',
transition: 0,
});
new Map({
pixelRatio: 1.5,
layers: [new TileLayer({source: tileWms})],
target: 'map',
view: new View({
center: [0, 0],
zoom: 5,
}),
});
render();