Vector related exports
This commit is contained in:
6
src/ol/feature.exports
Normal file
6
src/ol/feature.exports
Normal file
@@ -0,0 +1,6 @@
|
||||
@exportSymbol ol.Feature
|
||||
@exportProperty ol.Feature.prototype.get
|
||||
@exportProperty ol.Feature.prototype.getAttributes
|
||||
@exportProperty ol.Feature.prototype.getGeometry
|
||||
@exportProperty ol.Feature.prototype.set
|
||||
@exportProperty ol.Feature.prototype.setGeometry
|
||||
7
src/ol/filter/filter.exports
Normal file
7
src/ol/filter/filter.exports
Normal file
@@ -0,0 +1,7 @@
|
||||
@exportSymbol ol.filter.Filter
|
||||
@exportSymbol ol.filter.Geometry
|
||||
@exportSymbol ol.filter.Logical
|
||||
|
||||
@exportSymbol ol.filter.LogicalOperator
|
||||
@exportProperty ol.filter.LogicalOperator.AND
|
||||
@exportProperty ol.filter.LogicalOperator.OR
|
||||
1
src/ol/geom/expression.exports
Normal file
1
src/ol/geom/expression.exports
Normal file
@@ -0,0 +1 @@
|
||||
@exportSymbol ol.Expression
|
||||
6
src/ol/geom/geometry.exports
Normal file
6
src/ol/geom/geometry.exports
Normal file
@@ -0,0 +1,6 @@
|
||||
@exportSymbol ol.geom.Point
|
||||
@exportSymbol ol.geom.LineString
|
||||
@exportSymbol ol.geom.Polygon
|
||||
@exportSymbol ol.geom.MultiPoint
|
||||
@exportSymbol ol.geom.MultiLineString
|
||||
@exportSymbol ol.geom.MultiPolygon
|
||||
3
src/ol/layer/vectorlayer.exports
Normal file
3
src/ol/layer/vectorlayer.exports
Normal file
@@ -0,0 +1,3 @@
|
||||
@exportClass ol.layer.Vector ol.layer.LayerOptions
|
||||
|
||||
@exportProperty ol.layer.Vector.prototype.addFeatures
|
||||
1
src/ol/source/vectorsource.exports
Normal file
1
src/ol/source/vectorsource.exports
Normal file
@@ -0,0 +1 @@
|
||||
@exportClass ol.source.Vector ol.source.SourceOptions
|
||||
@@ -13,27 +13,13 @@ goog.require('ol.geom.GeometryType');
|
||||
goog.require('ol.source.Source');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
|
||||
* extent: (ol.Extent|undefined),
|
||||
* projection: (ol.Projection|undefined)}}
|
||||
*/
|
||||
ol.source.VectorOptions;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.source.Source}
|
||||
* @param {ol.source.VectorOptions} options Source options.
|
||||
* @param {ol.source.SourceOptions} options Source options.
|
||||
*/
|
||||
ol.source.Vector = function(options) {
|
||||
|
||||
goog.base(this, {
|
||||
attributions: options.attributions,
|
||||
extent: options.extent,
|
||||
projection: options.projection
|
||||
});
|
||||
|
||||
goog.base(this, options);
|
||||
};
|
||||
goog.inherits(ol.source.Vector, ol.source.Source);
|
||||
|
||||
7
src/ol/style.exports
Normal file
7
src/ol/style.exports
Normal file
@@ -0,0 +1,7 @@
|
||||
@exportClass ol.style.Line ol.style.LineOptions
|
||||
@exportClass ol.style.Polygon ol.style.PolygonOptions
|
||||
@exportClass ol.style.Rule ol.style.RuleOptions
|
||||
@exportClass ol.style.Shape ol.style.ShapeOptions
|
||||
@exportClass ol.style.Style ol.style.StyleOptions
|
||||
@exportSymbol ol.style.ShapeType
|
||||
@exportProperty ol.style.ShapeType.CIRCLE
|
||||
@@ -24,12 +24,15 @@ ol.style.LineLiteralOptions;
|
||||
ol.style.LineLiteral = function(config) {
|
||||
goog.base(this);
|
||||
|
||||
goog.asserts.assertString(config.strokeStyle, 'strokeStyle must be a string');
|
||||
/** @type {string} */
|
||||
this.strokeStyle = config.strokeStyle;
|
||||
|
||||
goog.asserts.assertNumber(config.strokeWidth, 'strokeWidth must be a number');
|
||||
/** @type {number} */
|
||||
this.strokeWidth = config.strokeWidth;
|
||||
|
||||
goog.asserts.assertNumber(config.opacity, 'opacity must be a number');
|
||||
/** @type {number} */
|
||||
this.opacity = config.opacity;
|
||||
|
||||
@@ -47,14 +50,6 @@ ol.style.LineLiteral.prototype.equals = function(lineLiteral) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{strokeStyle: (string|ol.Expression|undefined),
|
||||
* strokeWidth: (number|ol.Expression|undefined),
|
||||
* opacity: (number|ol.Expression|undefined)}}
|
||||
*/
|
||||
ol.style.LineOptions;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
|
||||
@@ -25,15 +25,19 @@ ol.style.PolygonLiteralOptions;
|
||||
ol.style.PolygonLiteral = function(config) {
|
||||
goog.base(this);
|
||||
|
||||
goog.asserts.assertString(config.fillStyle, 'fillStyle must be a string');
|
||||
/** @type {string} */
|
||||
this.fillStyle = config.fillStyle;
|
||||
|
||||
goog.asserts.assertString(config.strokeStyle, 'strokeStyle must be a string');
|
||||
/** @type {string} */
|
||||
this.strokeStyle = config.strokeStyle;
|
||||
|
||||
goog.asserts.assertNumber(config.strokeWidth, 'strokeWidth must be a number');
|
||||
/** @type {number} */
|
||||
this.strokeWidth = config.strokeWidth;
|
||||
|
||||
goog.asserts.assertNumber(config.opacity, 'opacity must be a number');
|
||||
/** @type {number} */
|
||||
this.opacity = config.opacity;
|
||||
|
||||
@@ -52,15 +56,6 @@ ol.style.PolygonLiteral.prototype.equals = function(polygonLiteral) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{fillStyle: (string|ol.Expression|undefined),
|
||||
* strokeStyle: (string|ol.Expression|undefined),
|
||||
* strokeWidth: (number|ol.Expression|undefined),
|
||||
* opacity: (number|ol.Expression|undefined)}}
|
||||
*/
|
||||
ol.style.PolygonOptions;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
|
||||
@@ -5,13 +5,6 @@ goog.require('ol.filter.Filter');
|
||||
goog.require('ol.style.Symbolizer');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{filter: (ol.filter.Filter),
|
||||
* symbolizers: (Array.<ol.style.Symbolizer>)}}
|
||||
*/
|
||||
ol.style.RuleOptions;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
|
||||
@@ -35,21 +35,27 @@ ol.style.ShapeLiteralOptions;
|
||||
*/
|
||||
ol.style.ShapeLiteral = function(config) {
|
||||
|
||||
/** @type {string} */
|
||||
goog.asserts.assertString(config.type, 'type must be a string');
|
||||
/** @type {ol.style.ShapeType} */
|
||||
this.type = config.type;
|
||||
|
||||
goog.asserts.assertNumber(config.size, 'size must be a number');
|
||||
/** @type {number} */
|
||||
this.size = config.size;
|
||||
|
||||
goog.asserts.assertString(config.fillStyle, 'fillStyle must be a string');
|
||||
/** @type {string} */
|
||||
this.fillStyle = config.fillStyle;
|
||||
|
||||
goog.asserts.assertString(config.strokeStyle, 'strokeStyle must be a string');
|
||||
/** @type {string} */
|
||||
this.strokeStyle = config.strokeStyle;
|
||||
|
||||
goog.asserts.assertNumber(config.strokeWidth, 'strokeWidth must be a number');
|
||||
/** @type {number} */
|
||||
this.strokeWidth = config.strokeWidth;
|
||||
|
||||
goog.asserts.assertNumber(config.opacity, 'opacity must be a number');
|
||||
/** @type {number} */
|
||||
this.opacity = config.opacity;
|
||||
|
||||
@@ -70,17 +76,6 @@ ol.style.ShapeLiteral.prototype.equals = function(shapeLiteral) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{type: (ol.style.ShapeType|undefined),
|
||||
* size: (number|ol.Expression|undefined),
|
||||
* fillStyle: (string|ol.Expression|undefined),
|
||||
* strokeStyle: (string|ol.Expression|undefined),
|
||||
* strokeWidth: (number|ol.Expression|undefined),
|
||||
* opacity: (number|ol.Expression|undefined)}}
|
||||
*/
|
||||
ol.style.ShapeOptions;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
|
||||
@@ -6,12 +6,6 @@ goog.require('ol.style.Rule');
|
||||
goog.require('ol.style.SymbolizerLiteral');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{rules: (Array.<ol.style.Rule>)}}
|
||||
*/
|
||||
ol.style.StyleOptions;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
|
||||
Reference in New Issue
Block a user