Port ol.filter.ExtentFilter to new extents

This commit is contained in:
Tom Payne
2013-04-16 16:26:47 +02:00
parent a413f3046a
commit 01168e805a
3 changed files with 4 additions and 6 deletions
+1 -2
View File
@@ -51,7 +51,7 @@ describe('ol.layer.Vector', function() {
});
var geomFilter = new ol.filter.Geometry(ol.geom.GeometryType.LINESTRING);
var extentFilter = new ol.filter.Extent(new ol.Extent(16, 48, 16.3, 48.3));
var extentFilter = new ol.filter.Extent([16, 16.3, 48, 48.3]);
it('can filter by geometry type using its GeometryType index', function() {
sinon.spy(geomFilter, 'applies');
@@ -177,7 +177,6 @@ describe('ol.layer.Vector', function() {
});
goog.require('ol.Expression');
goog.require('ol.Extent');
goog.require('ol.Feature');
goog.require('ol.filter.Extent');
goog.require('ol.filter.Geometry');