Organize tests

This commit is contained in:
Tim Schaub
2021-04-27 15:41:14 -07:00
parent 278e355795
commit 490cfabe91
599 changed files with 12374 additions and 1603 deletions

View File

@@ -0,0 +1,26 @@
import GeoJSON from '../../../../src/ol/format/GeoJSON.js';
import Map from '../../../../src/ol/Map.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
import View from '../../../../src/ol/View.js';
import {transformExtent} from '../../../../src/ol/proj.js';
new Map({
target: 'map',
view: new View({
center: [0, 0],
zoom: 1,
rotation: Math.PI / 4,
}),
layers: [
new VectorLayer({
extent: transformExtent([-50, -45, 50, 45], 'EPSG:4326', 'EPSG:3857'),
source: new VectorSource({
url: '/data/countries.json',
format: new GeoJSON(),
}),
}),
],
});
render();