Change imageSmoothing to interpolate

This commit is contained in:
mike-000
2022-03-25 12:44:06 +00:00
committed by Tim Schaub
parent 396f8b43c2
commit c4bf3f1e1a
12 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,30 @@
import ImageLayer from '../../../../src/ol/layer/Image.js';
import Map from '../../../../src/ol/Map.js';
import Static from '../../../../src/ol/source/ImageStatic.js';
import View from '../../../../src/ol/View.js';
import {fromLonLat} from '../../../../src/ol/proj.js';
const source = new Static({
url: '/data/tiles/osm/5/5/12.png',
imageExtent: [-123, 37, -122, 38],
interpolate: false,
projection: 'EPSG:4326',
});
new Map({
pixelRatio: 1,
target: 'map',
layers: [
new ImageLayer({
source: source,
}),
],
view: new View({
center: fromLonLat([-122.39, 37.81]),
zoom: 12,
}),
});
render({
tolerance: 0.001,
});