Clean up remaining ol/format/filter class

This commit is contained in:
Tim Schaub
2018-07-17 18:30:15 -06:00
parent c4e5a7467e
commit f6046c023c
+9 -13
View File
@@ -1,30 +1,26 @@
/** /**
* @module ol/format/filter/Within * @module ol/format/filter/Within
*/ */
import {inherits} from '../../util.js';
import Spatial from '../filter/Spatial.js'; import Spatial from '../filter/Spatial.js';
/** /**
* @classdesc * @classdesc
* Represents a `<Within>` operator to test whether a geometry-valued property * Represents a `<Within>` operator to test whether a geometry-valued property
* is within a given geometry. * is within a given geometry.
*
* @constructor
* @param {!string} geometryName Geometry name to use.
* @param {!module: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 {module:ol/format/filter/Spatial}
* @api
*/ */
class Within { class Within extends Spatial {
/**
* @param {!string} geometryName Geometry name to use.
* @param {!module:ol/geom/Geometry} geometry Geometry.
* @param {string=} opt_srsName SRS name. No srsName attribute will be
* set on geometries when this is not provided.
* @api
*/
constructor(geometryName, geometry, opt_srsName) { constructor(geometryName, geometry, opt_srsName) {
Spatial.call(this, 'Within', geometryName, geometry, opt_srsName); super('Within', geometryName, geometry, opt_srsName);
} }
} }
inherits(Within, Spatial);
export default Within; export default Within;