Better typing
This commit is contained in:
@@ -55,6 +55,7 @@ ol.renderer.canvas.ImageLayer.prototype.forEachFeatureAtPixel =
|
|||||||
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
|
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
|
||||||
/**
|
/**
|
||||||
* @param {ol.Feature} feature Feature.
|
* @param {ol.Feature} feature Feature.
|
||||||
|
* @return {?} Callback result.
|
||||||
*/
|
*/
|
||||||
function(feature) {
|
function(feature) {
|
||||||
return callback.call(opt_obj, feature, this);
|
return callback.call(opt_obj, feature, this);
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ ol.renderer.canvas.VectorLayer.prototype.forEachFeatureAtPixel =
|
|||||||
/**
|
/**
|
||||||
* @param {ol.geom.Geometry} geometry Geometry.
|
* @param {ol.geom.Geometry} geometry Geometry.
|
||||||
* @param {Object} data Data.
|
* @param {Object} data Data.
|
||||||
|
* @return {?} Callback result.
|
||||||
*/
|
*/
|
||||||
function(geometry, data) {
|
function(geometry, data) {
|
||||||
var feature = /** @type {ol.Feature} */ (data);
|
var feature = /** @type {ol.Feature} */ (data);
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ ol.renderer.dom.ImageLayer.prototype.forEachFeatureAtPixel =
|
|||||||
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
|
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
|
||||||
/**
|
/**
|
||||||
* @param {ol.Feature} feature Feature.
|
* @param {ol.Feature} feature Feature.
|
||||||
|
* @return {?} Callback result.
|
||||||
*/
|
*/
|
||||||
function(feature) {
|
function(feature) {
|
||||||
return callback.call(opt_obj, feature, this);
|
return callback.call(opt_obj, feature, this);
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ ol.renderer.webgl.ImageLayer.prototype.forEachFeatureAtPixel =
|
|||||||
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
|
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
|
||||||
/**
|
/**
|
||||||
* @param {ol.Feature} feature Feature.
|
* @param {ol.Feature} feature Feature.
|
||||||
|
* @return {?} Callback result.
|
||||||
*/
|
*/
|
||||||
function(feature) {
|
function(feature) {
|
||||||
return callback.call(opt_obj, feature, this);
|
return callback.call(opt_obj, feature, this);
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ ol.source.ImageVector.prototype.forEachFeatureAtPixel =
|
|||||||
/**
|
/**
|
||||||
* @param {ol.geom.Geometry} geometry Geometry.
|
* @param {ol.geom.Geometry} geometry Geometry.
|
||||||
* @param {Object} data Data.
|
* @param {Object} data Data.
|
||||||
|
* @return {?} Callback result.
|
||||||
*/
|
*/
|
||||||
function(geometry, data) {
|
function(geometry, data) {
|
||||||
var feature = /** @type {ol.Feature} */ (data);
|
var feature = /** @type {ol.Feature} */ (data);
|
||||||
|
|||||||
Reference in New Issue
Block a user