UNPKG

openlayers

Version:

Build tools and sources for developing OpenLayers based mapping applications

26 lines (20 loc) 759 B
goog.provide('ol.format.filter.Within'); goog.require('ol'); goog.require('ol.format.filter.Spatial'); /** * @classdesc * Represents a `<Within>` operator to test whether a geometry-valued property * is within a given geometry. * * @constructor * @param {!string} geometryName Geometry name to use. * @param {!ol.geom.Geometry} geometry Geometry. * @param {string=} opt_srsName SRS name. No srsName attribute will be * set on geometries when this is not provided. * @extends {ol.format.filter.Spatial} * @api */ ol.format.filter.Within = function(geometryName, geometry, opt_srsName) { ol.format.filter.Spatial.call(this, 'Within', geometryName, geometry, opt_srsName); }; ol.inherits(ol.format.filter.Within, ol.format.filter.Spatial);