Merge pull request #2072 from ahocevar/no-oli-docs
Do not include oli.* symbols in the API documentation
This commit is contained in:
@@ -35,9 +35,6 @@ function hasApiMembers(doclet) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function includeAugments(doclet) {
|
function includeAugments(doclet) {
|
||||||
if (doclet.longname == 'ol.View2D') {
|
|
||||||
debugger
|
|
||||||
}
|
|
||||||
var augments = doclet.augments;
|
var augments = doclet.augments;
|
||||||
if (augments) {
|
if (augments) {
|
||||||
var cls;
|
var cls;
|
||||||
@@ -65,8 +62,10 @@ function includeAugments(doclet) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
cls._hideConstructor = true;
|
if (cls.longname.indexOf('oli.') !== 0) {
|
||||||
delete cls.undocumented;
|
cls._hideConstructor = true;
|
||||||
|
delete cls.undocumented;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-137
@@ -15,9 +15,7 @@ oli.CollectionEvent;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The element that is added to or removed from the collection.
|
|
||||||
* @type {*}
|
* @type {*}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.CollectionEvent.prototype.element;
|
oli.CollectionEvent.prototype.element;
|
||||||
|
|
||||||
@@ -29,7 +27,6 @@ oli.DragBoxEvent;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Coordinate}
|
* @type {ol.Coordinate}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.DragBoxEvent.prototype.coordinate;
|
oli.DragBoxEvent.prototype.coordinate;
|
||||||
|
|
||||||
@@ -40,108 +37,12 @@ oli.DrawEvent;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The feature being drawn.
|
|
||||||
* @type {ol.Feature}
|
* @type {ol.Feature}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.DrawEvent.prototype.feature;
|
oli.DrawEvent.prototype.feature;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** @interface */
|
|
||||||
oli.FrameState;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {boolean} */
|
|
||||||
oli.FrameState.prototype.animate;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Object.<string, ol.Attribution>} */
|
|
||||||
oli.FrameState.prototype.attributions;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {goog.vec.Mat4.Number} */
|
|
||||||
oli.FrameState.prototype.coordinateToPixelMatrix;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {(null|ol.Extent)} */
|
|
||||||
oli.FrameState.prototype.extent;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {ol.Coordinate} */
|
|
||||||
oli.FrameState.prototype.focus;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {number} */
|
|
||||||
oli.FrameState.prototype.index;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Object.<number, ol.layer.LayerState>} */
|
|
||||||
oli.FrameState.prototype.layerStates;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Array.<ol.layer.LayerState>} */
|
|
||||||
oli.FrameState.prototype.layerStatesArray;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Object.<string, string>} */
|
|
||||||
oli.FrameState.prototype.logos;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {number}
|
|
||||||
* @todo api
|
|
||||||
*/
|
|
||||||
oli.FrameState.prototype.pixelRatio;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {goog.vec.Mat4.Number} */
|
|
||||||
oli.FrameState.prototype.pixelToCoordinateMatrix;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Array.<ol.PostRenderFunction>} */
|
|
||||||
oli.FrameState.prototype.postRenderFunctions;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {ol.Size} */
|
|
||||||
oli.FrameState.prototype.size;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Object.<string, boolean>} */
|
|
||||||
oli.FrameState.prototype.skippedFeatureUids_;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {ol.TileQueue} */
|
|
||||||
oli.FrameState.prototype.tileQueue;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {number}
|
|
||||||
* @todo api
|
|
||||||
*/
|
|
||||||
oli.FrameState.prototype.time;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Object.<string, Object.<string, ol.TileRange>>} */
|
|
||||||
oli.FrameState.prototype.usedTiles;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {oli.View2DState}
|
|
||||||
* @todo api
|
|
||||||
*/
|
|
||||||
oli.FrameState.prototype.view2DState;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Array.<number>} */
|
|
||||||
oli.FrameState.prototype.viewHints;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {Object.<string, Object.<string, boolean>>} */
|
|
||||||
oli.FrameState.prototype.wantedTiles;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** @interface */
|
/** @interface */
|
||||||
oli.ObjectEvent;
|
oli.ObjectEvent;
|
||||||
|
|
||||||
@@ -157,47 +58,23 @@ oli.MapBrowserEvent;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Coordinate}
|
* @type {ol.Coordinate}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.MapBrowserEvent.prototype.coordinate;
|
oli.MapBrowserEvent.prototype.coordinate;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Event}
|
* @type {Event}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.MapBrowserEvent.prototype.originalEvent;
|
oli.MapBrowserEvent.prototype.originalEvent;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Pixel}
|
* @type {ol.Pixel}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.MapBrowserEvent.prototype.pixel;
|
oli.MapBrowserEvent.prototype.pixel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** @interface */
|
|
||||||
oli.View2DState;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {ol.Coordinate} */
|
|
||||||
oli.View2DState.prototype.center;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {ol.proj.Projection} */
|
|
||||||
oli.View2DState.prototype.projection;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {number} */
|
|
||||||
oli.View2DState.prototype.resolution;
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {number} */
|
|
||||||
oli.View2DState.prototype.rotation;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @interface
|
* @interface
|
||||||
*/
|
*/
|
||||||
@@ -218,21 +95,18 @@ oli.interaction.DragAndDropEvent;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Array.<ol.Feature>|undefined}
|
* @type {Array.<ol.Feature>|undefined}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.interaction.DragAndDropEvent.prototype.features;
|
oli.interaction.DragAndDropEvent.prototype.features;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.proj.Projection|undefined}
|
* @type {ol.proj.Projection|undefined}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.interaction.DragAndDropEvent.prototype.projection;
|
oli.interaction.DragAndDropEvent.prototype.projection;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {File}
|
* @type {File}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.interaction.DragAndDropEvent.prototype.file;
|
oli.interaction.DragAndDropEvent.prototype.file;
|
||||||
|
|
||||||
@@ -242,33 +116,25 @@ oli.render.Event;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Canvas context. Only available when a Canvas renderer is used, null
|
|
||||||
* otherwise.
|
|
||||||
* @type {CanvasRenderingContext2D|null|undefined}
|
* @type {CanvasRenderingContext2D|null|undefined}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.render.Event.prototype.context;
|
oli.render.Event.prototype.context;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {oli.FrameState|undefined}
|
* @type {olx.FrameState|undefined}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.render.Event.prototype.frameState;
|
oli.render.Event.prototype.frameState;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WebGL context. Only available when a WebGL renderer is used, null otherwise.
|
|
||||||
* @type {ol.webgl.Context|null|undefined}
|
* @type {ol.webgl.Context|null|undefined}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.render.Event.prototype.glContext;
|
oli.render.Event.prototype.glContext;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For canvas, this is an instance of {@link ol.render.canvas.Immediate}.
|
|
||||||
* @type {ol.render.IVectorContext|undefined}
|
* @type {ol.render.IVectorContext|undefined}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.render.Event.prototype.vectorContext;
|
oli.render.Event.prototype.vectorContext;
|
||||||
|
|
||||||
@@ -279,8 +145,6 @@ oli.source.VectorEvent;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The feature being added or removed.
|
|
||||||
* @type {ol.Feature}
|
* @type {ol.Feature}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.source.VectorEvent.prototype.feature;
|
oli.source.VectorEvent.prototype.feature;
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
var olx;
|
var olx;
|
||||||
|
|
||||||
|
|
||||||
|
/* typedefs for object literals provided by applications */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{html: string,
|
* @typedef {{html: string,
|
||||||
* tileRanges: (Object.<string, Array.<ol.TileRange>>|undefined)}}
|
* tileRanges: (Object.<string, Array.<ol.TileRange>>|undefined)}}
|
||||||
@@ -4962,3 +4965,66 @@ olx.View2D.fitGeometryOptions.prototype.nearest;
|
|||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2D.fitGeometryOptions.prototype.minResolution;
|
olx.View2D.fitGeometryOptions.prototype.minResolution;
|
||||||
|
|
||||||
|
|
||||||
|
/* typedefs for object literals exposed by the library */
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {{animate: boolean,
|
||||||
|
* attributions: Object.<string, ol.Attribution>,
|
||||||
|
* coordinateToPixelMatrix: goog.vec.Mat4.Number,
|
||||||
|
* extent: (null|ol.Extent),
|
||||||
|
* focus: ol.Coordinate,
|
||||||
|
* index: number,
|
||||||
|
* layerStates: Object.<number, ol.layer.LayerState>,
|
||||||
|
* layerStatesArray: Array.<ol.layer.LayerState>,
|
||||||
|
* logos: Object.<string, string>,
|
||||||
|
* pixelRatio: number,
|
||||||
|
* pixelToCoordinateMatrix: goog.vec.Mat4.Number,
|
||||||
|
* postRenderFunctions: Array.<ol.PostRenderFunction>,
|
||||||
|
* size: ol.Size,
|
||||||
|
* skippedFeatureUids_: Object.<string, boolean>,
|
||||||
|
* tileQueue: ol.TileQueue,
|
||||||
|
* time: number,
|
||||||
|
* usedTiles: Object.<string, Object.<string, ol.TileRange>>,
|
||||||
|
* view2DState: olx.View2DState,
|
||||||
|
* viewHints: Array.<number>,
|
||||||
|
* wantedTiles: Object.<string, Object.<string, boolean>>}}
|
||||||
|
* @todo api
|
||||||
|
*/
|
||||||
|
olx.FrameState;
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {number} */
|
||||||
|
olx.FrameState.prototype.pixelRatio;
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {number} */
|
||||||
|
olx.FrameState.prototype.time;
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {olx.View2DState} */
|
||||||
|
olx.FrameState.prototype.view2DState;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {{center: ol.Coordinate,
|
||||||
|
* projection: ol.proj.Projection,
|
||||||
|
* resolution: number,
|
||||||
|
* rotation: number}}
|
||||||
|
* @todo api
|
||||||
|
*/
|
||||||
|
olx.View2DState;
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {ol.Coordinate} */
|
||||||
|
olx.View2DState.prototype.center;
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {number} */
|
||||||
|
olx.View2DState.prototype.resolution;
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {number} */
|
||||||
|
olx.View2DState.prototype.rotation;
|
||||||
|
|||||||
+3
-2
@@ -8,14 +8,14 @@ These two files are special externs that belong to ol3, and this document explai
|
|||||||
|
|
||||||
### Prevent class properties from being renamed
|
### Prevent class properties from being renamed
|
||||||
|
|
||||||
For events, we make properties available to the application. Other than methods, which can be made available by just marking them with the `@api` annotation, properties are exported using `oli.js`:
|
For events, we make properties available to the application. Other than methods, which can be made available by just marking them with the `@api` annotation directly where they are defined, properties need to be added to `oli.js` in addition:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
/** @interface */
|
/** @interface */
|
||||||
oli.MapBrowserEvent;
|
oli.MapBrowserEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Coordinate}
|
* @type {ol.Coordinate}
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
oli.MapBrowserEvent.prototype.coordinate;
|
oli.MapBrowserEvent.prototype.coordinate;
|
||||||
```
|
```
|
||||||
@@ -32,6 +32,7 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Coordinate}
|
* @type {ol.Coordinate}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.coordinate = map.getEventCoordinate(this.originalEvent);
|
this.coordinate = map.getEventCoordinate(this.originalEvent);
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -22,7 +22,7 @@ ol.animation.bounce = function(options) {
|
|||||||
return (
|
return (
|
||||||
/**
|
/**
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {?oli.FrameState} frameState Frame state.
|
* @param {?olx.FrameState} frameState Frame state.
|
||||||
*/
|
*/
|
||||||
function(map, frameState) {
|
function(map, frameState) {
|
||||||
if (frameState.time < start) {
|
if (frameState.time < start) {
|
||||||
@@ -59,7 +59,7 @@ ol.animation.pan = function(options) {
|
|||||||
return (
|
return (
|
||||||
/**
|
/**
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {?oli.FrameState} frameState Frame state.
|
* @param {?olx.FrameState} frameState Frame state.
|
||||||
*/
|
*/
|
||||||
function(map, frameState) {
|
function(map, frameState) {
|
||||||
if (frameState.time < start) {
|
if (frameState.time < start) {
|
||||||
@@ -99,7 +99,7 @@ ol.animation.rotate = function(options) {
|
|||||||
return (
|
return (
|
||||||
/**
|
/**
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {?oli.FrameState} frameState Frame state.
|
* @param {?olx.FrameState} frameState Frame state.
|
||||||
*/
|
*/
|
||||||
function(map, frameState) {
|
function(map, frameState) {
|
||||||
if (frameState.time < start) {
|
if (frameState.time < start) {
|
||||||
@@ -141,7 +141,7 @@ ol.animation.zoom = function(options) {
|
|||||||
return (
|
return (
|
||||||
/**
|
/**
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {?oli.FrameState} frameState Frame state.
|
* @param {?olx.FrameState} frameState Frame state.
|
||||||
*/
|
*/
|
||||||
function(map, frameState) {
|
function(map, frameState) {
|
||||||
if (frameState.time < start) {
|
if (frameState.time < start) {
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ ol.CollectionEvent = function(type, opt_element, opt_target) {
|
|||||||
/**
|
/**
|
||||||
* The element that is added to or removed from the collection.
|
* The element that is added to or removed from the collection.
|
||||||
* @type {*}
|
* @type {*}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.element = opt_element;
|
this.element = opt_element;
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ goog.inherits(ol.control.Attribution, ol.control.Control);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {?oli.FrameState} frameState Frame state.
|
* @param {?olx.FrameState} frameState Frame state.
|
||||||
* @return {Array.<Object.<string, ol.Attribution>>} Attributions.
|
* @return {Array.<Object.<string, ol.Attribution>>} Attributions.
|
||||||
*/
|
*/
|
||||||
ol.control.Attribution.prototype.getSourceAttributions =
|
ol.control.Attribution.prototype.getSourceAttributions =
|
||||||
@@ -118,7 +118,7 @@ ol.control.Attribution.prototype.handleMapPostrender = function(mapEvent) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {?oli.FrameState} frameState Frame state.
|
* @param {?olx.FrameState} frameState Frame state.
|
||||||
*/
|
*/
|
||||||
ol.control.Attribution.prototype.updateElement_ = function(frameState) {
|
ol.control.Attribution.prototype.updateElement_ = function(frameState) {
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ ol.control.Logo.prototype.handleMapPostrender = function(mapEvent) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {?oli.FrameState} frameState Frame state.
|
* @param {?olx.FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.control.Logo.prototype.updateElement_ = function(frameState) {
|
ol.control.Logo.prototype.updateElement_ = function(frameState) {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ ol.control.ScaleLine = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {?oli.View2DState}
|
* @type {?olx.View2DState}
|
||||||
*/
|
*/
|
||||||
this.view2DState_ = null;
|
this.view2DState_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -6,17 +6,17 @@ goog.provide('ol.PreRenderFunction');
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {function(ol.Map, ?oli.FrameState): boolean}
|
* @typedef {function(ol.Map, ?olx.FrameState): boolean}
|
||||||
*/
|
*/
|
||||||
ol.PostRenderFunction;
|
ol.PostRenderFunction;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function to perform manipulations before rendering. This function is called
|
* Function to perform manipulations before rendering. This function is called
|
||||||
* with the {@link ol.Map} as first and an optional {@link oli.FrameState} as
|
* with the {@link ol.Map} as first and an optional {@link olx.FrameState} as
|
||||||
* second argument. Return `true` to keep this function for the next frame,
|
* second argument. Return `true` to keep this function for the next frame,
|
||||||
* `false` to remove it.
|
* `false` to remove it.
|
||||||
* @typedef {function(ol.Map, ?oli.FrameState): boolean}
|
* @typedef {function(ol.Map, ?olx.FrameState): boolean}
|
||||||
* @todo api
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.PreRenderFunction;
|
ol.PreRenderFunction;
|
||||||
|
|||||||
@@ -205,16 +205,19 @@ ol.interaction.DragAndDropEvent =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Array.<ol.Feature>|undefined}
|
* @type {Array.<ol.Feature>|undefined}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.features = opt_features;
|
this.features = opt_features;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {File}
|
* @type {File}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.file = file;
|
this.file = file;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.proj.Projection|undefined}
|
* @type {ol.proj.Projection|undefined}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.projection = opt_projection;
|
this.projection = opt_projection;
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ ol.DragBoxEvent = function(type, coordinate) {
|
|||||||
* The coordinate of the drag event.
|
* The coordinate of the drag event.
|
||||||
* @const
|
* @const
|
||||||
* @type {ol.Coordinate}
|
* @type {ol.Coordinate}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.coordinate = coordinate;
|
this.coordinate = coordinate;
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ ol.DrawEvent = function(type, feature) {
|
|||||||
/**
|
/**
|
||||||
* The feature being drawn.
|
* The feature being drawn.
|
||||||
* @type {ol.Feature}
|
* @type {ol.Feature}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.feature = feature;
|
this.feature = feature;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ ol.IView2D.prototype.getRotation = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {oli.View2DState} View2D state.
|
* @return {olx.View2DState} View2D state.
|
||||||
*/
|
*/
|
||||||
ol.IView2D.prototype.getView2DState = function() {
|
ol.IView2D.prototype.getView2DState = function() {
|
||||||
};
|
};
|
||||||
|
|||||||
+3
-3
@@ -209,7 +209,7 @@ ol.Map = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {?oli.FrameState}
|
* @type {?olx.FrameState}
|
||||||
*/
|
*/
|
||||||
this.frameState_ = null;
|
this.frameState_ = null;
|
||||||
|
|
||||||
@@ -1178,7 +1178,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
|
|||||||
var size = this.getSize();
|
var size = this.getSize();
|
||||||
var view = this.getView();
|
var view = this.getView();
|
||||||
var view2D = goog.isDef(view) ? this.getView().getView2D() : undefined;
|
var view2D = goog.isDef(view) ? this.getView().getView2D() : undefined;
|
||||||
/** @type {?oli.FrameState} */
|
/** @type {?olx.FrameState} */
|
||||||
var frameState = null;
|
var frameState = null;
|
||||||
if (goog.isDef(size) && hasArea(size) &&
|
if (goog.isDef(size) && hasArea(size) &&
|
||||||
goog.isDef(view2D) && view2D.isDef()) {
|
goog.isDef(view2D) && view2D.isDef()) {
|
||||||
@@ -1189,7 +1189,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
|
|||||||
layerStates[goog.getUid(layerStatesArray[i].layer)] = layerStatesArray[i];
|
layerStates[goog.getUid(layerStatesArray[i].layer)] = layerStatesArray[i];
|
||||||
}
|
}
|
||||||
view2DState = view2D.getView2DState();
|
view2DState = view2D.getView2DState();
|
||||||
frameState = /** @type {oli.FrameState} */ ({
|
frameState = /** @type {olx.FrameState} */ ({
|
||||||
animate: false,
|
animate: false,
|
||||||
attributions: {},
|
attributions: {},
|
||||||
coordinateToPixelMatrix: this.coordinateToPixelMatrix_,
|
coordinateToPixelMatrix: this.coordinateToPixelMatrix_,
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ goog.require('ol.pointer.PointerEventHandler');
|
|||||||
* @param {string} type Event type.
|
* @param {string} type Event type.
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {goog.events.BrowserEvent} browserEvent Browser event.
|
* @param {goog.events.BrowserEvent} browserEvent Browser event.
|
||||||
* @param {?oli.FrameState=} opt_frameState Frame state.
|
* @param {?olx.FrameState=} opt_frameState Frame state.
|
||||||
*/
|
*/
|
||||||
ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) {
|
ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) {
|
||||||
|
|
||||||
@@ -41,16 +41,19 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) {
|
|||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {Event}
|
* @type {Event}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.originalEvent = browserEvent.getBrowserEvent();
|
this.originalEvent = browserEvent.getBrowserEvent();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Coordinate}
|
* @type {ol.Coordinate}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.coordinate = map.getEventCoordinate(this.originalEvent);
|
this.coordinate = map.getEventCoordinate(this.originalEvent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Pixel}
|
* @type {ol.Pixel}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.pixel = map.getEventPixel(this.originalEvent);
|
this.pixel = map.getEventPixel(this.originalEvent);
|
||||||
|
|
||||||
@@ -89,7 +92,7 @@ ol.MapBrowserEvent.prototype.stopPropagation = function() {
|
|||||||
* @param {string} type Event type.
|
* @param {string} type Event type.
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {ol.pointer.PointerEvent} pointerEvent Pointer event.
|
* @param {ol.pointer.PointerEvent} pointerEvent Pointer event.
|
||||||
* @param {?oli.FrameState=} opt_frameState Frame state.
|
* @param {?olx.FrameState=} opt_frameState Frame state.
|
||||||
*/
|
*/
|
||||||
ol.MapBrowserPointerEvent = function(type, map, pointerEvent, opt_frameState) {
|
ol.MapBrowserPointerEvent = function(type, map, pointerEvent, opt_frameState) {
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -29,7 +29,7 @@ ol.MapEventType = {
|
|||||||
* @extends {goog.events.Event}
|
* @extends {goog.events.Event}
|
||||||
* @param {string} type Event type.
|
* @param {string} type Event type.
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {?oli.FrameState=} opt_frameState Frame state.
|
* @param {?olx.FrameState=} opt_frameState Frame state.
|
||||||
*/
|
*/
|
||||||
ol.MapEvent = function(type, map, opt_frameState) {
|
ol.MapEvent = function(type, map, opt_frameState) {
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ ol.MapEvent = function(type, map, opt_frameState) {
|
|||||||
this.map = map;
|
this.map = map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {?oli.FrameState}
|
* @type {?olx.FrameState}
|
||||||
*/
|
*/
|
||||||
this.frameState = goog.isDef(opt_frameState) ? opt_frameState : null;
|
this.frameState = goog.isDef(opt_frameState) ? opt_frameState : null;
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ ol.render.EventType = {
|
|||||||
* @param {ol.render.EventType} type Type.
|
* @param {ol.render.EventType} type Type.
|
||||||
* @param {Object=} opt_target Target.
|
* @param {Object=} opt_target Target.
|
||||||
* @param {ol.render.IVectorContext=} opt_vectorContext Vector context.
|
* @param {ol.render.IVectorContext=} opt_vectorContext Vector context.
|
||||||
* @param {oli.FrameState=} opt_frameState Frame state.
|
* @param {olx.FrameState=} opt_frameState Frame state.
|
||||||
* @param {?CanvasRenderingContext2D=} opt_context Context.
|
* @param {?CanvasRenderingContext2D=} opt_context Context.
|
||||||
* @param {?ol.webgl.Context=} opt_glContext WebGL Context.
|
* @param {?ol.webgl.Context=} opt_glContext WebGL Context.
|
||||||
*/
|
*/
|
||||||
@@ -46,19 +46,23 @@ ol.render.Event = function(
|
|||||||
goog.base(this, type, opt_target);
|
goog.base(this, type, opt_target);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* For canvas, this is an instance of {@link ol.render.canvas.Immediate}.
|
||||||
* @type {ol.render.IVectorContext|undefined}
|
* @type {ol.render.IVectorContext|undefined}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.vectorContext = opt_vectorContext;
|
this.vectorContext = opt_vectorContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {oli.FrameState|undefined}
|
* @type {olx.FrameState|undefined}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.frameState = opt_frameState;
|
this.frameState = opt_frameState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Canvas context. Only available when a Canvas renderer is used,
|
* Canvas context. Only available when a Canvas renderer is used, null
|
||||||
* null otherwise.
|
* otherwise.
|
||||||
* @type {CanvasRenderingContext2D|null|undefined}
|
* @type {CanvasRenderingContext2D|null|undefined}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.context = opt_context;
|
this.context = opt_context;
|
||||||
|
|
||||||
@@ -66,6 +70,7 @@ ol.render.Event = function(
|
|||||||
* WebGL context. Only available when a WebGL renderer is used, null
|
* WebGL context. Only available when a WebGL renderer is used, null
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @type {ol.webgl.Context|null|undefined}
|
* @type {ol.webgl.Context|null|undefined}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.glContext = opt_glContext;
|
this.glContext = opt_glContext;
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ goog.inherits(ol.renderer.canvas.Layer, ol.renderer.Layer);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {ol.layer.LayerState} layerState Layer state.
|
* @param {ol.layer.LayerState} layerState Layer state.
|
||||||
* @param {CanvasRenderingContext2D} context Context.
|
* @param {CanvasRenderingContext2D} context Context.
|
||||||
*/
|
*/
|
||||||
@@ -77,7 +77,7 @@ ol.renderer.canvas.Layer.prototype.composeFrame =
|
|||||||
/**
|
/**
|
||||||
* @param {ol.render.EventType} type Event type.
|
* @param {ol.render.EventType} type Event type.
|
||||||
* @param {CanvasRenderingContext2D} context Context.
|
* @param {CanvasRenderingContext2D} context Context.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {goog.vec.Mat4.Number=} opt_transform Transform.
|
* @param {goog.vec.Mat4.Number=} opt_transform Transform.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
@@ -100,7 +100,7 @@ ol.renderer.canvas.Layer.prototype.dispatchComposeEvent_ =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {CanvasRenderingContext2D} context Context.
|
* @param {CanvasRenderingContext2D} context Context.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {goog.vec.Mat4.Number=} opt_transform Transform.
|
* @param {goog.vec.Mat4.Number=} opt_transform Transform.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
@@ -113,7 +113,7 @@ ol.renderer.canvas.Layer.prototype.dispatchPostComposeEvent =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {CanvasRenderingContext2D} context Context.
|
* @param {CanvasRenderingContext2D} context Context.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {goog.vec.Mat4.Number=} opt_transform Transform.
|
* @param {goog.vec.Mat4.Number=} opt_transform Transform.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
@@ -126,7 +126,7 @@ ol.renderer.canvas.Layer.prototype.dispatchPreComposeEvent =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {CanvasRenderingContext2D} context Context.
|
* @param {CanvasRenderingContext2D} context Context.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {goog.vec.Mat4.Number=} opt_transform Transform.
|
* @param {goog.vec.Mat4.Number=} opt_transform Transform.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
@@ -150,7 +150,7 @@ ol.renderer.canvas.Layer.prototype.getImageTransform = goog.abstractMethod;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @protected
|
* @protected
|
||||||
* @return {!goog.vec.Mat4.Number} Transform.
|
* @return {!goog.vec.Mat4.Number} Transform.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ ol.renderer.canvas.Map.prototype.createLayerRenderer = function(layer) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.render.EventType} type Event type.
|
* @param {ol.render.EventType} type Event type.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.renderer.canvas.Map.prototype.dispatchComposeEvent_ =
|
ol.renderer.canvas.Map.prototype.dispatchComposeEvent_ =
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ goog.inherits(ol.renderer.Layer, goog.Disposable);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Coordinate} coordinate Coordinate.
|
* @param {ol.Coordinate} coordinate Coordinate.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {function(this: S, ol.Feature, ol.layer.Layer): T} callback Feature
|
* @param {function(this: S, ol.Feature, ol.layer.Layer): T} callback Feature
|
||||||
* callback.
|
* callback.
|
||||||
* @param {S} thisArg Value to use as `this` when executing `callback`.
|
* @param {S} thisArg Value to use as `this` when executing `callback`.
|
||||||
@@ -96,7 +96,7 @@ ol.renderer.Layer.prototype.handleImageChange = function(event) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {ol.layer.LayerState} layerState Layer state.
|
* @param {ol.layer.LayerState} layerState Layer state.
|
||||||
*/
|
*/
|
||||||
ol.renderer.Layer.prototype.prepareFrame = goog.abstractMethod;
|
ol.renderer.Layer.prototype.prepareFrame = goog.abstractMethod;
|
||||||
@@ -114,7 +114,7 @@ ol.renderer.Layer.prototype.renderIfReadyAndVisible = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {ol.source.Tile} tileSource Tile source.
|
* @param {ol.source.Tile} tileSource Tile source.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
@@ -126,7 +126,7 @@ ol.renderer.Layer.prototype.scheduleExpireCache =
|
|||||||
/**
|
/**
|
||||||
* @param {ol.source.Tile} tileSource Tile source.
|
* @param {ol.source.Tile} tileSource Tile source.
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
*/
|
*/
|
||||||
function(tileSource, map, frameState) {
|
function(tileSource, map, frameState) {
|
||||||
var tileSourceKey = goog.getUid(tileSource).toString();
|
var tileSourceKey = goog.getUid(tileSource).toString();
|
||||||
@@ -155,7 +155,7 @@ ol.renderer.Layer.prototype.updateAttributions =
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {ol.source.Source} source Source.
|
* @param {ol.source.Source} source Source.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
@@ -241,7 +241,7 @@ ol.renderer.Layer.prototype.snapCenterToPixel =
|
|||||||
* - registers idle tiles in frameState.wantedTiles so that they are not
|
* - registers idle tiles in frameState.wantedTiles so that they are not
|
||||||
* discarded by the tile queue
|
* discarded by the tile queue
|
||||||
* - enqueues missing tiles
|
* - enqueues missing tiles
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {ol.source.Tile} tileSource Tile source.
|
* @param {ol.source.Tile} tileSource Tile source.
|
||||||
* @param {ol.tilegrid.TileGrid} tileGrid Tile grid.
|
* @param {ol.tilegrid.TileGrid} tileGrid Tile grid.
|
||||||
* @param {number} pixelRatio Pixel ratio.
|
* @param {number} pixelRatio Pixel ratio.
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ goog.inherits(ol.renderer.Map, goog.Disposable);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState FrameState.
|
* @param {olx.FrameState} frameState FrameState.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
ol.renderer.Map.prototype.calculateMatrices2D = function(frameState) {
|
ol.renderer.Map.prototype.calculateMatrices2D = function(frameState) {
|
||||||
@@ -82,7 +82,7 @@ ol.renderer.Map.prototype.disposeInternal = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Coordinate} coordinate Coordinate.
|
* @param {ol.Coordinate} coordinate Coordinate.
|
||||||
* @param {oli.FrameState} frameState FrameState.
|
* @param {olx.FrameState} frameState FrameState.
|
||||||
* @param {function(this: S, ol.Feature, ol.layer.Layer): T} callback Feature
|
* @param {function(this: S, ol.Feature, ol.layer.Layer): T} callback Feature
|
||||||
* callback.
|
* callback.
|
||||||
* @param {S} thisArg Value to use as `this` when executing `callback`.
|
* @param {S} thisArg Value to use as `this` when executing `callback`.
|
||||||
@@ -176,14 +176,14 @@ ol.renderer.Map.prototype.removeLayerRendererByKey_ = function(layerKey) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Render.
|
* Render.
|
||||||
* @param {?oli.FrameState} frameState Frame state.
|
* @param {?olx.FrameState} frameState Frame state.
|
||||||
*/
|
*/
|
||||||
ol.renderer.Map.prototype.renderFrame = goog.nullFunction;
|
ol.renderer.Map.prototype.renderFrame = goog.nullFunction;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.renderer.Map.prototype.removeUnusedLayerRenderers_ =
|
ol.renderer.Map.prototype.removeUnusedLayerRenderers_ =
|
||||||
@@ -198,14 +198,14 @@ ol.renderer.Map.prototype.removeUnusedLayerRenderers_ =
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
ol.renderer.Map.prototype.scheduleExpireIconCache = function(frameState) {
|
ol.renderer.Map.prototype.scheduleExpireIconCache = function(frameState) {
|
||||||
frameState.postRenderFunctions.push(
|
frameState.postRenderFunctions.push(
|
||||||
/**
|
/**
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
*/
|
*/
|
||||||
function(map, frameState) {
|
function(map, frameState) {
|
||||||
ol.style.IconImageCache.getInstance().expire();
|
ol.style.IconImageCache.getInstance().expire();
|
||||||
@@ -214,7 +214,7 @@ ol.renderer.Map.prototype.scheduleExpireIconCache = function(frameState) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {!oli.FrameState} frameState Frame state.
|
* @param {!olx.FrameState} frameState Frame state.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
ol.renderer.Map.prototype.scheduleRemoveUnusedLayerRenderers =
|
ol.renderer.Map.prototype.scheduleRemoveUnusedLayerRenderers =
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ goog.inherits(ol.renderer.webgl.Layer, ol.renderer.Layer);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {number} framebufferDimension Framebuffer dimension.
|
* @param {number} framebufferDimension Framebuffer dimension.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
@@ -142,7 +142,7 @@ ol.renderer.webgl.Layer.prototype.bindFramebuffer =
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @param {ol.layer.LayerState} layerState Layer state.
|
* @param {ol.layer.LayerState} layerState Layer state.
|
||||||
* @param {ol.webgl.Context} context Context.
|
* @param {ol.webgl.Context} context Context.
|
||||||
*/
|
*/
|
||||||
@@ -230,7 +230,7 @@ ol.renderer.webgl.Layer.prototype.composeFrame =
|
|||||||
/**
|
/**
|
||||||
* @param {ol.render.EventType} type Event type.
|
* @param {ol.render.EventType} type Event type.
|
||||||
* @param {ol.webgl.Context} context WebGL context.
|
* @param {ol.webgl.Context} context WebGL context.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.renderer.webgl.Layer.prototype.dispatchComposeEvent_ =
|
ol.renderer.webgl.Layer.prototype.dispatchComposeEvent_ =
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ ol.renderer.webgl.Map.prototype.createLayerRenderer = function(layer) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.render.EventType} type Event type.
|
* @param {ol.render.EventType} type Event type.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.renderer.webgl.Map.prototype.dispatchComposeEvent_ =
|
ol.renderer.webgl.Map.prototype.dispatchComposeEvent_ =
|
||||||
@@ -297,7 +297,7 @@ ol.renderer.webgl.Map.prototype.disposeInternal = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {oli.FrameState} frameState Frame state.
|
* @param {olx.FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.renderer.webgl.Map.prototype.expireCache_ = function(map, frameState) {
|
ol.renderer.webgl.Map.prototype.expireCache_ = function(map, frameState) {
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ ol.source.TileOptions;
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.source.Source}
|
* @extends {ol.source.Source}
|
||||||
* @param {ol.source.TileOptions} options Tile source options.
|
* @param {ol.source.TileOptions} options Tile source options.
|
||||||
* @todo api
|
|
||||||
*/
|
*/
|
||||||
ol.source.Tile = function(options) {
|
ol.source.Tile = function(options) {
|
||||||
|
|
||||||
|
|||||||
@@ -404,6 +404,7 @@ ol.source.VectorEvent = function(type, opt_feature) {
|
|||||||
/**
|
/**
|
||||||
* The feature being added or removed.
|
* The feature being added or removed.
|
||||||
* @type {ol.Feature|undefined}
|
* @type {ol.Feature|undefined}
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
this.feature = opt_feature;
|
this.feature = opt_feature;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -379,7 +379,7 @@ ol.View2D.prototype.getView2DState = function() {
|
|||||||
var projection = this.getProjection();
|
var projection = this.getProjection();
|
||||||
var resolution = /** @type {number} */ (this.getResolution());
|
var resolution = /** @type {number} */ (this.getResolution());
|
||||||
var rotation = this.getRotation();
|
var rotation = this.getRotation();
|
||||||
return /** @type {oli.View2DState} */ ({
|
return /** @type {olx.View2DState} */ ({
|
||||||
center: center.slice(),
|
center: center.slice(),
|
||||||
projection: goog.isDef(projection) ? projection : null,
|
projection: goog.isDef(projection) ? projection : null,
|
||||||
resolution: resolution,
|
resolution: resolution,
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
/**
|
|
||||||
* @namespace oli
|
|
||||||
*/
|
|
||||||
Reference in New Issue
Block a user