Add rendering test for layer tile transition

This commit is contained in:
Florent gravin
2018-11-14 15:06:06 +01:00
parent d0f66b7cec
commit fc85b2ba78
3 changed files with 24 additions and 15 deletions

View File

@@ -0,0 +1,24 @@
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'
})
})
],
target: 'map',
view: new View({
center: center,
zoom: 3
})
});
render();