Make ol.VectorTile#getFeatures and #getProjection exportable
This commit is contained in:
@@ -108,7 +108,8 @@ ol.renderer.canvas.VectorTileLayer.prototype.createReplayGroup_ = function(
|
|||||||
var pixelRatio = frameState.pixelRatio;
|
var pixelRatio = frameState.pixelRatio;
|
||||||
var projection = frameState.viewState.projection;
|
var projection = frameState.viewState.projection;
|
||||||
var revision = layer.getRevision();
|
var revision = layer.getRevision();
|
||||||
var renderOrder = layer.getRenderOrder() || null;
|
var renderOrder = /** @type {ol.RenderOrderFunction} */
|
||||||
|
(layer.getRenderOrder()) || null;
|
||||||
|
|
||||||
var replayState = tile.getReplayState();
|
var replayState = tile.getReplayState();
|
||||||
if (!replayState.dirty && replayState.renderedRevision == revision &&
|
if (!replayState.dirty && replayState.renderedRevision == revision &&
|
||||||
|
|||||||
@@ -453,9 +453,11 @@ ol.RegularShapeRenderOptions;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A function to be used when sorting features before rendering.
|
* A function to be used when sorting features before rendering.
|
||||||
* It takes two instances of {@link ol.Feature} and returns a `{number}`.
|
* It takes two instances of {@link ol.Feature} or {@link ol.render.Feature} and
|
||||||
|
* returns a `{number}`.
|
||||||
*
|
*
|
||||||
* @typedef {function(ol.Feature, ol.Feature):number}
|
* @typedef {function((ol.Feature|ol.render.Feature), (ol.Feature|ol.render.Feature)):
|
||||||
|
* number}
|
||||||
*/
|
*/
|
||||||
ol.RenderOrderFunction;
|
ol.RenderOrderFunction;
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,10 @@ ol.VectorTile.prototype.getFormat = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<ol.Feature>} Features.
|
* Get the features for this tile. Geometries will be in the projection returned
|
||||||
|
* by {@link #getProjection}.
|
||||||
|
* @return {Array.<ol.Feature|ol.render.Feature>} Features.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.VectorTile.prototype.getFeatures = function() {
|
ol.VectorTile.prototype.getFeatures = function() {
|
||||||
return this.features_;
|
return this.features_;
|
||||||
@@ -93,7 +96,9 @@ ol.VectorTile.prototype.getKey = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get the feature projection of features returned by {@link #getFeatures}.
|
||||||
* @return {ol.proj.Projection} Feature projection.
|
* @return {ol.proj.Projection} Feature projection.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.VectorTile.prototype.getProjection = function() {
|
ol.VectorTile.prototype.getProjection = function() {
|
||||||
return this.projection_;
|
return this.projection_;
|
||||||
|
|||||||
Reference in New Issue
Block a user