Add rendering test for layer tile simple
This commit is contained in:
BIN
rendering/cases/layer-tile-simple/expected.png
Normal file
BIN
rendering/cases/layer-tile-simple/expected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 118 KiB |
25
rendering/cases/layer-tile-simple/main.js
Normal file
25
rendering/cases/layer-tile-simple/main.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import Map from '../../../src/ol/CompositeMap.js';
|
||||
import View from '../../../src/ol/View.js';
|
||||
import TileLayer from '../../../src/ol/layer/Tile.js';
|
||||
import {fromLonLat} from "../../../src/ol/proj";
|
||||
import XYZ from "../../../src/ol/source/XYZ";
|
||||
|
||||
const center = fromLonLat([8.6, 50.1]);
|
||||
|
||||
new Map({
|
||||
layers: [
|
||||
new TileLayer({
|
||||
source: new XYZ({
|
||||
url: '/data/tiles/satellite/{z}/{x}/{y}.jpg',
|
||||
transition: 0
|
||||
})
|
||||
})
|
||||
],
|
||||
target: 'map',
|
||||
view: new View({
|
||||
center: center,
|
||||
zoom: 3
|
||||
})
|
||||
});
|
||||
|
||||
render();
|
||||
Reference in New Issue
Block a user