New Layer#getFeatures method with fast hit detection for VectorLayer
This commit is contained in:
@@ -40,6 +40,7 @@ describe('ol/renderer/canvas/VectorImageLayer', function() {
|
||||
extent: extent,
|
||||
viewHints: [],
|
||||
viewState: {
|
||||
center: [0, 0],
|
||||
projection: projection,
|
||||
resolution: 1,
|
||||
rotation: 0
|
||||
|
||||
@@ -208,6 +208,7 @@ describe('ol.renderer.canvas.VectorLayer', function() {
|
||||
const frameState = {
|
||||
layerStatesArray: [{}],
|
||||
viewState: {
|
||||
center: [0, 0],
|
||||
resolution: 1,
|
||||
rotation: 0
|
||||
}
|
||||
@@ -234,6 +235,7 @@ describe('ol.renderer.canvas.VectorLayer', function() {
|
||||
frameState = {
|
||||
viewHints: [],
|
||||
viewState: {
|
||||
center: [0, 0],
|
||||
projection: projection,
|
||||
resolution: 1,
|
||||
rotation: 0
|
||||
|
||||
@@ -22,6 +22,7 @@ import VectorTileRenderType from '../../../../../src/ol/layer/VectorTileRenderTy
|
||||
import {getUid} from '../../../../../src/ol/util.js';
|
||||
import TileLayer from '../../../../../src/ol/layer/Tile.js';
|
||||
import XYZ from '../../../../../src/ol/source/XYZ.js';
|
||||
import {create} from '../../../../../src/ol/transform.js';
|
||||
|
||||
|
||||
describe('ol.renderer.canvas.VectorTileLayer', function() {
|
||||
@@ -262,6 +263,7 @@ describe('ol.renderer.canvas.VectorTileLayer', function() {
|
||||
layerIndex: 0,
|
||||
extent: proj.getExtent(),
|
||||
pixelRatio: 1,
|
||||
pixelToCoordinateTransform: create(),
|
||||
time: Date.now(),
|
||||
viewHints: [],
|
||||
viewState: {
|
||||
|
||||
Reference in New Issue
Block a user