Fix ol.style.defaultStyleFunction signature
This commit is contained in:
@@ -171,11 +171,15 @@ ol.style.defaultStyleFunction = function(feature, resolution) {
|
|||||||
|
|
||||||
// now that we've run it the first time,
|
// now that we've run it the first time,
|
||||||
// replace the function with a constant version
|
// replace the function with a constant version
|
||||||
ol.style.defaultStyleFunction =
|
|
||||||
/** @type {function(this:ol.Feature):Array.<ol.style.Style>} */(
|
/**
|
||||||
function(resolution) {
|
* @param {ol.Feature} feature Feature.
|
||||||
return styles;
|
* @param {number} resolution Resolution.
|
||||||
});
|
* @return {Array.<ol.style.Style>} Style.
|
||||||
|
*/
|
||||||
|
ol.style.defaultStyleFunction = function(feature, resolution) {
|
||||||
|
return styles;
|
||||||
|
};
|
||||||
|
|
||||||
return styles;
|
return styles;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user