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

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -6,7 +6,7 @@ import View from '../../../../src/ol/View.js';
const source = new Static({ const source = new Static({
url: '/data/tiles/osm/5/5/12.png', url: '/data/tiles/osm/5/5/12.png',
imageExtent: [-123, 37, -122, 38], imageExtent: [-123, 37, -122, 38],
imageSmoothing: false, interpolate: false,
}); });
new Map({ new Map({

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -7,7 +7,7 @@ import {fromLonLat, transformExtent} from '../../../../src/ol/proj.js';
const source = new Static({ const source = new Static({
url: '/data/tiles/osm/5/5/12.png', url: '/data/tiles/osm/5/5/12.png',
imageExtent: transformExtent([-123, 37, -122, 38], 'EPSG:4326', 'EPSG:3857'), imageExtent: transformExtent([-123, 37, -122, 38], 'EPSG:4326', 'EPSG:3857'),
imageSmoothing: false, interpolate: false,
}); });
new Map({ new Map({

View File

@@ -7,7 +7,7 @@ import {fromLonLat} from '../../../../src/ol/proj.js';
const source = new Static({ const source = new Static({
url: '/data/tiles/osm/5/5/12.png', url: '/data/tiles/osm/5/5/12.png',
imageExtent: [-123, 37, -122, 38], imageExtent: [-123, 37, -122, 38],
imageSmoothing: false, interpolate: false,
projection: 'EPSG:4326', projection: 'EPSG:4326',
}); });

View File

@@ -10,7 +10,7 @@ import {
const source = new Static({ const source = new Static({
url: '/data/tiles/osm/5/5/12.png', url: '/data/tiles/osm/5/5/12.png',
imageExtent: transformExtent([-123, 37, -122, 38], 'EPSG:4326', 'EPSG:3857'), imageExtent: transformExtent([-123, 37, -122, 38], 'EPSG:4326', 'EPSG:3857'),
imageSmoothing: false, interpolate: false,
projection: getProjection('EPSG:3857'), projection: getProjection('EPSG:3857'),
}); });

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -13,7 +13,7 @@ const source = new XYZ({
transition: 0, transition: 0,
minZoom: 5, minZoom: 5,
maxZoom: 5, maxZoom: 5,
imageSmoothing: false, interpolate: false,
url: '/data/tiles/osm/{z}/{x}/{y}.png', url: '/data/tiles/osm/{z}/{x}/{y}.png',
}); });

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -12,7 +12,7 @@ const source = new XYZ({
transition: 0, transition: 0,
minZoom: 5, minZoom: 5,
maxZoom: 5, maxZoom: 5,
imageSmoothing: false, interpolate: false,
url: '/data/tiles/osm/{z}/{x}/{y}.png', url: '/data/tiles/osm/{z}/{x}/{y}.png',
}); });